diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-11-15 06:38:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-15 11:13:16 -0800 |
commit | a386f99025f13b32502fe5dedf223c20d7283826 (patch) | |
tree | 63f137ee76576555118ae0ff6a49ee6f0412aa11 /include/linux/if_bridge.h | |
parent | e80516880019aa1f7c5c410276edfea9575ec89f (diff) | |
download | linux-stable-a386f99025f13b32502fe5dedf223c20d7283826.tar.gz linux-stable-a386f99025f13b32502fe5dedf223c20d7283826.tar.bz2 linux-stable-a386f99025f13b32502fe5dedf223c20d7283826.zip |
bridge: add proper RCU annotation to should_route_hook
Add br_should_route_hook_t typedef, this is the only way we can
get a clean RCU implementation for function pointer.
Move route_hook to location where it is used.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_bridge.h')
-rw-r--r-- | include/linux/if_bridge.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index 0d241a5c4909..f7e73c338c40 100644 --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h @@ -102,7 +102,9 @@ struct __fdb_entry { #include <linux/netdevice.h> extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *)); -extern int (*br_should_route_hook)(struct sk_buff *skb); + +typedef int (*br_should_route_hook_t)(struct sk_buff *skb); +extern br_should_route_hook_t __rcu *br_should_route_hook; #endif |