]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: use rx_handler_data pointer to store macvlan_port pointer V2
authorJiri Pirko <jpirko@redhat.com>
Tue, 15 Jun 2010 03:27:57 +0000 (03:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jun 2010 18:47:12 +0000 (11:47 -0700)
commit00dace5f16e0daa76b8bb5fdaee3597373c53243
tree64fa6bc6b772248acfb92b5743c5f0d475126891
parent7db1d767a9bea072caf7959a114a93913f11c1da
macvlan: use rx_handler_data pointer to store macvlan_port pointer V2

Register macvlan_port pointer as rx_handler data pointer. As macvlan_port is
removed from struct net_device, another netdev priv_flag is added to indicate
the device serves as a macvlan port.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
include/linux/if.h
include/linux/netdevice.h