]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bonding/vlan: Avoid mangled NAs on slaves without VLAN tag insertion
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 7 Feb 2011 19:20:55 +0000 (19:20 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:39 +0000 (12:46 -0400)
commit630aba4aea40201ebeff7a6ccead86b65ec89b0d
treebc287c081cc7d7097d6cef7e1e775814d15fdfc0
parent82f2de71a7b4f618ae8ef44e4ce8052b99115189
bonding/vlan: Avoid mangled NAs on slaves without VLAN tag insertion

This is related to commit f88a4a9b65a6f3422b81be995535d0e69df11bb8
upstream, but the bug cannot be properly fixed without the other
changes to VLAN tagging in 2.6.37.

bond_na_send() attempts to insert a VLAN tag in between building and
sending packets of the respective formats.  If the slave does not
implement hardware VLAN tag insertion then vlan_put_tag() will mangle
the network-layer header because the Ethernet header is not present at
this point (unlike in bond_arp_send()).

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/net/bonding/bond_ipv6.c