Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp657791rwo; Wed, 2 Aug 2023 01:54:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8WL1qzZKvHcV/YfvO0AR3IEe/OSqQ2O3WzflOWBEkuYLc698NG0rDEZ9ReKLN6UdRjkzX X-Received: by 2002:a05:6a21:3395:b0:133:f0a8:fb60 with SMTP id yy21-20020a056a21339500b00133f0a8fb60mr15942757pzb.15.1690966464074; Wed, 02 Aug 2023 01:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690966464; cv=none; d=google.com; s=arc-20160816; b=nHfD5XX5ATLhCDtTHtKZcQdHa6q5iJaplU3sdM01tPiWptNx+zsohbr1wxHGRSpkTU vOfXyQ4oE4QIuwIeiF8ZfXVmW4CGMVcgkCNfIHc4Cnpc23Wn50AxLYJIJm8KQ2/3NGJr qexS9HlEGhN6ac9iCCQTPz2NQF2u8PUGLAqxYKQKAv13ay1se8TvujTDl6iIjLc2tI+a lHJm3otHjtOgF9zzc6tPzipeztUAuPZQ7dxeRPTPexQl1bkQSUu+8dzncW2l8sJRY/zp Udtx0i4pIqCVWcakISgFpKAwqUjoVXndfRWwitv6esC2+1K7eDtSws6pe6LmZZ6WJUq8 kQfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=llvx4mdfvSj5J9l9m59JQT19sx7YAHn2YDSG1Mqh4zg=; fh=ylN8mjPCI21LpgfeiwNP1hH1M+LeM4o3fuiB8LsfgNo=; b=hwVQsMbByKhQrGM1Z35bYi7h9XwjZE9DOum0yD1DpBwqtXmYkcl9S15watBavEWmnl y/zZC1elVz+0pfT0kYBVTITODhB6rIK6GosyhV4toqMQZi7iBZQ09IyDvX61uBqU45ur xBUZdrF78Q2xrR7xJXsM55zZi1Zzj0nBz9qZYSrBVqTZ6taN2LnXrY3SWtB2E8mDu3R0 dFWQW4HZ/YNIpYB+1NmB63cYUHK/uOOAez7pbhOPdyyUZx05dDxrB3zz5cO/Y6W9B2yi 6Nq/K2rag3opUPMB4TZ6nVNbQSo/nk0q9GoiLb0VUi2rA/X4qYPleb9edRycqKsYouyu Mnnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=XXeucYay; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h32-20020a631220000000b0056399eeef81si10151778pgl.848.2023.08.02.01.54.11; Wed, 02 Aug 2023 01:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=XXeucYay; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231889AbjHBFhH (ORCPT + 99 others); Wed, 2 Aug 2023 01:37:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230425AbjHBFhG (ORCPT ); Wed, 2 Aug 2023 01:37:06 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FCAFE4; Tue, 1 Aug 2023 22:37:05 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1099) id E6B10238AF65; Tue, 1 Aug 2023 22:37:04 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E6B10238AF65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1690954624; bh=llvx4mdfvSj5J9l9m59JQT19sx7YAHn2YDSG1Mqh4zg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XXeucYayypWB4Kio0+xxOSHEZRvpMym5mJtcgLvrT2yZlil5eZM/tWaHJtEkIUWiP FF8Vo+uFbn0zN1C/cQslGXIeVX0ojBDCdxMUZstsuVdhBv0IvOOX96FOhvqpxx51wT 0XNmljKGS06jFaD5DcQ/XkZQ6NFNWwgR/P0q/eio= Date: Tue, 1 Aug 2023 22:37:04 -0700 From: Souradeep Chakrabarti To: Kalesh Anakkur Purayil Cc: Souradeep Chakrabarti , Simon Horman , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , Long Li , Ajay Sharma , "leon@kernel.org" , "cai.huoqing@linux.dev" , "ssengar@linux.microsoft.com" , vkuznets , "tglx@linutronix.de" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [EXTERNAL] Re: [PATCH V7 net] net: mana: Fix MANA VF unload when hardware is Message-ID: <20230802053704.GA3488@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1690892953-25201-1-git-send-email-schakrabarti@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-17.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 02, 2023 at 10:57:52AM +0530, Kalesh Anakkur Purayil wrote: > Hi Souradeep, > > It looks like the subject line is not complete. I could see "net: mana: Fix > MANA VF unload when hardware is". > > Is that correct? > > Regards, > Kalesh > Yes, it got truncated. Will fix it in next version. > On Wed, Aug 2, 2023 at 12:29 AM Souradeep Chakrabarti < > schakrabarti@microsoft.com> wrote: > > > > > > > >-----Original Message----- > > >From: Simon Horman > > >Sent: Tuesday, August 1, 2023 9:01 PM > > >To: Souradeep Chakrabarti > > >Cc: KY Srinivasan ; Haiyang Zhang > > >; wei.liu@kernel.org; Dexuan Cui > > >; davem@davemloft.net; edumazet@google.com; > > >kuba@kernel.org; pabeni@redhat.com; Long Li ; Ajay > > >Sharma ; leon@kernel.org; > > >cai.huoqing@linux.dev; ssengar@linux.microsoft.com; vkuznets > > >; tglx@linutronix.de; linux-hyperv@vger.kernel.org; > > >netdev@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > > >rdma@vger.kernel.org; Souradeep Chakrabarti > > >; stable@vger.kernel.org > > >Subject: [EXTERNAL] Re: [PATCH V7 net] net: mana: Fix MANA VF unload when > > >hardware is > > > > > >On Tue, Aug 01, 2023 at 05:29:13AM -0700, Souradeep Chakrabarti wrote: > > > > > >... > > > > > >Hi Souradeep, > > > > > > > > >> + for (i = 0; i < apc->num_queues; i++) { > > >> + txq = &apc->tx_qp[i].txq; > > >> + while (skb = skb_dequeue(&txq->pending_skbs)) { > > > > > >W=1 builds with both clang-16 and gcc-12 complain that they would like an > > >extra set of parentheses around an assignment used as a truth value. > > Thanks for letting me know. I will fix it in next version. > > > > > >> + mana_unmap_skb(skb, apc); > > >> + dev_consume_skb_any(skb); > > >> + } > > >> + atomic_set(&txq->pending_sends, 0); > > >> + } > > >> /* We're 100% sure the queues can no longer be woken up, because > > >> * we're sure now mana_poll_tx_cq() can't be running. > > >> */ > > >> -- > > >> 2.34.1 > > >> > > >> > > > > > > -- > Regards, > Kalesh A P