pull request for net-next: batman-adv 2017-01-25
Subsystems (3)
Simon Wunderlich
maintainercover pull request for net-next: batman-adv 2017-01-25
Hi David,
here is a small feature/cleanup pull request of batman-adv to go into net-next.
Please pull or let me know of any problem!
Thank you,
Simon
The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77:
Linux 4.10-rc1 (2016-12-25 16:13:08 -0800)
are available in the git repository at:
git://git.open-mesh.org/linux-merge.git tags/batadv-next-for-davem-20170125
for you to fetch changes up to 03d17903cbfdc3bdf6e08c9fb6603936135bba5b:
batman-adv: Remove unused variable in batadv_tt_local_set_flags (2017-01-04 08:20:21 +0100)
----------------------------------------------------------------
This feature/cleanup patchset includes the following patches:
- bump version strings, by Simon Wunderlich
- Handle NET_XMIT_CN like NET_XMIT_SUCCESS, and a follow up code clean up, by Gao Feng (2 patches)
- ignore self-generated loop detect MAC addresses in translation table, by Simon Wunderlich
- install uapi batman_adv.h header, by Sven Eckelmann
- bump copyright years, by Sven Eckelmann
- Remove an unused variable in translation table code, by Sven Eckelmann
----------------------------------------------------------------
Gao Feng (2):
batman-adv: Treat NET_XMIT_CN as transmit successfully
batman-adv: Remove one condition check in batadv_route_unicast_packet
Simon Wunderlich (2):
batman-adv: Start new development cycle
batman-adv: don't add loop detect macs to TT
Sven Eckelmann (3):
uapi: install batman_adv.h header
batman-adv: update copyright years for 2017
batman-adv: Remove unused variable in batadv_tt_local_set_flags
include/uapi/linux/Kbuild | 1 + include/uapi/linux/batman_adv.h | 2 +- net/batman-adv/Makefile | 2 +- net/batman-adv/bat_algo.c | 2 +- net/batman-adv/bat_algo.h | 2 +- net/batman-adv/bat_iv_ogm.c | 2 +- net/batman-adv/bat_iv_ogm.h | 2 +- net/batman-adv/bat_v.c | 2 +- net/batman-adv/bat_v.h | 2 +- net/batman-adv/bat_v_elp.c | 2 +- net/batman-adv/bat_v_elp.h | 2 +- net/batman-adv/bat_v_ogm.c | 2 +- net/batman-adv/bat_v_ogm.h | 2 +- net/batman-adv/bitarray.c | 2 +- net/batman-adv/bitarray.h | 2 +- net/batman-adv/bridge_loop_avoidance.c | 2 +- net/batman-adv/bridge_loop_avoidance.h | 20 +++++++++++++++++++- net/batman-adv/debugfs.c | 2 +- net/batman-adv/debugfs.h | 2 +- net/batman-adv/distributed-arp-table.c | 5 +++-- net/batman-adv/distributed-arp-table.h | 2 +- net/batman-adv/fragmentation.c | 4 ++-- net/batman-adv/fragmentation.h | 2 +- net/batman-adv/gateway_client.c | 2 +- net/batman-adv/gateway_client.h | 2 +- net/batman-adv/gateway_common.c | 2 +- net/batman-adv/gateway_common.h | 2 +- net/batman-adv/hard-interface.c | 2 +- net/batman-adv/hard-interface.h | 2 +- net/batman-adv/hash.c | 2 +- net/batman-adv/hash.h | 2 +- net/batman-adv/icmp_socket.c | 2 +- net/batman-adv/icmp_socket.h | 2 +- net/batman-adv/log.c | 2 +- net/batman-adv/log.h | 2 +- net/batman-adv/main.c | 2 +- net/batman-adv/main.h | 4 ++-- net/batman-adv/multicast.c | 2 +- net/batman-adv/multicast.h | 2 +- net/batman-adv/netlink.c | 2 +- net/batman-adv/netlink.h | 2 +- net/batman-adv/network-coding.c | 2 +- net/batman-adv/network-coding.h | 2 +- net/batman-adv/originator.c | 2 +- net/batman-adv/originator.h | 2 +- net/batman-adv/packet.h | 2 +- net/batman-adv/routing.c | 20 +++++++++----------- net/batman-adv/routing.h | 2 +- net/batman-adv/send.c | 2 +- net/batman-adv/send.h | 2 +- net/batman-adv/soft-interface.c | 7 ++++--- net/batman-adv/soft-interface.h | 2 +- net/batman-adv/sysfs.c | 2 +- net/batman-adv/sysfs.h | 2 +- net/batman-adv/tp_meter.c | 4 ++-- net/batman-adv/tp_meter.h | 2 +- net/batman-adv/translation-table.c | 4 +--- net/batman-adv/translation-table.h | 2 +- net/batman-adv/tvlv.c | 2 +- net/batman-adv/tvlv.h | 2 +- net/batman-adv/types.h | 2 +- 61 files changed, 95 insertions(+), 78 deletions(-)
A message that is not in the archive (sent off-list or not yet received): 20170125164303.14268-1-sw-2YrNx6rUIHYiY0qSoAWiAoQuADTiUCJX@public.gmane.org
PATCH 1/7 batman-adv: Start new development cycle
--- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/batman-adv/main.h +1 -1
@@ -24,7 +24,7 @@#define BATADV_DRIVER_DEVICE "batman-adv"#ifndef BATADV_SOURCE_VERSION -#define BATADV_SOURCE_VERSION "2016.5" +#define BATADV_SOURCE_VERSION "2017.0"#endif /* B.A.T.M.A.N. parameters */
Signature · 1 line
2.11.0
Simon Wunderlich
maintainerPATCH 2/7 batman-adv: Treat NET_XMIT_CN as transmit successfully
In reply to Simon WunderlichFrom: Gao Feng <[email protected]>
The tc could return NET_XMIT_CN as one congestion notification, but it does not mean the packet is lost. Other modules like ipvlan, macvlan, and others treat NET_XMIT_CN as success too.
So batman-adv should add the NET_XMIT_CN check.
--- net/batman-adv/distributed-arp-table.c | 3 ++- net/batman-adv/fragmentation.c | 2 +- net/batman-adv/routing.c | 10 +++++----- net/batman-adv/soft-interface.c | 2 +- net/batman-adv/tp_meter.c | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-)
net/batman-adv/distributed-arp-table.c +2 -1
@@ -659,7 +659,8 @@ static bool batadv_dat_send_data(struct batadv_priv *bat_priv, } send_status =batadv_send_unicast_skb (tmp_skb, neigh_node); -if (send_status ==NET_XMIT_SUCCESS ) { +if (send_status ==NET_XMIT_SUCCESS || + send_status ==NET_XMIT_CN ) {/* count the sent packet */ switch (packet_subtype) {case BATADV_P_DAT_DHT_GET :
net/batman-adv/fragmentation.c +1 -1
@@ -509,7 +509,7 @@ int batadv_frag_send_packet(struct sk_buff *skb,batadv_add_counter (bat_priv,BATADV_CNT_FRAG_TX_BYTES , skb_fragment->len +ETH_HLEN ); ret =batadv_send_unicast_skb (skb_fragment, neigh_node); -if (ret !=NET_XMIT_SUCCESS ) { +if (ret !=NET_XMIT_SUCCESS && ret !=NET_XMIT_CN ) { ret =NET_XMIT_DROP ; goto free_skb; }
net/batman-adv/routing.c +5 -5
@@ -262,7 +262,7 @@ static int batadv_recv_my_icmp_packet(struct batadv_priv *bat_priv, icmph->ttl =BATADV_TTL ; res =batadv_send_skb_to_orig (skb, orig_node,NULL ); -if (res ==NET_XMIT_SUCCESS ) +if (res ==NET_XMIT_SUCCESS || res ==NET_XMIT_CN ) ret =NET_RX_SUCCESS ;/* skb was consumed */
@@ -330,7 +330,7 @@ static int batadv_recv_icmp_ttl_exceeded(struct batadv_priv *bat_priv, icmp_packet->ttl =BATADV_TTL ; res =batadv_send_skb_to_orig (skb, orig_node,NULL ); -if (res ==NET_RX_SUCCESS ) +if (res ==NET_RX_SUCCESS || res ==NET_XMIT_CN ) ret =NET_XMIT_SUCCESS ;/* skb was consumed */
@@ -424,7 +424,7 @@ int batadv_recv_icmp_packet(struct sk_buff *skb,/* route it */ res =batadv_send_skb_to_orig (skb, orig_node, recv_if); -if (res ==NET_XMIT_SUCCESS ) +if (res ==NET_XMIT_SUCCESS || res ==NET_XMIT_CN ) ret =NET_RX_SUCCESS ;/* skb was consumed */
@@ -719,14 +719,14 @@ static int batadv_route_unicast_packet(struct sk_buff *skb, len = skb->len; res =batadv_send_skb_to_orig (skb, orig_node, recv_if); -if (res ==NET_XMIT_SUCCESS ) +if (res ==NET_XMIT_SUCCESS || res ==NET_XMIT_CN ) ret =NET_RX_SUCCESS ;/* skb was consumed */ skb =NULL ;/* translate transmit result into receive result */ -if (res ==NET_XMIT_SUCCESS ) { +if (res ==NET_XMIT_SUCCESS || res ==NET_XMIT_CN ) {/* skb was transmitted and consumed */ batadv_inc_counter (bat_priv,BATADV_CNT_FORWARD ); batadv_add_counter(bat_priv, BATADV_CNT_FORWARD_BYTES,
net/batman-adv/soft-interface.c +1 -1
@@ -386,7 +386,7 @@ static int batadv_interface_tx(struct sk_buff *skb, ret =batadv_send_skb_via_tt (bat_priv, skb, dst_hint, vid); } -if (ret !=NET_XMIT_SUCCESS ) +if (ret !=NET_XMIT_SUCCESS && ret !=NET_XMIT_CN ) goto dropped_freed; }
net/batman-adv/tp_meter.c +1 -1
@@ -615,7 +615,7 @@ static int batadv_tp_send_msg(struct batadv_tp_vars *tp_vars, const u8 *src,batadv_tp_fill_prerandom (tp_vars, data, data_len); r =batadv_send_skb_to_orig (skb, orig_node,NULL ); -if (r ==NET_XMIT_SUCCESS ) +if (r ==NET_XMIT_SUCCESS || r ==NET_XMIT_CN )return 0 ;return BATADV_TP_REASON_CANT_SEND ;
Signature · 1 line
2.11.0
David Miller
maintainerRe: [PATCH 2/7] batman-adv: Treat NET_XMIT_CN as transmit successfully
From: Simon Wunderlich <[email protected]>
Date: Wed, 25 Jan 2017 17:42:58 +0100
Quoted 11 lines
From: Gao Feng <[email protected]>
The tc could return
NET_XMIT_CNas one congestion notification, but it does not mean the packet is lost. Other modules like ipvlan, macvlan, and others treatNET_XMIT_CNas success too.So batman-adv should add the
NET_XMIT_CNcheck.Signed-off-by Gao Feng <[email protected]>Signed-off-by Sven Eckelmann <[email protected]>Signed-off-by Simon Wunderlich <[email protected]>
Instead of all of this churn, just change the dev_queue_xmit() call in net/batman-adv/send.c to be:
return net_xmit_eval(dev_queue_xmit(skb));
Simon Wunderlich
maintainerPATCH 3/7 batman-adv: Remove one condition check in batadv_route_unicast_packet
In reply to Simon WunderlichFrom: Gao Feng <[email protected]>
It could decrease one condition check to collect some statements in the first condition block.
--- net/batman-adv/routing.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
net/batman-adv/routing.c +4 -6
@@ -719,20 +719,18 @@ static int batadv_route_unicast_packet(struct sk_buff *skb, len = skb->len; res =batadv_send_skb_to_orig (skb, orig_node, recv_if); -if (res ==NET_XMIT_SUCCESS || res ==NET_XMIT_CN ) - ret =NET_RX_SUCCESS ; - -/* skb was consumed */ - skb =NULL ; -/* translate transmit result into receive result */ if (res ==NET_XMIT_SUCCESS || res ==NET_XMIT_CN ) { + ret =NET_RX_SUCCESS ;/* skb was transmitted and consumed */ batadv_inc_counter (bat_priv,BATADV_CNT_FORWARD );batadv_add_counter (bat_priv,BATADV_CNT_FORWARD_BYTES , len +ETH_HLEN ); } +/* skb was consumed */ + skb =NULL ; + put_orig_node:batadv_orig_node_put (orig_node); free_skb:
Signature · 1 line
2.11.0
Simon Wunderlich
maintainerPATCH 4/7 batman-adv: don't add loop detect macs to TT
In reply to Simon WunderlichFrom: Simon Wunderlich <[email protected]>
The bridge loop avoidance (BLA) feature of batman-adv sends packets to probe for Mesh/LAN packet loops. Those packets are not sent by real clients and should therefore not be added to the translation table (TT).
--- net/batman-adv/bridge_loop_avoidance.h | 18 ++++++++++++++++++ net/batman-adv/soft-interface.c | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-)
net/batman-adv/bridge_loop_avoidance.h +18 -0
@@ -20,6 +20,8 @@#include "main.h" +#include <linux/compiler.h> +#include <linux/stddef.h> #include <linux/types.h> struct net_device ;
@@ -27,6 +29,22 @@ struct netlink_callback;struct seq_file ;struct sk_buff ; +/** +* batadv_bla_is_loopdetect_mac - check if the mac address is from a loop detect +* frame sent by bridge loop avoidance +* @mac: mac address to check +* +* Return: true if the it looks like a loop detect frame +* (mac starts with BA:BE), false otherwise +*/ +static inline bool batadv_bla_is_loopdetect_mac (const uint8_t *mac) +{ +if (mac[0 ] ==0xba && mac[1 ] ==0xbe ) +return true; + +return false; +} +#ifdef CONFIG_BATMAN_ADV_BLA bool batadv_bla_rx (struct batadv_priv *bat_priv,struct sk_buff *skb,unsigned short vid,bool is_bcast);
net/batman-adv/soft-interface.c +2 -1
@@ -258,7 +258,8 @@ static int batadv_interface_tx(struct sk_buff *skb, ethhdr =eth_hdr (skb);/* Register the client MAC in the transtable */ -if (!is_multicast_ether_addr (ethhdr->h_source)) { +if (!is_multicast_ether_addr (ethhdr->h_source) && + !batadv_bla_is_loopdetect_mac (ethhdr->h_source)) { client_added =batadv_tt_local_add (soft_iface, ethhdr->h_source, vid, skb->skb_iif, skb->mark);
Signature · 1 line
2.11.0
Simon Wunderlich
maintainerPATCH 5/7 uapi: install batman_adv.h header
In reply to Simon WunderlichFrom: Sven Eckelmann <[email protected]>
09748a22f4ab ("batman-adv: add generic netlink family for batman-adv") introduced the new batman_adv.h which describes the netlink attributes and commands of batman-adv. But the Kbuild entry to install the header was not added.
All currently known tools ship their own copy of batman_adv.h but it should be installed anyway to later be able to migrate to the system batman_adv.h.
--- include/uapi/linux/Kbuild | 1 + 1 file changed, 1 insertion(+)
include/uapi/linux/Kbuild +1 -0
@@ -64,6 +64,7 @@ header-y += auto_fs.h header-y += auxvec.h header-y += ax25.h header-y += b1lli.h +header-y += batman_adv.h header-y += baycom.h header-y += bcm933xx_hcs.h header-y += bfs_fs.h
Signature · 1 line
2.11.0
Simon Wunderlich
maintainerPATCH 6/7 batman-adv: update copyright years for 2017
In reply to Simon WunderlichFrom: Sven Eckelmann <[email protected]>
--- include/uapi/linux/batman_adv.h | 2 +- net/batman-adv/Makefile | 2 +- net/batman-adv/bat_algo.c | 2 +- net/batman-adv/bat_algo.h | 2 +- net/batman-adv/bat_iv_ogm.c | 2 +- net/batman-adv/bat_iv_ogm.h | 2 +- net/batman-adv/bat_v.c | 2 +- net/batman-adv/bat_v.h | 2 +- net/batman-adv/bat_v_elp.c | 2 +- net/batman-adv/bat_v_elp.h | 2 +- net/batman-adv/bat_v_ogm.c | 2 +- net/batman-adv/bat_v_ogm.h | 2 +- net/batman-adv/bitarray.c | 2 +- net/batman-adv/bitarray.h | 2 +- net/batman-adv/bridge_loop_avoidance.c | 2 +- net/batman-adv/bridge_loop_avoidance.h | 2 +- net/batman-adv/debugfs.c | 2 +- net/batman-adv/debugfs.h | 2 +- net/batman-adv/distributed-arp-table.c | 2 +- net/batman-adv/distributed-arp-table.h | 2 +- net/batman-adv/fragmentation.c | 2 +- net/batman-adv/fragmentation.h | 2 +- net/batman-adv/gateway_client.c | 2 +- net/batman-adv/gateway_client.h | 2 +- net/batman-adv/gateway_common.c | 2 +- net/batman-adv/gateway_common.h | 2 +- net/batman-adv/hard-interface.c | 2 +- net/batman-adv/hard-interface.h | 2 +- net/batman-adv/hash.c | 2 +- net/batman-adv/hash.h | 2 +- net/batman-adv/icmp_socket.c | 2 +- net/batman-adv/icmp_socket.h | 2 +- net/batman-adv/log.c | 2 +- net/batman-adv/log.h | 2 +- net/batman-adv/main.c | 2 +- net/batman-adv/main.h | 2 +- net/batman-adv/multicast.c | 2 +- net/batman-adv/multicast.h | 2 +- net/batman-adv/netlink.c | 2 +- net/batman-adv/netlink.h | 2 +- net/batman-adv/network-coding.c | 2 +- net/batman-adv/network-coding.h | 2 +- net/batman-adv/originator.c | 2 +- net/batman-adv/originator.h | 2 +- net/batman-adv/packet.h | 2 +- net/batman-adv/routing.c | 2 +- net/batman-adv/routing.h | 2 +- net/batman-adv/send.c | 2 +- net/batman-adv/send.h | 2 +- net/batman-adv/soft-interface.c | 2 +- net/batman-adv/soft-interface.h | 2 +- net/batman-adv/sysfs.c | 2 +- net/batman-adv/sysfs.h | 2 +- net/batman-adv/tp_meter.c | 2 +- net/batman-adv/tp_meter.h | 2 +- net/batman-adv/translation-table.c | 2 +- net/batman-adv/translation-table.h | 2 +- net/batman-adv/tvlv.c | 2 +- net/batman-adv/tvlv.h | 2 +- net/batman-adv/types.h | 2 +- 60 files changed, 60 insertions(+), 60 deletions(-)
include/uapi/linux/batman_adv.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2016-2017 B.A.T.M.A.N. contributors: * * Matthias Schiffer *
net/batman-adv/Makefile +1 -1
@@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +# Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: # # Marek Lindner, Simon Wunderlich #
net/batman-adv/bat_algo.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/bat_algo.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2011-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Linus Lüssing *
net/batman-adv/bat_iv_ogm.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/bat_iv_ogm.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/bat_v.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2013-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Linus Lüssing, Marek Lindner *
net/batman-adv/bat_v.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2011-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Linus Lüssing *
net/batman-adv/bat_v_elp.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2011-2017 B.A.T.M.A.N. contributors: * * Linus Lüssing, Marek Lindner *
net/batman-adv/bat_v_elp.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2013-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Linus Lüssing, Marek Lindner *
net/batman-adv/bat_v_ogm.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2013-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Antonio Quartulli *
net/batman-adv/bat_v_ogm.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2013-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Antonio Quartulli *
net/batman-adv/bitarray.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2006-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
net/batman-adv/bitarray.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2006-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
net/batman-adv/bridge_loop_avoidance.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2011-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
net/batman-adv/bridge_loop_avoidance.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2011-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
net/batman-adv/debugfs.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2010-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2010-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/debugfs.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2010-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2010-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/distributed-arp-table.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2011-2017 B.A.T.M.A.N. contributors: * * Antonio Quartulli *
net/batman-adv/distributed-arp-table.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2011-2017 B.A.T.M.A.N. contributors: * * Antonio Quartulli *
net/batman-adv/fragmentation.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2013-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Martin Hundebøll <[email protected]> *
net/batman-adv/fragmentation.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2013-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Martin Hundebøll <[email protected]> *
net/batman-adv/gateway_client.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/gateway_client.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/gateway_common.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/gateway_common.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/hard-interface.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/hard-interface.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/hash.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2006-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
net/batman-adv/hash.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2006-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
net/batman-adv/icmp_socket.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/icmp_socket.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/log.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2010-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2010-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/log.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/main.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/main.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/multicast.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2014-2017 B.A.T.M.A.N. contributors: * * Linus Lüssing *
net/batman-adv/multicast.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2014-2017 B.A.T.M.A.N. contributors: * * Linus Lüssing *
net/batman-adv/netlink.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2016-2017 B.A.T.M.A.N. contributors: * * Matthias Schiffer *
net/batman-adv/netlink.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2016-2017 B.A.T.M.A.N. contributors: * * Matthias Schiffer *
net/batman-adv/network-coding.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2012-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Martin Hundebøll, Jeppe Ledet-Pedersen *
net/batman-adv/network-coding.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2012-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Martin Hundebøll, Jeppe Ledet-Pedersen *
net/batman-adv/originator.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/originator.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/packet.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/routing.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/routing.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/send.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/send.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/soft-interface.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/soft-interface.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/sysfs.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2010-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2010-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/sysfs.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2010-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2010-2017 B.A.T.M.A.N. contributors: * * Marek Lindner *
net/batman-adv/tp_meter.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2012-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Edo Monticelli, Antonio Quartulli *
net/batman-adv/tp_meter.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2012-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Edo Monticelli, Antonio Quartulli *
net/batman-adv/translation-table.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich, Antonio Quartulli *
net/batman-adv/translation-table.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich, Antonio Quartulli *
net/batman-adv/tvlv.c +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/tvlv.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
net/batman-adv/types.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 B.A.T.M.A.N. contributors: +/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich *
Signature · 1 line
2.11.0
Simon Wunderlich
maintainerPATCH 7/7 batman-adv: Remove unused variable in batadv_tt_local_set_flags
In reply to Simon WunderlichFrom: Sven Eckelmann <[email protected]>
--- net/batman-adv/translation-table.c | 2 -- 1 file changed, 2 deletions(-)
net/batman-adv/translation-table.c +0 -2
@@ -3714,7 +3714,6 @@ static void batadv_tt_local_set_flags(struct batadv_priv *bat_priv, u16 flags, {struct batadv_hashtable *hash = bat_priv->tt.local_hash;struct batadv_tt_common_entry *tt_common_entry; -u16 changed_num =0 ;struct hlist_head *head;u32 i;
@@ -3736,7 +3735,6 @@ static void batadv_tt_local_set_flags(struct batadv_priv *bat_priv, u16 flags,continue ; tt_common_entry->flags &= ~flags; } - changed_num++;if (!count)continue ;
Signature · 1 line
2.11.0