]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Nov 2018 18:56:34 +0000 (10:56 -0800)
commit2a9e8e6603fff2692268dbbf159964ffdc8c3521
treec41fd29b83c190a9491fde28c499e54d448b2e90
parent7d58949935b8c6e1051587a2a55fde98f5fdb6d5
i40e: suppress bogus error message

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>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c