From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53F88C61DA4 for ; Thu, 2 Feb 2023 08:46:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231760AbjBBIqQ (ORCPT ); Thu, 2 Feb 2023 03:46:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbjBBIqP (ORCPT ); Thu, 2 Feb 2023 03:46:15 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C30256DFEA for ; Thu, 2 Feb 2023 00:46:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 344ECCE28D6 for ; Thu, 2 Feb 2023 08:46:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDD4AC433EF; Thu, 2 Feb 2023 08:46:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675327571; bh=Nor9djCaMbjQPm0+Vm2HtPvT3gGToiULHOhrNdcjI8I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JU1jwW9WqzAPJJR6eOOPRtKREg+KRvTt478l0guFaDT9VcJV3WdgtKkYfEQ0NqKXk iJqGTnmYD/bu/hHv+zr0pDS1aguR2Wth3zWQVTII+PW9l3/8ppIePVvtKg9/tBpNZO CmVtmTZ3tB5Vd5nWTB2SWhjSsl30uBp8OvIHxBEp6/CQta1UN24eRdJ2LHaYNZBMCr T5G1SL/v2KqpQaWfYsHKvZixnAjzTFyi2FbCkZkGO9IFMAuxnii1CEsHptlvAsqa/S u9DGY4XtpXKvr5hTmY8Nb0FjXS/6WkvqRLdHIMlc76P6m+obPTLGFb6ovoSl6FH+cX DuvggZW23KY1w== Date: Thu, 2 Feb 2023 10:46:07 +0200 From: Leon Romanovsky To: Shannon Nelson Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, drivers@pensando.io, Neel Patel Subject: Re: [PATCH net 4/6] ionic: clean interrupt before enabling queue to avoid credit race Message-ID: References: <20230202013002.34358-1-shannon.nelson@amd.com> <20230202013002.34358-5-shannon.nelson@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230202013002.34358-5-shannon.nelson@amd.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Feb 01, 2023 at 05:30:00PM -0800, Shannon Nelson wrote: > From: Neel Patel > > Clear the interrupt credits before enabling the queue rather > than after to be sure that the enabled queue starts at 0 and > that we don't wipe away possible credits after enabling the > queue. > > Fixes: 0f3154e6bcb3 ("ionic: Add Tx and Rx handling") > Signed-off-by: Neel Patel > Signed-off-by: Shannon Nelson > --- > drivers/net/ethernet/pensando/ionic/ionic_lif.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky