diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2014-04-17 13:45:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-20 18:18:55 -0400 |
commit | a0265d28b3a5877b5b8edd14eb12a2ccb60ab1f3 (patch) | |
tree | 1b37b9f58ace1d7cc5c2ce4378a657e675b7349f /include/linux/netdevice.h | |
parent | 1536e2857bd38e3bcd19963fd6b3c3287b4747c4 (diff) | |
download | blackbird-op-linux-a0265d28b3a5877b5b8edd14eb12a2ccb60ab1f3.tar.gz blackbird-op-linux-a0265d28b3a5877b5b8edd14eb12a2ccb60ab1f3.zip |
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 7ed3a3aa6604..a803d792df1e 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2633,6 +2633,7 @@ int dev_get_phys_port_id(struct net_device *dev, struct netdev_phys_port_id *ppid); int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev, struct netdev_queue *txq); +int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb); int dev_forward_skb(struct net_device *dev, struct sk_buff *skb); bool is_skb_forwardable(struct net_device *dev, struct sk_buff *skb); |