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>,
<salil.mehta@huawei.com>, <chenhao288@hisilicon.com>
Subject: [RFCv3 PATCH net-next 0/2] net-next: ethool: add support to get/set tx push by ethtool -G/g
Date: Tue, 29 Mar 2022 17:19:11 +0800 [thread overview]
Message-ID: <20220329091913.17869-1-wangjie125@huawei.com> (raw)
These two patches add tx push in ring parms and adapt the set and get APIs
of ring params
The former discussion please see [1].
[1]:https://lore.kernel.org/netdev/20220315032108.57228-1-wangjie125@huawei.com/
[2]:https://lore.kernel.org/netdev/20220326085102.14111-1-wangjie125@huawei.com/
ChangeLog:
V2->V3
1.Add tx push documentation in Documentation/networking/ethtool-netlink.rst
2.Use u8 to store tx push in struct kernel_ethtool_ringparam
3.Add ETHTOOL_RING_USE_TX_PUSH to reject setting for unsupported driver
4.Use NLA_POLICY_MAX(NLA_U8, 1) to limit the tx push value
V1->V2
extend tx push param in ringparam, suggested by Jakub Kicinski.
Jie Wang (2):
net-next: ethtool: extend ringparam set/get APIs for tx_push
net-next: hn3: add tx push support in hns3 ring param process
Documentation/networking/ethtool-netlink.rst | 2 ++
.../ethernet/hisilicon/hns3/hns3_ethtool.c | 33 ++++++++++++++++++-
include/linux/ethtool.h | 3 ++
include/uapi/linux/ethtool_netlink.h | 1 +
net/ethtool/netlink.h | 2 +-
net/ethtool/rings.c | 18 ++++++++--
6 files changed, 55 insertions(+), 4 deletions(-)
--
2.33.0
next reply other threads:[~2022-03-29 9:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-29 9:19 Jie Wang [this message]
2022-03-29 9:19 ` [RFCv3 PATCH net-next 1/2] net-next: ethtool: extend ringparam set/get APIs for tx_push Jie Wang
2022-03-29 19:09 ` Michal Kubecek
2022-03-30 1:55 ` wangjie (L)
2022-03-29 23:20 ` Jakub Kicinski
2022-03-30 5:55 ` wangjie (L)
2022-03-29 9:19 ` [RFCv3 PATCH net-next 2/2] net-next: hn3: add tx push support in hns3 ring param process Jie Wang
2022-03-29 19:44 ` Michal Kubecek
2022-03-30 8:56 ` wangjie (L)
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=20220329091913.17869-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 \
/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).