diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2007-03-21 21:38:47 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 07:28:44 +0200 |
commit | 6229e362dd49b9e8387126bd4483ab0574d23e9c (patch) | |
tree | 425c24858a6d21e58e49c05655875237d9b37a7c /net/bridge/br_private.h | |
parent | [NET]: Treat CHECKSUM_PARTIAL as CHECKSUM_UNNECESSARY (diff) | |
download | linux-6229e362dd49b9e8387126bd4483ab0574d23e9c.tar.xz linux-6229e362dd49b9e8387126bd4483ab0574d23e9c.zip |
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>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 2b73de6c0b47..fab8ce0ce88d 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -182,7 +182,8 @@ extern void br_features_recompute(struct net_bridge *br); /* br_input.c */ extern int br_handle_frame_finish(struct sk_buff *skb); -extern int br_handle_frame(struct net_bridge_port *p, struct sk_buff **pskb); +extern struct sk_buff *br_handle_frame(struct net_bridge_port *p, + struct sk_buff *skb); /* br_ioctl.c */ extern int br_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |