Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2382741pxb; Mon, 23 Aug 2021 20:17:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0/0o/thm8P2zqJ4YHlE8JWA7CA3yjIg14PjxeXZV2c//4wBE0jG5ywrXSrmHtZ5MPfsfP X-Received: by 2002:a17:907:362:: with SMTP id rs2mr10606012ejb.17.1629775025128; Mon, 23 Aug 2021 20:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629775025; cv=none; d=google.com; s=arc-20160816; b=SF4uOe4T7K7tVZHxEzeNv+qejXATflcAUHQuh0u5DMKneZqvJPbCPYbmYeAZ5c54NU luulCxhuqFVAZfhqhSdP6LA1PL+aPa3H81EIgUYPaGUeSudNQMuvw3LMvcGKK61mOK6/ G1HC8Um/nZTif4QOGJdsIfDrQ/JVlri8ReOLkDrgMGuBXp3imPUHVD1CdUGkFX6v4Dhg 4ppvWw3sUDJZ20+vqq8Qr/qd7yUheOHAdMqnC6m6G0YIjTx+q93fuEsmpagbRzQvqqYY 8h7Rsgje2z1+86sa91b43V3W8OkY3jqL5+XyvPTRYJUgyB+t+Tp5b35Wh3HA71ieNzTW EUEg== 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 :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=HTO/UFCUOMQQHVIDj5V8wv/PEo6W1uP/baPGaVfaEwI=; b=l2nrAR0tRMTbh9UIEaY/GnCvw4O7l6u6ENN0hIw0AQw/q5bM9BBNrQ+/jYSJnmD48h +nbyC8HF7UXBvF1o2Jnx4MlUDwosP/yT2qQ7M7yWVSf7jBinC3I/ZMp5ZciYEWCopeyQ O0himYqnb9nzwuOId9lbzKfULwL4pVHDvR+UGVCYGqe9cGOt0c2NBenspwRJ/MXwPpjt ixn+aUtqr0K9bCCxsQ/RG0exHJdtE1zAzEClS+QGGExFtM29k1zkfCDWQHTR+s3RUlLD 1la0BA00lPJGZTkkvdOZch1X4pgh0Xy0L2nFvSRBmlXCJJQ8CG4psXV/N9hZEtB8bK8Z Zzfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si15500149ejk.703.2021.08.23.20.16.37; Mon, 23 Aug 2021 20:17:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234027AbhHXDPi (ORCPT + 99 others); Mon, 23 Aug 2021 23:15:38 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14411 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233885AbhHXDPh (ORCPT ); Mon, 23 Aug 2021 23:15:37 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GtvJP2zp6zbdT6; Tue, 24 Aug 2021 11:11:01 +0800 (CST) Received: from dggpeml500024.china.huawei.com (7.185.36.10) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 24 Aug 2021 11:14:50 +0800 Received: from [10.67.103.6] (10.67.103.6) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 24 Aug 2021 11:14:50 +0800 Subject: Re: [PATCH V3 net-next 2/4] ethtool: extend coalesce setting uAPI with CQE mode To: Jakub Kicinski , Grygorii Strashko References: <1629444920-25437-1-git-send-email-moyufeng@huawei.com> <1629444920-25437-3-git-send-email-moyufeng@huawei.com> <32fd0b32-e748-42d9-6468-b5b1393511e9@ti.com> <20210820152116.0741369a@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <659649ed-4697-e622-424d-0ab418c571a3@huawei.com> CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , From: moyufeng Message-ID: <0380b0e4-eb5f-b74c-57e8-30c9ca38f0ff@huawei.com> Date: Tue, 24 Aug 2021 11:14:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <659649ed-4697-e622-424d-0ab418c571a3@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.6] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021/8/23 11:06, moyufeng wrote: > > > On 2021/8/21 6:21, Jakub Kicinski wrote: >> On Fri, 20 Aug 2021 21:27:13 +0300 Grygorii Strashko wrote: >>> This is very big change which is not only mix two separate changes, but also looks >>> half-done. From one side you're adding HW feature supported by limited number of HW, >>> from another - changing most of net drivers to support it by generating mix of legacy >>> and new kernel_ethtool_coalesce parameters. >>> >>> There is also an issue - you do not account get/set_per_queue_coalesce() in any way. >> >> ethtool's netlink interface does not support per queue coalescing. >> I don't think it's fair to require it as part of this series. >> >>> Would it be possible to consider following, please? >>> >>> - move extack change out of this series >> >> Why? To have to change all the drivers twice? >> >>> - option (a) >>> add new callbacks in ethtool_ops as set_coalesce_cqe/get_coalesce_cqe for CQE support. >>> Only required drivers will need to be changed. >> >> All the params are changed as one operation from user space's >> perspective. Having two ops would make it problematic for drivers >> to fail the entire op without modifying half of the parameters in >> a previous callback. >> >>> - option (b) >>> add struct ethtool_coalesce as first field of kernel_ethtool_coalesce >> >> This ends up being more painful than passing an extra parameter >> in my experience. >> >>> struct kernel_ethtool_coalesce { >>> /* legacy */ >>> struct ethtool_coalesce coal; >>> >>> /* new */ >>> u8 use_cqe_mode_tx; >>> u8 use_cqe_mode_rx; >>> }; >>> >>> -- then b.1 >>> drivers can be updated as >>> static int set_coalesce(struct net_device *dev, >>> struct kernel_ethtool_coalesce *kernel_coal) >>> { >>> struct ethtool_coalesce *coal = &kernel_coal->coal; >>> >>> (which will clearly indicate migration to the new interface ) >>> >>> -- then b.2 >>> add new callbacks in ethtool_ops as set_coalesce_ext/get_coalesce_ext (extended) >>> which will accept struct kernel_ethtool_coalesce as parameter an allow drivers to migrate when needed >>> (or as separate patch which will do only migration). >>> >>> Personally, I like "b.2". >> >> These options were considered. None of the options is great to >> be honest. Let's try the new params, I say. >> . >> > > Yes, these have been considered in previous RFCs. For details, please refer to [1]. > > [1]https://lore.kernel.org/netdev/20210526165633.3f7982c9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com/ > > . > Hi Grygorii & Jakub Is this patch still good? Or do I need to resend this series with RFC link above in change log? Thanks