lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 31 Mar 2022 16:43:39 +0800
From:   Jie Wang <>
To:     <>, <>, <>,
CC:     <>, <>,
        <>, <>,
        <>, <>,
        <>, <>
Subject: [RFCv4 PATCH net-next 0/3] net-next: ethool: add support to get/set tx push by ethtool -G/g

These two patches add tx push in ring params and adapt the set and get APIs 
of ring params

The former discussion please see [1].


1,Put three request checks before rtnl_lock() in ethnl_set_rings
2,Add tx push feature description in Documentation/networking/ethtool-netlink.rst
3,Use netdev_dbg to track changes in hns3_set_tx_push

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

extend tx push param in ringparam, suggested by Jakub Kicinski.

Jie Wang (3):
  net-next: ethtool: extend ringparam set/get APIs for tx_push
  net-next: ethtool: move checks before rtnl_lock() in ethnl_set_rings
  net-next: hn3: add tx push support in hns3 ring param process

 Documentation/networking/ethtool-netlink.rst  | 10 ++++
 .../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                           | 56 ++++++++++++-------
 6 files changed, 83 insertions(+), 22 deletions(-)


Powered by blists - more mailing lists