]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Add function for VF driver to query default VLAN.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 13 Jun 2016 06:25:28 +0000 (02:25 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 00:37:27 +0000 (17:37 -0700)
commit80c3e4e1f848543879a253cd28b8446ad6e5442c
tree4b0ab20a668ddceabb0e3316df8ae10e4b3e54fe
parent135893fbbd0189f1b0800e54cd8e0eeb02adf624
bnxt_en: Add function for VF driver to query default VLAN.

Orabug: 23221795

The PF can setup a default VLAN for a VF.  The default VLAN tag is
automatically inserted and stripped without the knowledge of the
stack running on the VF.  The VF driver needs to know that default
VLAN is enabled as VLAN acceleration on the RX side is no longer
supported.  Call netdev_update_features() to fix up the VLAN features
as necessary.  Also, VLAN strip mode must be enabled to strip out
the default VLAN tag.

Only allow VF default VLAN to be set if the firmware spec is >= 1.2.1.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit cf6645f8ebc69775a857b7c51928f3ad9e37aa66)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c