Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2042096pxb; Sat, 14 Nov 2020 10:58:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2cf/Mon0qS/RjZdS6FXBuvM5wKBmzep3aQ84sJreWhhk9aDLch017scyEiXaWqlhWn3IQ X-Received: by 2002:a17:906:5bda:: with SMTP id w26mr7679739ejs.233.1605380291606; Sat, 14 Nov 2020 10:58:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605380291; cv=none; d=google.com; s=arc-20160816; b=KK7ApApx0dtPXm5ORPwdNBukSzS4//ylFIaSH6wYK1hxqjkWs+lI6/E7LoTXN3Z6lI HQtS1nC3Sm7tXKRvcVZBJ66ApKJOjTXHfieCZBMnr1AO1pzptz1OEv2tri7qrxe9qAkB gOpxEt5qzm8FZIsjsE3ukRVTj5m3qpL6BOU8ZKwFt4DpHRh13nRnR8hkVMnSLPLqdl+z CIzMafwT3Lnk8bR3VnUtaL76hdktwLKCyEPSNDTp9XVQ2hjQ2RKxopibynNpoWmlZZMo j2gAf5bdMbBVaE5Ld7i/XSdnxvNLCXmPiTkRqHYiZ9qXNDyoue5aRAWIWh/yHGqwpa4K DeUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EOaUPsxjS1kU/6rqH4W8rcXNXuwDOqqlKN4H3lTFVq8=; b=nQ3l0UbuZFIEvqVZ0w1+PyrhyugX53O+nCC1PGEyYz9LaggN5Btw9vzoaLCDBA+1wD jVl6MgcnpLk/VZxXH+zWlknSJbglLGvBQPleAdozQn1s1EptjGhgX57s/aB1Hgp9M661 +CRa/y3mbhJ/pai5/DbR08iSu3EOnCQXFiu4U3cZpJ8/VpKspda6y6ank3M73Fux28iI w+H8W7JEruRae/o0FR+N3QA9RAolYugNE8cQavUJ/8taL4Lbou9raEiYPpLSvzOfJ/3E kdqYNardQPspuesBYPxAuIOhf8zoI5Utjb90kdO0YWAXHeiNtkRAFHaeBvFzOQs26vk6 HOiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QIGW9Y80; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 27si9184604edw.379.2020.11.14.10.57.49; Sat, 14 Nov 2020 10:58:11 -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; dkim=pass header.i=@kernel.org header.s=default header.b=QIGW9Y80; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726182AbgKNSy1 (ORCPT + 99 others); Sat, 14 Nov 2020 13:54:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:50456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbgKNSyZ (ORCPT ); Sat, 14 Nov 2020 13:54:25 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (c-67-180-217-166.hsd1.ca.comcast.net [67.180.217.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B58892065E; Sat, 14 Nov 2020 18:54:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605380065; bh=wwWlmNEE2oGxhesTon0cMMUtpHFh/OEjU82UmhLkgFQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QIGW9Y80OwBrBEhsHVRq3e2nqap03lcqypLWnGeHEzQRYghBCduUQbDlqpotHwFvW AwnslJUIwrRYat9/aFDKcZtypIkme2cM0DVyB5/Fly5YIRcZQtnFILX+EqeQrHU+ma r+xRkFIls87zv3RvKM/1Gt6miwsvRImwpBSX1b4c= Date: Sat, 14 Nov 2020 10:54:23 -0800 From: Jakub Kicinski To: Huazhong Tan , Michal Kubecek , Andrew Lunn , Jiri Pirko Cc: , , , , , Subject: Re: [PATCH V3 net-next 06/10] net: hns3: add ethtool priv-flag for DIM Message-ID: <20201114105423.07c2ce67@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1605151998-12633-7-git-send-email-tanhuazhong@huawei.com> References: <1605151998-12633-1-git-send-email-tanhuazhong@huawei.com> <1605151998-12633-7-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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.