diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-11 02:56:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-11 02:56:33 -0400 |
commit | 04c9f416e371cff076a8b3279fb213628915d059 (patch) | |
tree | 2b64cb835cbc9d19d2d06f1e7618615d40ada0af /net/batman-adv/soft-interface.c | |
parent | c278fa53c123282f753b2264fc62c0e9502a32fa (diff) | |
parent | c1f5163de417dab01fa9daaf09a74bbb19303f3c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/bridge_loop_avoidance.h
net/batman-adv/soft-interface.c
net/mac80211/mlme.c
With merge help from Antonio Quartulli (batman-adv) and
Stephen Rothwell (drivers/net/usb/qmi_wwan.c).
The net/mac80211/mlme.c conflict seemed easy enough, accounting for a
conversion to some new tracing macros.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 9e4bb61301ec..109ea2aae96c 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -267,8 +267,12 @@ void batadv_interface_rx(struct net_device *soft_iface, | |||
267 | struct batadv_priv *bat_priv = netdev_priv(soft_iface); | 267 | struct batadv_priv *bat_priv = netdev_priv(soft_iface); |
268 | struct ethhdr *ethhdr; | 268 | struct ethhdr *ethhdr; |
269 | struct vlan_ethhdr *vhdr; | 269 | struct vlan_ethhdr *vhdr; |
270 | struct batadv_header *batadv_header = (struct batadv_header *)skb->data; | ||
270 | short vid __maybe_unused = -1; | 271 | short vid __maybe_unused = -1; |
271 | __be16 ethertype = __constant_htons(BATADV_ETH_P_BATMAN); | 272 | __be16 ethertype = __constant_htons(BATADV_ETH_P_BATMAN); |
273 | bool is_bcast; | ||
274 | |||
275 | is_bcast = (batadv_header->packet_type == BATADV_BCAST); | ||
272 | 276 | ||
273 | /* check if enough space is available for pulling, and pull */ | 277 | /* check if enough space is available for pulling, and pull */ |
274 | if (!pskb_may_pull(skb, hdr_size)) | 278 | if (!pskb_may_pull(skb, hdr_size)) |
@@ -315,7 +319,7 @@ void batadv_interface_rx(struct net_device *soft_iface, | |||
315 | /* Let the bridge loop avoidance check the packet. If will | 319 | /* Let the bridge loop avoidance check the packet. If will |
316 | * not handle it, we can safely push it up. | 320 | * not handle it, we can safely push it up. |
317 | */ | 321 | */ |
318 | if (batadv_bla_rx(bat_priv, skb, vid)) | 322 | if (batadv_bla_rx(bat_priv, skb, vid, is_bcast)) |
319 | goto out; | 323 | goto out; |
320 | 324 | ||
321 | netif_rx(skb); | 325 | netif_rx(skb); |