mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
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>
This commit is contained in:
parent
1bda8aa86b
commit
445409602c
3 changed files with 45 additions and 14 deletions
|
|
@ -1562,6 +1562,8 @@ extern int dev_set_mac_address(struct net_device *,
|
|||
extern int dev_hard_start_xmit(struct sk_buff *skb,
|
||||
struct net_device *dev,
|
||||
struct netdev_queue *txq);
|
||||
extern int dev_forward_skb(struct net_device *dev,
|
||||
struct sk_buff *skb);
|
||||
|
||||
extern int netdev_budget;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue