aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-11-26 01:07:08 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-26 18:52:58 -0500
commit445409602c09219767c06497c0dc2285eac244ed (patch)
tree5cfbd6d94f737107f3e6356fca2457ab3a66bb44 /include
parent1bda8aa86b89d4c9b668000127ff87172f2daa10 (diff)
veth: move loopback logic to common location
The veth driver contains code to forward an skb from the start_xmit function of one network device into the receive path of another device. Moving that code into a common location lets us reuse the code for direct forwarding of data between macvlan ports, and possibly in other drivers. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 97873e31661c..9428793775a0 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1562,6 +1562,8 @@ extern int dev_set_mac_address(struct net_device *,
1562extern int dev_hard_start_xmit(struct sk_buff *skb, 1562extern int dev_hard_start_xmit(struct sk_buff *skb,
1563 struct net_device *dev, 1563 struct net_device *dev,
1564 struct netdev_queue *txq); 1564 struct netdev_queue *txq);
1565extern int dev_forward_skb(struct net_device *dev,
1566 struct sk_buff *skb);
1565 1567
1566extern int netdev_budget; 1568extern int netdev_budget;
1567 1569