From: Jie Wang <wangjie125@huawei.com>
To: <mkubecek@suse.cz>, <davem@davemloft.net>, <kuba@kernel.org>,
<wangjie125@huawei.com>
Cc: <netdev@vger.kernel.org>, <huangguangbin2@huawei.com>,
<lipeng321@huawei.com>, <shenjian15@huawei.com>,
<moyufeng@huawei.com>, <linyunsheng@huawei.com>,
<tanhuazhong@huawei.com>, <salil.mehta@huawei.com>,
<chenhao288@hisilicon.com>
Subject: [RFC net-next 0/2] add ethtool ops support for fresh device features
Date: Tue, 15 Mar 2022 11:21:06 +0800 [thread overview]
Message-ID: <20220315032108.57228-1-wangjie125@huawei.com> (raw)
As Jakub Kicinski comment in patch:
https://lore.kernel.org/netdev/20220125195508.585b0c40@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net/
, there are no ethtool command similar to ethtool -k for features contained
entirely to the driver. Fresh device features such as tx push need this
kind of command to set/get feature attributes.
So this patch adds new ethtool command support for new features belongs to
the driver. The second patch adds hns3 support for this new command to
configure tx push feature. This command can be easily reused by other
features.
Comments are welcomed and i'm still testing this command.
Jie Wang (2):
net: ethtool: add ethtool ability to set/get fresh device features
net: hns3: add ethtool set/get device features support for hns3 driver
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 +
.../ethernet/hisilicon/hns3/hns3_ethtool.c | 77 +++++++++++++++++++
include/linux/ethtool.h | 4 +
include/uapi/linux/ethtool.h | 27 +++++++
net/ethtool/ioctl.c | 43 +++++++++++
5 files changed, 152 insertions(+)
--
2.33.0
next reply other threads:[~2022-03-15 3:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-15 3:21 Jie Wang [this message]
2022-03-15 3:21 ` [RFC net-next 1/2] net: ethtool: add ethtool ability to set/get fresh device features Jie Wang
2022-03-15 19:15 ` Jakub Kicinski
2022-03-15 19:56 ` Michal Kubecek
2022-03-16 1:45 ` Jakub Kicinski
2022-03-21 6:17 ` wangjie (L)
2022-03-21 18:20 ` Jakub Kicinski
2022-03-15 20:03 ` Roopa Prabhu
2022-03-16 1:40 ` Jakub Kicinski
2022-03-15 19:18 ` Michal Kubecek
2022-03-18 6:28 ` wangjie (L)
2022-03-15 3:21 ` [RFC net-next 2/2] net: hns3: add ethtool set/get device features support for hns3 driver Jie Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220315032108.57228-1-wangjie125@huawei.com \
--to=wangjie125@huawei.com \
--cc=chenhao288@hisilicon.com \
--cc=davem@davemloft.net \
--cc=huangguangbin2@huawei.com \
--cc=kuba@kernel.org \
--cc=linyunsheng@huawei.com \
--cc=lipeng321@huawei.com \
--cc=mkubecek@suse.cz \
--cc=moyufeng@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=salil.mehta@huawei.com \
--cc=shenjian15@huawei.com \
--cc=tanhuazhong@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).