]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: use rx_handler_data pointer to store net_bridge_port pointer
authorJiri Pirko <jpirko@redhat.com>
Tue, 15 Jun 2010 06:50:45 +0000 (06:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jun 2010 18:48:58 +0000 (11:48 -0700)
commit60cb4ba2ec2feab512a80bb79bec23bc44d6f856
treec8210542a9848f6b5953b58d2ba1dbfb11715f14
parent00dace5f16e0daa76b8bb5fdaee3597373c53243
bridge: use rx_handler_data pointer to store net_bridge_port pointer

Register net_bridge_port pointer as rx_handler data pointer. As br_port is
removed from struct net_device, another netdev priv_flag is added to indicate
the device serves as a bridge port. Also rcuized pointers are now correctly
dereferenced in br_fdb.c and in netfilter parts.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
20 files changed:
drivers/net/ksz884x.c
drivers/staging/batman-adv/hard-interface.c
include/linux/if.h
include/linux/netdevice.h
net/bridge/br_fdb.c
net/bridge/br_if.c
net/bridge/br_input.c
net/bridge/br_netfilter.c
net/bridge/br_netlink.c
net/bridge/br_notify.c
net/bridge/br_private.h
net/bridge/br_stp_bpdu.c
net/bridge/netfilter/ebt_redirect.c
net/bridge/netfilter/ebt_ulog.c
net/bridge/netfilter/ebtables.c
net/core/dev.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c
net/wireless/nl80211.c
net/wireless/util.c