bridge: Simplify interface for ATM LANE
This patch changes FDB entry check for ATM LANE bridge integration. There's no point in holding a FDB entry around SKB building. br_fdb_get()/br_fdb_put() pair are changed into single br_fdb_test_addr() hook that checks if the addr has FDB entry pointing to other port to the one the request arrived on. FDB entry refcounting is removed as it's not used anywhere else. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Acked-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
746e6ad23c
commit
da6782927d
@@ -65,8 +65,9 @@ static int __init br_init(void)
|
||||
brioctl_set(br_ioctl_deviceless_stub);
|
||||
br_handle_frame_hook = br_handle_frame;
|
||||
|
||||
br_fdb_get_hook = br_fdb_get;
|
||||
br_fdb_put_hook = br_fdb_put;
|
||||
#if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
|
||||
br_fdb_test_addr_hook = br_fdb_test_addr;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
err_out4:
|
||||
@@ -95,8 +96,9 @@ static void __exit br_deinit(void)
|
||||
synchronize_net();
|
||||
|
||||
br_netfilter_fini();
|
||||
br_fdb_get_hook = NULL;
|
||||
br_fdb_put_hook = NULL;
|
||||
#if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
|
||||
br_fdb_test_addr_hook = NULL;
|
||||
#endif
|
||||
|
||||
br_handle_frame_hook = NULL;
|
||||
br_fdb_fini();
|
||||
|
Reference in New Issue
Block a user