]> git.baikalelectronics.ru Git - kernel.git/commit
ipvlan: forbid vlan devices on top of ipvlan
authorPaolo Abeni <pabeni@redhat.com>
Fri, 2 Mar 2018 15:03:32 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 23:39:54 +0000 (18:39 -0500)
commit50a0025239ec61b0bd0274340c3856271c95cd93
treeb687a7a51532b53070311ff2012a70c6ff8e1ee2
parent368fa856317ba6da736cc54b20a20c7a7c31d5af
ipvlan: forbid vlan devices on top of ipvlan

Currently we allow the creation of 8021q devices on top of
ipvlan, but such devices are nonfunctional, as the underlying
ipvlan rx_hanlder hook can't match the relevant traffic.

Be explicit and forbid the creation of such nonfunctional devices.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_main.c