Merge tag 'batadv-next-for-davem-20170802' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== This feature/cleanup patchset includes the following patches: - bump version strings, by Simon Wunderlich - Remove unnecessary length qualifier, by Joe Perches - Remove too short %pM field width, by Sven Eckelmann - Remove return value handling from skb_put_data, by Sven Eckelmann - Spelling fixes, by Colin Ian King - Convert batman-adv.txt to reStructuredText, by Sven Eckelmann ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -729,11 +729,9 @@ static void batadv_iv_ogm_aggregate(struct batadv_forw_packet *forw_packet_aggr,
|
||||
const unsigned char *packet_buff,
|
||||
int packet_len, bool direct_link)
|
||||
{
|
||||
unsigned char *skb_buff;
|
||||
unsigned long new_direct_link_flag;
|
||||
|
||||
skb_buff = skb_put_data(forw_packet_aggr->skb, packet_buff,
|
||||
packet_len);
|
||||
skb_put_data(forw_packet_aggr->skb, packet_buff, packet_len);
|
||||
forw_packet_aggr->packet_len += packet_len;
|
||||
forw_packet_aggr->num_packets++;
|
||||
|
||||
@@ -1281,7 +1279,7 @@ static bool batadv_iv_ogm_calc_tq(struct batadv_orig_node *orig_node,
|
||||
batadv_ogm_packet->tq = combined_tq;
|
||||
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
|
||||
"bidirectional: orig = %-15pM neigh = %-15pM => own_bcast = %2i, real recv = %2i, local tq: %3i, asym_penalty: %3i, iface_penalty: %3i, total tq: %3i, if_incoming = %s, if_outgoing = %s\n",
|
||||
"bidirectional: orig = %pM neigh = %pM => own_bcast = %2i, real recv = %2i, local tq: %3i, asym_penalty: %3i, iface_penalty: %3i, total tq: %3i, if_incoming = %s, if_outgoing = %s\n",
|
||||
orig_node->orig, orig_neigh_node->orig, total_count,
|
||||
neigh_rq_count, tq_own, tq_asym_penalty, tq_iface_penalty,
|
||||
batadv_ogm_packet->tq, if_incoming->net_dev->name,
|
||||
|
@@ -137,7 +137,7 @@ static void batadv_v_ogm_send(struct work_struct *work)
|
||||
struct batadv_priv *bat_priv;
|
||||
struct batadv_ogm2_packet *ogm_packet;
|
||||
struct sk_buff *skb, *skb_tmp;
|
||||
unsigned char *ogm_buff, *pkt_buff;
|
||||
unsigned char *ogm_buff;
|
||||
int ogm_buff_len;
|
||||
u16 tvlv_len = 0;
|
||||
int ret;
|
||||
@@ -166,7 +166,7 @@ static void batadv_v_ogm_send(struct work_struct *work)
|
||||
goto reschedule;
|
||||
|
||||
skb_reserve(skb, ETH_HLEN);
|
||||
pkt_buff = skb_put_data(skb, ogm_buff, ogm_buff_len);
|
||||
skb_put_data(skb, ogm_buff, ogm_buff_len);
|
||||
|
||||
ogm_packet = (struct batadv_ogm2_packet *)skb->data;
|
||||
ogm_packet->seqno = htonl(atomic_read(&bat_priv->bat_v.ogm_seqno));
|
||||
@@ -200,7 +200,7 @@ static void batadv_v_ogm_send(struct work_struct *work)
|
||||
type = "unknown";
|
||||
}
|
||||
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "OGM2 from ourselve on %s surpressed: %s\n",
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "OGM2 from ourselves on %s suppressed: %s\n",
|
||||
hard_iface->net_dev->name, type);
|
||||
|
||||
batadv_hardif_put(hard_iface);
|
||||
@@ -683,18 +683,18 @@ static void batadv_v_ogm_process(const struct sk_buff *skb, int ogm_offset,
|
||||
ogm_throughput = ntohl(ogm_packet->throughput);
|
||||
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
|
||||
"Received OGM2 packet via NB: %pM, IF: %s [%pM] (from OG: %pM, seqno %u, troughput %u, TTL %u, V %u, tvlv_len %u)\n",
|
||||
"Received OGM2 packet via NB: %pM, IF: %s [%pM] (from OG: %pM, seqno %u, throughput %u, TTL %u, V %u, tvlv_len %u)\n",
|
||||
ethhdr->h_source, if_incoming->net_dev->name,
|
||||
if_incoming->net_dev->dev_addr, ogm_packet->orig,
|
||||
ntohl(ogm_packet->seqno), ogm_throughput, ogm_packet->ttl,
|
||||
ogm_packet->version, ntohs(ogm_packet->tvlv_len));
|
||||
|
||||
/* If the troughput metric is 0, immediately drop the packet. No need to
|
||||
* create orig_node / neigh_node for an unusable route.
|
||||
/* If the throughput metric is 0, immediately drop the packet. No need
|
||||
* to create orig_node / neigh_node for an unusable route.
|
||||
*/
|
||||
if (ogm_throughput == 0) {
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
|
||||
"Drop packet: originator packet with troughput metric of 0\n");
|
||||
"Drop packet: originator packet with throughput metric of 0\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -762,7 +762,7 @@ static void batadv_v_ogm_process(const struct sk_buff *skb, int ogm_offset,
|
||||
type = "unknown";
|
||||
}
|
||||
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "OGM2 packet from %pM on %s surpressed: %s\n",
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "OGM2 packet from %pM on %s suppressed: %s\n",
|
||||
ogm_packet->orig, hard_iface->net_dev->name,
|
||||
type);
|
||||
|
||||
|
@@ -834,7 +834,7 @@ int batadv_dat_cache_seq_print_text(struct seq_file *seq, void *offset)
|
||||
last_seen_msecs = last_seen_msecs % 60000;
|
||||
last_seen_secs = last_seen_msecs / 1000;
|
||||
|
||||
seq_printf(seq, " * %15pI4 %14pM %4i %6i:%02i\n",
|
||||
seq_printf(seq, " * %15pI4 %pM %4i %6i:%02i\n",
|
||||
&dat_entry->ip, dat_entry->mac_addr,
|
||||
batadv_print_vid(dat_entry->vid),
|
||||
last_seen_mins, last_seen_secs);
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#define BATADV_DRIVER_DEVICE "batman-adv"
|
||||
|
||||
#ifndef BATADV_SOURCE_VERSION
|
||||
#define BATADV_SOURCE_VERSION "2017.2"
|
||||
#define BATADV_SOURCE_VERSION "2017.3"
|
||||
#endif
|
||||
|
||||
/* B.A.T.M.A.N. parameters */
|
||||
|
@@ -911,7 +911,7 @@ static void batadv_send_outstanding_bcast_packet(struct work_struct *work)
|
||||
type = "unknown";
|
||||
}
|
||||
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "BCAST packet from orig %pM on %s surpressed: %s\n",
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "BCAST packet from orig %pM on %s suppressed: %s\n",
|
||||
bcast_packet->orig,
|
||||
hard_iface->net_dev->name, type);
|
||||
|
||||
|
Reference in New Issue
Block a user