net: Add __dev_forward_skb
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Apr 2014 05:45:03 +0000 (13:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Apr 2014 22:18:55 +0000 (18:18 -0400)
commita0265d28b3a5877b5b8edd14eb12a2ccb60ab1f3
tree1b37b9f58ace1d7cc5c2ce4378a657e675b7349f
parent1536e2857bd38e3bcd19963fd6b3c3287b4747c4
net: Add __dev_forward_skb

This patch adds the helper __dev_forward_skb which is identical to
dev_forward_skb except that it doesn't actually inject the skb into
the stack.  This is useful where we wish to have finer control over
how the packet is injected, e.g., via netif_rx_ni or netif_receive_skb.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c