On 3/26/24 17:44, Marcin Szycik wrote:
In cases when VF sends malformed packets that are classified as malicious,
sometimes it causes Tx queue to freeze. This frozen queue can be stuck
for several minutes being unusable. This behavior can be reproduced with
a faulty userspace app running on VF.

When Malicious Driver Detection event occurs and the mdd-auto-reset-vf
private flag is set, perform a graceful VF reset to quickly bring VF back
to operational state. Add a log message to notify about the cause of
the reset. Add a helper for this to be reused for both TX and RX events.

Reviewed-by: Wojciech Drewek <wojciech.dre...@intel.com>
Co-developed-by: Liang-Min Wang <liang-min.w...@intel.com>
Signed-off-by: Liang-Min Wang <liang-min.w...@intel.com>
Signed-off-by: Marcin Szycik <marcin.szy...@linux.intel.com>
---
v3: Only auto reset VF if the mdd-auto-reset-vf flag is set
v2 [1]: Revert an unneeded formatting change, fix commit message, fix a log
     message with a correct event name

[1] 
https://lore.kernel.org/netdev/20231102155149.2574209-1-pawel.chmielew...@intel.com
---
  drivers/net/ethernet/intel/ice/ice_main.c  | 47 +++++++++++++++++-----
  drivers/net/ethernet/intel/ice/ice_sriov.c | 14 ++++---
  drivers/net/ethernet/intel/ice/ice_sriov.h |  4 +-
  3 files changed, 46 insertions(+), 19 deletions(-)


Reviewed-by: Przemek Kitszel <przemyslaw.kits...@intel.com>

Reply via email to