]> git.baikalelectronics.ru Git - kernel.git/commit
net: maintain namespace isolation between vlan and real device
authorArnd Bergmann <arnd@arndb.de>
Sat, 30 Jan 2010 12:23:03 +0000 (12:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 04:20:32 +0000 (20:20 -0800)
commitbe5d73addae14db55f25596e61b044d30f097425
treef69d903405e2424c196d8648bb6cb18443359373
parent6767e6556d8c0fd6ec557ff68a577b04b56a5a49
net: maintain namespace isolation between vlan and real device

In the vlan and macvlan drivers, the start_xmit function forwards
data to the dev_queue_xmit function for another device, which may
potentially belong to a different namespace.

To make sure that classification stays within a single namespace,
this resets the potentially critical fields.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
include/linux/netdevice.h
net/8021q/vlan_dev.c
net/core/dev.c