aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-07-15 01:49:30 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-15 01:49:30 -0400
commitbc1d0411b804ad190cdadabac48a10067f17b9e6 (patch)
tree0a38da614b6bb46f2ffa2378aca25043a2b33a7c /include
parent6aa895b047720f71ec4eb11452f7c3ce8426941f (diff)
vlan: deliver packets received with VLAN acceleration to network taps
When VLAN header stripping is used, packets currently bypass packet sockets (and other network taps) completely. For locally existing VLANs, they appear directly on the VLAN device, for unknown VLANs they are silently dropped. Add a new function netif_nit_deliver() to deliver incoming packets to all network interface taps and use it in __vlan_hwaccel_rx() to make VLAN packets visible on the underlying device. Signed-off-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index b54ec16dfbda..ba5c4639ea91 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1165,6 +1165,7 @@ extern int netif_rx(struct sk_buff *skb);
1165extern int netif_rx_ni(struct sk_buff *skb); 1165extern int netif_rx_ni(struct sk_buff *skb);
1166#define HAVE_NETIF_RECEIVE_SKB 1 1166#define HAVE_NETIF_RECEIVE_SKB 1
1167extern int netif_receive_skb(struct sk_buff *skb); 1167extern int netif_receive_skb(struct sk_buff *skb);
1168extern void netif_nit_deliver(struct sk_buff *skb);
1168extern int dev_valid_name(const char *name); 1169extern int dev_valid_name(const char *name);
1169extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); 1170extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *);
1170extern int dev_ethtool(struct net *net, struct ifreq *); 1171extern int dev_ethtool(struct net *net, struct ifreq *);