[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <391517f4-62f4-4eb8-9b39-4d743a8ac156@intel.com>
Date: Wed, 27 Mar 2024 07:33:31 +0100
From: Przemek Kitszel <przemyslaw.kitszel@...el.com>
To: Marcin Szycik <marcin.szycik@...ux.intel.com>,
<intel-wired-lan@...ts.osuosl.org>
CC: <netdev@...r.kernel.org>, <mschmidt@...hat.com>,
<anthony.l.nguyen@...el.com>, <pawel.chmielewski@...el.com>, Wojciech Drewek
<wojciech.drewek@...el.com>, Liang-Min Wang <liang-min.wang@...el.com>
Subject: Re: [PATCH iwl-next v3] ice: Reset VF on Tx MDD event
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.drewek@...el.com>
> Co-developed-by: Liang-Min Wang <liang-min.wang@...el.com>
> Signed-off-by: Liang-Min Wang <liang-min.wang@...el.com>
> Signed-off-by: Marcin Szycik <marcin.szycik@...ux.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.chmielewski@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.kitszel@...el.com>
Powered by blists - more mailing lists