All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFCv3 PATCH net-next 0/2] net-next: ethool: add support to get/set tx push by ethtool -G/g
@ 2022-03-29  9:19 Jie Wang
  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  9:19 ` [RFCv3 PATCH net-next 2/2] net-next: hn3: add tx push support in hns3 ring param process Jie Wang
  0 siblings, 2 replies; 9+ messages in thread
From: Jie Wang @ 2022-03-29  9:19 UTC (permalink / raw)
  To: mkubecek, davem, kuba, wangjie125
  Cc: netdev, huangguangbin2, lipeng321, shenjian15, moyufeng,
	linyunsheng, salil.mehta, chenhao288

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-03-30  8:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-29  9:19 [RFCv3 PATCH net-next 0/2] net-next: ethool: add support to get/set tx push by ethtool -G/g Jie Wang
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)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.