Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Shai Malin <smalin@marvell.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"davem@davemloft.net" <davem@davemloft.net>,
	Ariel Elior <aelior@marvell.com>,
	"malin1024@gmail.com" <malin1024@gmail.com>
Subject: Re: [PATCH v2] qed: qed ll2 race condition fixes
Date: Sun, 15 Aug 2021 08:18:07 +0000	[thread overview]
Message-ID: <SJ0PR18MB3882F27A79F4913034FE9E70CCFC9@SJ0PR18MB3882.namprd18.prod.outlook.com> (raw)

On Sat, 14 Aug 2021 03:05:00 + 0300 Jakub Kicinski wrote:
> On Thu, 12 Aug 2021 22:53:13 +0300 Shai Malin wrote:
> > Avoiding qed ll2 race condition and NULL pointer dereference as part
> > of the remove and recovery flows.
> >
> > Changes form V1:
> > - Change (!p_rx->set_prod_addr).
> > - qed_ll2.c checkpatch fixes.
> >
> > Signed-off-by: Ariel Elior <aelior@marvell.com>
> > Signed-off-by: Shai Malin <smalin@marvell.com>
> > ---
> >  drivers/net/ethernet/qlogic/qed/qed_ll2.c | 38 +++++++++++++++++------
> >  1 file changed, 29 insertions(+), 9 deletions(-)
> >
> > diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c
> b/drivers/net/ethernet/qlogic/qed/qed_ll2.c
> > index 02a4610d9330..9a9f0c516c0c 100644
> > --- a/drivers/net/ethernet/qlogic/qed/qed_ll2.c
> > +++ b/drivers/net/ethernet/qlogic/qed/qed_ll2.c
> > @@ -106,7 +106,7 @@ static int qed_ll2_alloc_buffer(struct qed_dev *cdev,
> >  }
> >
> >  static int qed_ll2_dealloc_buffer(struct qed_dev *cdev,
> > -				 struct qed_ll2_buffer *buffer)
> > +				  struct qed_ll2_buffer *buffer)
> >  {
> >  	spin_lock_bh(&cdev->ll2->lock);
> >
> 
> > @@ -670,11 +682,11 @@ static int qed_ll2_lb_rxq_handler(struct qed_hwfn
> *p_hwfn,
> >  		p_pkt = list_first_entry(&p_rx->active_descq,
> >  					 struct qed_ll2_rx_packet, list_entry);
> >
> > -		if ((iscsi_ooo->ooo_opcode == TCP_EVENT_ADD_NEW_ISLE) ||
> > -		    (iscsi_ooo->ooo_opcode == TCP_EVENT_ADD_ISLE_RIGHT) ||
> > -		    (iscsi_ooo->ooo_opcode == TCP_EVENT_ADD_ISLE_LEFT) ||
> > -		    (iscsi_ooo->ooo_opcode == TCP_EVENT_ADD_PEN) ||
> > -		    (iscsi_ooo->ooo_opcode == TCP_EVENT_JOIN)) {
> > +		if (iscsi_ooo->ooo_opcode == TCP_EVENT_ADD_NEW_ISLE ||
> > +		    iscsi_ooo->ooo_opcode == TCP_EVENT_ADD_ISLE_RIGHT ||
> > +		    iscsi_ooo->ooo_opcode == TCP_EVENT_ADD_ISLE_LEFT ||
> > +		    iscsi_ooo->ooo_opcode == TCP_EVENT_ADD_PEN ||
> > +		    iscsi_ooo->ooo_opcode == TCP_EVENT_JOIN) {
> >  			if (!p_pkt) {
> >  				DP_NOTICE(p_hwfn,
> >  					  "LL2 OOO RX packet is not valid\n");
> 
> Sorry, I missed this before, please don't mix code clean up into
> unrelated patches. Especially into fixes. Same goes for your other
> patch (qed: Fix null-pointer dereference in qed_rdma_create_qp()).

Sure.

             reply	other threads:[~2021-08-15  8:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-15  8:18 Shai Malin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-08-12 19:53 Shai Malin
2021-08-14  0:05 ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR18MB3882F27A79F4913034FE9E70CCFC9@SJ0PR18MB3882.namprd18.prod.outlook.com \
    --to=smalin@marvell.com \
    --cc=aelior@marvell.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=malin1024@gmail.com \
    --cc=netdev@vger.kernel.org \
    --subject='Re: [PATCH v2] qed: qed ll2 race condition fixes' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).