]> git.baikalelectronics.ru Git - kernel.git/commit
veth: move loopback logic to common location
authorArnd Bergmann <arnd@arndb.de>
Thu, 26 Nov 2009 06:07:08 +0000 (06:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Nov 2009 23:52:58 +0000 (15:52 -0800)
commit17b75cd9f6cc806974ac487202c37b261964c79c
tree5cfbd6d94f737107f3e6356fca2457ab3a66bb44
parent3bde809fd841fdabfddffed7aa62260bdffea44a
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>
drivers/net/veth.c
include/linux/netdevice.h
net/core/dev.c