Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2198293rwb; Thu, 27 Jul 2023 03:49:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2DhvHdx1+xYEPe0WFW0/FAUZxBVGjiv+/dcWQKEzkd5IEjgsf4hUPYFm6O+h1p8YLLsCg X-Received: by 2002:a05:6808:308b:b0:3a3:c31d:d9e2 with SMTP id bl11-20020a056808308b00b003a3c31dd9e2mr3005029oib.26.1690454981665; Thu, 27 Jul 2023 03:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690454981; cv=none; d=google.com; s=arc-20160816; b=NK+ZtLBl3jbqETVjjkJMFM9dLlKCsOKZ9TbkVz7mj4F/sKW3zVV4HW/6JFuBCLPT5H pU10pOya2owkKdX3zHemug9TjF5CRD0rOMLyW2gtn4OPyBMHS5kJFiopjxD3mWdaErxf 1wE/Jk7s9NtqvL9uojLcnfaLlhKicN9w6hlTgPpJ31IflhL3ltnYSTPuYKMD3qBIcQoP i4/P6KyUU4HY2F6M+XJJw6LFylVRwl1zzVrkscIIC+DVcD77969p7l+idrqLvrfCb2gQ SqBFQuSclR/9DYzdc0Pwz+2ez3uhvviRmlUQ7H9tkHt8SJHksQ2RFRYWIpGPvsU5UrKo Gaig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UMJv1zhoAkuL+8u7yVRzA38imljTc6TwiPqib+okbo8=; fh=rdeDb5mDzeo0+6hBHtONoimeP0F5c2afGvCLyDNhXQc=; b=QGkGEIyCemhfzaWPrtFybVyh7/WRclgmrYVR3ewOGstdgxmAPI5lxofus2m/yMDkKG g1hyPDeulnOkoU+IfpIUlZeQPwEN+ghZfObS+9tCBTP0zcjXrgRIIepsmO8TqJOL6iLm kbsNrkg/onyTS6PgGKMpnv2bq1Qf19pL6u+TyKRBfgpnjlKgoofBtiA8itIINsmWmsN3 hB/3xqG/Tskle0GdVuiP6ij6IxIMffEdlYTmIsJTeM4K4qqZOKnn7OC8MJaTkhQRqg3x Pq8fBnhSPSF3X5PiArg2JgMrOh1kVllkWHjaFx+yx0VjcY8CxwDKoAXjv916qJn+uAAK LzUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qI4Ii7B9; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w64-20020a638243000000b0055c868268f9si1050160pgd.462.2023.07.27.03.49.29; Thu, 27 Jul 2023 03:49:41 -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=@ti.com header.s=ti-com-17Q1 header.b=qI4Ii7B9; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231489AbjG0JXe (ORCPT + 99 others); Thu, 27 Jul 2023 05:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231587AbjG0JWz (ORCPT ); Thu, 27 Jul 2023 05:22:55 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E799430F7; Thu, 27 Jul 2023 02:13:06 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36R9ClEM057559; Thu, 27 Jul 2023 04:12:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690449167; bh=UMJv1zhoAkuL+8u7yVRzA38imljTc6TwiPqib+okbo8=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=qI4Ii7B9LfPg5YAAYuqWAHEIl/pxy/t8IW4+x9b0rlY5EK32Fo0BPAkUic67smXET LGaYw/fEfnVi2VkIqNGDzCgxZRWfQxMUy9ke+nZmiD1nRJNJ8UifD9licp0RZvH40l /lqgqEPlrviU5D5OaR60lCVFRFigZdL5IY9DF/oU= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36R9ClCk015693 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Jul 2023 04:12:47 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 27 Jul 2023 04:12:47 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 27 Jul 2023 04:12:47 -0500 Received: from [10.249.135.225] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36R9Cesi026479; Thu, 27 Jul 2023 04:12:41 -0500 Message-ID: <354e3bb2-268c-e7ed-ead0-a68a05e2d591@ti.com> Date: Thu, 27 Jul 2023 14:42:39 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [EXTERNAL] Re: [EXTERNAL] Re: [PATCH v11 06/10] net: ti: icssg-prueth: Add ICSSG ethernet driver Content-Language: en-US To: Jakub Kicinski CC: MD Danish Anwar , Randy Dunlap , Roger Quadros , Simon Horman , Vignesh Raghavendra , Andrew Lunn , Richard Cochran , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Eric Dumazet , "David S. Miller" , , , , , , , References: <20230724112934.2637802-1-danishanwar@ti.com> <20230724112934.2637802-7-danishanwar@ti.com> <20230725210939.56d77726@kernel.org> <9b11e602-6503-863a-f825-b595effd5e1d@ti.com> <20230726083707.623da581@kernel.org> From: "Anwar, Md Danish" In-Reply-To: <20230726083707.623da581@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 7/26/2023 9:07 PM, Jakub Kicinski wrote: > On Wed, 26 Jul 2023 16:01:23 +0530 Md Danish Anwar wrote: >> I think MAX_SKB_FRAGS is OK. If the available pool = MAX_SKB_FRAGS we should be >> able to wake the queue. > > MAX_SKB_FRAGS only counts frags and you also need space to map the head, no? > > In general we advise to wait until there's at least 2 * MAX_SKB_FRAGS > to avoid frequent sleep/wake cycles. But IDK how long your queue is, > maybe it's too much. > >> No I don't think any lock is required here. emac_set_port_state() aquires lock >> before updating port status. Also emac_ndo_set_rx_mode_work() is scheduled by a >> singlethreaded workqueue. > > if (netif_running()) outside of any locks is usually a red flag, but if > you're confident it's fine it's fine :) Sure Jakub. I will keep these as it is. -- Thanks and Regards, Md Danish Anwar