> -----Original Message----- > From: Alan Brady <alan.br...@intel.com> > Sent: Thursday, February 22, 2024 11:05 AM > To: intel-wired-...@lists.osuosl.org > Cc: net...@vger.kernel.org; Brady, Alan <alan.br...@intel.com>; Lobakin, > Aleksander <aleksander.loba...@intel.com> > 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 <aleksander.loba...@intel.com> > Signed-off-by: Alan Brady <alan.br...@intel.com> > --- > 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 <krishneil.k.si...@intel.com>