qed: Lay infrastructure for vlan filtering offload
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Thu, 18 Feb 2016 15:00:39 +0000 (17:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 21:07:44 +0000 (16:07 -0500)
commit3f9b4a6972d50562613daa649ed064244e6bc7bb
treec026cf2be058f984f2b24eca91ebdba8c42736f0
parente12a285c9beccbdbb0346cce847dcd779096be5f
qed: Lay infrastructure for vlan filtering offload

Today, interfaces are working in vlan-promisc mode; But once
vlan filtering offloaded would be supported, we'll need a method to
control it directly [e.g., when setting device to PROMISC, or when
running out of vlan credits].

This adds the necessary API for L2 client to manually choose whether to
accept all vlans or only those for which filters were configured.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_l2.c
include/linux/qed/qed_eth_if.h