net: 8021q: skip packets if the vlan is down
authorVishakha Narvekar <Vishakha.Narvekar@dell.com>
Tue, 3 Oct 2017 20:13:29 +0000 (16:13 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Oct 2017 01:16:48 +0000 (18:16 -0700)
commite769fcec6bc4bdd1b0e2cf817680148f9c40b1c4
tree11deb5a063028440de108c8779cf371469e23c37
parent90caccdd8cc0215705f18b92771b449b01e2474a
net: 8021q: skip packets if the vlan is down

If the vlan is down, free the packet instead of proceeding with other
processing, or counting it as received.  If vlan interfaces are used
as slaves for bonding, with arp monitoring for connectivity, if the rx
counter is seen to be incrementing, then the bond device will not
observe that the interface is down.

CC: David S. Miller <davem@davemloft.net>
Signed-off-by: Vishakha Narvekar <Vishakha.Narvekar@dell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c