vlan: deliver packets received with VLAN acceleration to network taps
authorPatrick McHardy <kaber@trash.net>
Tue, 15 Jul 2008 05:49:30 +0000 (22:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 05:49:30 +0000 (22:49 -0700)
commitbc1d0411b804ad190cdadabac48a10067f17b9e6
tree0a38da614b6bb46f2ffa2378aca25043a2b33a7c
parent6aa895b047720f71ec4eb11452f7c3ce8426941f
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>
include/linux/netdevice.h
net/8021q/vlan_core.c
net/core/dev.c