On Mon, Aug 05, 2024 at 03:43:50PM +0200, Wojciech Drewek wrote: > Triggering the reset while in switchdev mode causes > errors[1]. Rules are already removed by this time > because switch content is flushed in case of the reset. > We can avoid these errors by clearing the rules > early in the reset flow. Remove unnecessary > ice_clear_sw_switch_recipes.
Hi Wojciech, I think it would be helpful (at least to me) if the patch description included some more detail on 1) How the current flow results in these warnings; and 2) The new flow ensures resources are released. > > [1] > ice 0000:01:00.0: Failed to delete FDB forward rule, err: -2 > ice 0000:01:00.0: Failed to delete FDB guard rule, err: -2 > > Fixes: 7c945a1a8e5f ("ice: Switchdev FDB events support") > Reviewed-by: Mateusz Polchlopek <mateusz.polchlo...@intel.com> > Signed-off-by: Wojciech Drewek <wojciech.dre...@intel.com> ...