Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [net PATCH 0/2] ice/i40e: stop disabling VFs due to PF error responses
@ 2022-02-17  0:51 Jacob Keller
  2022-02-17  0:51 ` [Intel-wired-lan] [net PATCH 1/2] i40e: " Jacob Keller
  2022-02-17  0:51 ` [Intel-wired-lan] [net PATCH 2/2] ice: " Jacob Keller
  0 siblings, 2 replies; 7+ messages in thread
From: Jacob Keller @ 2022-02-17  0:51 UTC (permalink / raw)
  To: intel-wired-lan

The ice and i40e drivers have similar logic to detect PF error responses to
the VFs over the Virtchnl interface. This logic counts the number of
sequential error responses sent to a VF and logs each error response as a
dev_info to the kernel log. If more than 10 error responses are sent in a
row, the PF driver disables the VF in question.

This logic has existed since the early days of i40e VF implementation, and
was carried forward into ice. The logic appears to be some form of malicious
VF detection. However, it doesn't actually fit in with the hardware based
malicious VF detection available in the device hardware.

In fact, the logic has had some adjustments in the i40e driver to reduce the
messaging from dev_err to dev_info, and to allow specific messages to skip
the check.

These changes clearly highlight the problematic nature of the check.
Additionally, there is no requirement for this behavior in our product
design. Other driver implementations such as the FreeBSD drivers do not
implement this behavior.

Disabling VFs is typically not what system administrators what to happen,
and this behavior is non-intuitive and not documented. Since it clearly
causes issues and isn't connected to the proper malicious driver detection,
remove this check from both ice and i40e.

Jacob Keller (2):
  i40e: stop disabling VFs due to PF error responses
  ice: stop disabling VFs due to PF error responses

 .../net/ethernet/intel/i40e/i40e_debugfs.c    |  6 +-
 .../ethernet/intel/i40e/i40e_virtchnl_pf.c    | 57 +++----------------
 .../ethernet/intel/i40e/i40e_virtchnl_pf.h    |  5 --
 .../net/ethernet/intel/ice/ice_virtchnl_pf.c  | 18 ------
 .../net/ethernet/intel/ice/ice_virtchnl_pf.h  |  3 -
 5 files changed, 9 insertions(+), 80 deletions(-)


base-commit: 35410c10918a84c9685cd644686ca637bb3c046b
-- 
2.35.1.129.gb80121027d12


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-02 21:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-17  0:51 [Intel-wired-lan] [net PATCH 0/2] ice/i40e: stop disabling VFs due to PF error responses Jacob Keller
2022-02-17  0:51 ` [Intel-wired-lan] [net PATCH 1/2] i40e: " Jacob Keller
2022-03-02 21:27   ` Jankowski, Konrad0
2022-02-17  0:51 ` [Intel-wired-lan] [net PATCH 2/2] ice: " Jacob Keller
2022-02-17 17:24   ` Nguyen, Anthony L
2022-02-17 18:20     ` Keller, Jacob E
2022-03-02 21:26   ` Jankowski, Konrad0

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox