[Intel-wired-lan] [PATCH net-next v1 0/4] Eliminate race condition occurrence during sending ASQ commands

Jedrzej Jagielski jedrzej.jagielski at intel.com
Mon Jan 10 13:11:38 UTC 2022


Provide modifications in ASQ commands in order to
prevent for race condition occurrences.
Add new versions of ASQ commands based on sending commands
in atomic context. New versions of commands are marked as _v2.
Also change already existing ASQ commands to be able to work
in atomic context. Make them to invoking previously added
i40e_asq_send_command_atomic() function to perform aq calls.

Eliminate problem with race conditions connected to accessing
hw->aq.asq_last_status during callig ASQ commands.

1. Add new versions of send ASQ command functions including
new version of i40e_aq_remove_macvlan().

2. Add new version of i40e_aq_add_macvlan() function.

3. Change i40e_aqc_add_filters() and i40e_aqc_del_filters() functions
located in i40e_main.c to use new versions of i40e_aq_add_macvlan()
and i40e_aq_remove_macvlan().

4. Change several i40e_aq_ functions to send commands in atomic
context by using i40e_asq_send_command_atomic(..., true).

Jedrzej Jagielski (4):
  i40e: Add new versions of send ASQ command functions
  i40e: Add new version of i40e_aq_add_macvlan function
  i40e: Fix race condition while adding/deleting MAC/VLAN filters
  i40e: Add sending commands in atomic context

 drivers/net/ethernet/intel/i40e/i40e_adminq.c |  92 +++++++++-
 drivers/net/ethernet/intel/i40e/i40e_common.c | 162 +++++++++++++++---
 drivers/net/ethernet/intel/i40e/i40e_main.c   |  24 +--
 .../net/ethernet/intel/i40e/i40e_prototype.h  |  25 +++
 4 files changed, 258 insertions(+), 45 deletions(-)

-- 
2.27.0



More information about the Intel-wired-lan mailing list