> -----Original Message-----
> From: Alan Brady <[email protected]>
> Sent: Thursday, February 22, 2024 11:05 AM
> To: [email protected]
> Cc: [email protected]; Brady, Alan <[email protected]>; Lobakin,
> Aleksander <[email protected]>
> Subject: [PATCH v6 10/11 iwl-next] idpf: fix minor controlq issues
> 
> While we're here improving virtchnl we can include two minor fixes for
> the lower level ctrlq flow.
> 
> This adds a memory barrier to idpf_post_rx_buffs before we update tail
> on the controlq.  We should make sure our writes have had a chance to
> finish before we tell HW it can touch them.
> 
> This also removes some defensive programming in idpf_ctrlq_recv. The
> caller should not be using a num_q_msg value of zero or more than the
> ring size and it's their responsibility to call functions sanely.
> 
> Tested-by: Alexander Lobakin <[email protected]>
> Signed-off-by: Alan Brady <[email protected]>
> ---
>  drivers/net/ethernet/intel/idpf/idpf_controlq.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/idpf/idpf_controlq.c
> b/drivers/net/ethernet/intel/idpf/idpf_controlq.c

Tested-by: Krishneil Singh <[email protected]>

Reply via email to