]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix misleading message about promisc setting on un-trusted VF
authorHarshitha Ramamurthy <harshitha.ramamurthy@intel.com>
Thu, 28 Feb 2019 17:52:55 +0000 (09:52 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 May 2019 21:31:48 +0000 (14:31 -0700)
commit00a8c032f0485ea774f38adf871a4910021af2d5
treef0ecf3c926017f8681ce9d03c0e90f017ca21df7
parenta42a27b937612dceafa9dcaa6a51b1b4441c054b
i40e: fix misleading message about promisc setting on un-trusted VF

A refactor of the i40e_vc_config_promiscuous_mode_msg function moved
the check for un-trusted VF into another function. We have to lie to
an un-trusted VF that its request to set promiscuous mode is
successful even when it is not because we don't want the VF to find
out its trust status this way. With the refactor, we were running into
a case where even though we were not setting promiscuous mode for an
un-trusted VF, we still printed a misleading message that it was
successful.

This patch fixes that by ensuring that a success message is printed
on the host side only when the promiscuous mode change has been
successful.

Signed-off-by: Harshitha Ramamurthy <harshitha.ramamurthy@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