]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: remove vlan promisc capability from VF's profile descriptors
authorKalesh AP <kalesh.purayil@avagotech.com>
Mon, 12 Oct 2015 07:47:21 +0000 (03:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 11:32:45 +0000 (04:32 -0700)
commit1709bd79ea5c22732f5759456ba8bc6e8a24e1e6
tree66411136a3cbb93cc3ac6587dfcef33fe73c1d71
parentfdb77acbeb932847167fe48cf91bf9ce662806ca
be2net: remove vlan promisc capability from VF's profile descriptors

The commit ce9803a0e21e ("Prevent VFs from enabling VLAN promiscuous mode")
fixed the PF driver to not include the VLAN promisc capability while
provisioning the interface for a VF. But the fix did not remove this
capability from the profile descriptor of the VF. This causes the VF
driver to request this capability when it tries to create it's interface
at probe time.  This could potentailly cause the VF probe to fail if the
FW enforces strict checking of the flags based on what was provisoned
by the PF.  This strict checking is not being done by FW currently but
will be fixed in a future version. This patch fixes this issue by updating
the VF's profile descriptor so that they match the interface capability
flags provisioned by the PF.

Fixes: ce9803a0e21e ("Prevent VFs from enabling VLAN promiscuous mode")
Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c