net: maintain namespace isolation between vlan and real device
commit8a83a00b0735190384a348156837918271034144
authorArnd Bergmann <arnd@arndb.de>
Sat, 30 Jan 2010 12:23:03 +0000 (30 12:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 04:20:32 +0000 (3 20:20 -0800)
treef69d903405e2424c196d8648bb6cb18443359373
parent6884b348ed759184032306c9435a727741a72298
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