]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitced4e8e1aff28f5609cad1569e3f96ade35eb0b6
tree0a38da614b6bb46f2ffa2378aca25043a2b33a7c
parent70a6a8345307cfb92d428841a0d77b5de5f43559
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