bridge: eliminate call by reference
Change the bridging hook to be simple function with return value rather than modifying the skb argument. This could generate better code and is cleaner. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
This commit is contained in:

committed by
David S. Miller

parent
604763722c
commit
6229e362dd
@@ -105,7 +105,8 @@ struct __fdb_entry
|
||||
#include <linux/netdevice.h>
|
||||
|
||||
extern void brioctl_set(int (*ioctl_hook)(unsigned int, void __user *));
|
||||
extern int (*br_handle_frame_hook)(struct net_bridge_port *p, struct sk_buff **pskb);
|
||||
extern struct sk_buff *(*br_handle_frame_hook)(struct net_bridge_port *p,
|
||||
struct sk_buff *skb);
|
||||
extern int (*br_should_route_hook)(struct sk_buff **pskb);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user