Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2933802pxb; Mon, 16 Nov 2020 00:45:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDRd9agrL5OGHubSXLvkfZuurZ2xdVx841tn4pu6DViX6hAoNRbo9wIqTR0bwLMjy2SqOu X-Received: by 2002:aa7:d404:: with SMTP id z4mr14883740edq.334.1605516321319; Mon, 16 Nov 2020 00:45:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605516321; cv=none; d=google.com; s=arc-20160816; b=esrgexYnYlllCBKibUe5Wz2lB2PDtyHHt+hoXCLz0Y0/oDbeZkumRMNB+RyIF8Um5J Lw4I7JSD3eGRuTLny59WoEVF9dVCKcnU/aBFuUcswMYW0v/V9RQTw+oonNrO99E5R3Su PEXx3KSEyxRn5C7bObHVtzafVMSUDFQT2mCNcyFXim4I4eClmL8ODc6gNEB6H+hBT0+r kEs3KjXETJGjq4tTidl6S7w78O09zwoc8j6WOutOWnN9XW/hnPlz0mVqHmBw8eT9I2ZB 7rnQG+sEkRLQt5zOo8NIBWsz3a86V/pTtK6UOXdHpNhJ5tWeG2vmDVGkP93i0opjaIsb CWPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=LipJseF2m20OGoBqqWAyRWRDcRSscVroeR+53BKTy8U=; b=Pbt0/NlUt0VKn6In43BqkMl7J5I9tCkUIvn5vgIK1QIUBFpe/iDa0oD1Ae+279xEVf lkL9FW3b3z6iGK1YLSKxpOMXaxF5wwvjWZYBfJTK24vmTXTRaNYBAe6WHlSMkcTsMSt0 Mab8xnFzEbYVjqFzgd276glEMj8Id7bwkRcCfPWsTuXkzFaozM6Ck5tV/UY8x/JbaaeC VpOYQUHCkPYmAEP7ZH6crwDVuTnVz+2iYiPjp8H4WP4OJ1uIugj9w/ta+C57CXfE71Uv EteC6GI121fjOWg3n8JHX+FOPEj5bvUAUcjoxt+DZyhHHKrE3soNTU1l/UFLWPJfnw/G OtFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj26si10139416ejb.663.2020.11.16.00.44.57; Mon, 16 Nov 2020 00:45:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728164AbgKPIl6 (ORCPT + 99 others); Mon, 16 Nov 2020 03:41:58 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7906 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbgKPIl6 (ORCPT ); Mon, 16 Nov 2020 03:41:58 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CZMxd275fz6xPd; Mon, 16 Nov 2020 16:41:41 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Nov 2020 16:41:45 +0800 Subject: Re: [PATCH V3 net-next 06/10] net: hns3: add ethtool priv-flag for DIM To: Jakub Kicinski , Michal Kubecek , Andrew Lunn , Jiri Pirko CC: , , , , , References: <1605151998-12633-1-git-send-email-tanhuazhong@huawei.com> <1605151998-12633-7-git-send-email-tanhuazhong@huawei.com> <20201114105423.07c2ce67@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: tanhuazhong Message-ID: <370fe668-d719-6380-f172-ad01edeb666e@huawei.com> Date: Mon, 16 Nov 2020 16:41:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20201114105423.07c2ce67@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.149.191] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/15 2:54, Jakub Kicinski wrote: > On Thu, 12 Nov 2020 11:33:14 +0800 Huazhong Tan wrote: >> Add a control private flag in ethtool for enable/disable >> DIM feature. >> >> Signed-off-by: Huazhong Tan > > Please work on a common ethtool API for the configuration instead of > using private flags. > > Private flags were overused because the old IOCTL-based ethtool was > hard to extend, but we have a netlink API now. > > For example here you're making a choice between device and DIM > implementation of IRQ coalescing. You can add a new netlink attribute > to the ETHTOOL_MSG_COALESCE_GET/ETHTOOL_MSG_COALESCE_SET commands which > controls the type of adaptive coalescing (if enabled). > The device's implementation of IRQ coalescing will be removed, if DIM works ok for a long time. So could this private flag for DIM be uptreamed as a transition scheme? And adding a new netlink attrtibute to controls the type of adaptive coalescing seems useless for other drivers. > > One question I don't think we have a strong answer for is how to handle > this extension from ethtool_ops point of view. Should we add a new > "extended" op which drivers may start implementing? Or separate the > structure passed in to the ops from the one used as uAPI? > > Thoughts anyone? > > > Huazhong Tan, since the DIM and EQ/CQ patches may require more > infrastructure work feel free to repost the first 4 patches separately, > I can apply those as is. > ok, thanks. > . >