OSDN Git Service

bnx2x: fix detection of VLAN filtering feature for VF
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 3 Mar 2017 16:08:31 +0000 (17:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:28:20 +0000 (09:28 +0100)
commitcdef3be8c7bb2caabfe9886ac88f60b0c1dcd370
tree600eb86e606f152d8f86ecf06304bdd0f56c6feb
parentf73fcb25f4bba5c8df9de1693ea382f21f8f6818
bnx2x: fix detection of VLAN filtering feature for VF

[ Upstream commit 83bd9eb8fc69cdd5135ed6e1f066adc8841800fd ]

VFs are currently missing the VLAN filtering feature, because we were
checking the PF's acquire response before actually performing the acquire.

Fix it by setting the feature flag later when we have the PF response.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c