]> www.infradead.org Git - users/dwmw2/linux.git/commit
i40e: suppress bogus error message
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 26 Oct 2018 21:33:33 +0000 (14:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:08 +0000 (20:02 +0100)
commit3fe0bb2c7a86e9664129eced61a101fa2969107a
tree43332d07902427573f9a28f5beafc525bb593f8d
parent4a9260a92daccf0d483c14b0fbdd26993035a43b
i40e: suppress bogus error message

[ Upstream commit 7cd8eb0861981ad212ce4242a1870c4b5831ceff ]

The i40e driver complains about unprivileged VFs trying to configure
promiscuous mode each time a VF reset occurs. This isn't the fault of
the poor VF driver - the PF driver itself is making the request.

To fix this, skip the privilege check if the request is to disable all
promiscuous activity. This gets rid of the bogus message, but doesn't
affect privilege checks, since we really only care if the unprivileged
VF is trying to enable promiscuous mode.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c