diff options
author | David S. Miller <davem@davemloft.net> | 2013-04-22 20:32:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-22 20:32:51 -0400 |
commit | 6e0895c2ea326cc4bb11e8fa2f654628d5754c31 (patch) | |
tree | 7089303ac11a12edc43a8c4fa1b23974e10937ea /net/batman-adv/main.c | |
parent | 55fbbe46e9eb3cbe6c335503f5550855a1128dce (diff) | |
parent | 60d509fa6a9c4653a86ad830e4c4b30360b23f0e (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/ethernet/emulex/benet/be_main.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
include/net/scm.h
net/batman-adv/routing.c
net/ipv4/tcp_input.c
The e{uid,gid} --> {uid,gid} credentials fix conflicted with the
cleanup in net-next to now pass cred structs around.
The be2net driver had a bug fix in 'net' that overlapped with the VLAN
interface changes by Patrick McHardy in net-next.
An IGB conflict existed because in 'net' the build_skb() support was
reverted, and in 'net-next' there was a comment style fix within that
code.
Several batman-adv conflicts were resolved by making sure that all
calls to batadv_is_my_mac() are changed to have a new bat_priv first
argument.
Eric Dumazet's TS ECR fix in TCP in 'net' conflicted with the F-RTO
rewrite in 'net-next', mostly overlapping changes.
Thanks to Stephen Rothwell and Antonio Quartulli for help with several
of these merge resolutions.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/main.c')
-rw-r--r-- | net/batman-adv/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c index 6277735cd89e..3e30a0f1b908 100644 --- a/net/batman-adv/main.c +++ b/net/batman-adv/main.c | |||
@@ -177,7 +177,13 @@ void batadv_mesh_free(struct net_device *soft_iface) | |||
177 | atomic_set(&bat_priv->mesh_state, BATADV_MESH_INACTIVE); | 177 | atomic_set(&bat_priv->mesh_state, BATADV_MESH_INACTIVE); |
178 | } | 178 | } |
179 | 179 | ||
180 | int batadv_is_my_mac(const uint8_t *addr) | 180 | /** |
181 | * batadv_is_my_mac - check if the given mac address belongs to any of the real | ||
182 | * interfaces in the current mesh | ||
183 | * @bat_priv: the bat priv with all the soft interface information | ||
184 | * @addr: the address to check | ||
185 | */ | ||
186 | int batadv_is_my_mac(struct batadv_priv *bat_priv, const uint8_t *addr) | ||
181 | { | 187 | { |
182 | const struct batadv_hard_iface *hard_iface; | 188 | const struct batadv_hard_iface *hard_iface; |
183 | 189 | ||
@@ -186,6 +192,9 @@ int batadv_is_my_mac(const uint8_t *addr) | |||
186 | if (hard_iface->if_status != BATADV_IF_ACTIVE) | 192 | if (hard_iface->if_status != BATADV_IF_ACTIVE) |
187 | continue; | 193 | continue; |
188 | 194 | ||
195 | if (hard_iface->soft_iface != bat_priv->soft_iface) | ||
196 | continue; | ||
197 | |||
189 | if (batadv_compare_eth(hard_iface->net_dev->dev_addr, addr)) { | 198 | if (batadv_compare_eth(hard_iface->net_dev->dev_addr, addr)) { |
190 | rcu_read_unlock(); | 199 | rcu_read_unlock(); |
191 | return 1; | 200 | return 1; |