[Intel-wired-lan] [PATCH net-next v2 3/4] i40e: Add new version of i40e_aq_add_macvlan function
G, GurucharanX
gurucharanx.g at intel.com
Fri Jan 21 17:27:59 UTC 2022
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jagielski, Jedrzej
> Sent: Friday, January 14, 2022 6:50 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Sylwester Dziedziuch <sylwesterx.dziedziuch at intel.com>; Jagielski,
> Jedrzej <jedrzej.jagielski at intel.com>
> Subject: [Intel-wired-lan] [PATCH net-next v2 3/4] i40e: Add new version of
> i40e_aq_add_macvlan function
>
> From: Jedrzej Jagielski <jedrzej.jagielski at intel.com>
>
> ASQ send command functions are returning only i40e status codes yet some
> calling functions also need Admin Queue status that is stored in hw-
> >aq.asq_last_status. Since hw object is stored on a heap it introduces a
> possibility for a race condition in access to hw if calling function is not fast
> enough to read hw->aq.asq_last_status before next send ASQ command is
> executed.
>
> Add new _v2 version of i40e_aq_add_macvlan that is using new _v2 versions
> of ASQ send command functions and returns the Admin Queue status on the
> stack.
>
> Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch at intel.com>
> Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski at intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_common.c | 92 +++++++++++++++----
> .../net/ethernet/intel/i40e/i40e_prototype.h | 5 +
> 2 files changed, 77 insertions(+), 20 deletions(-)
>
Tested-by: Gurucharan G <gurucharanx.g at intel.com> (A Contingent worker at Intel)
More information about the Intel-wired-lan
mailing list