On Tue, Apr 19, 2022 at 08:50:30PM +0800, Guangbin Huang wrote: > From: Jie Wang > > Currently tx push is a standard feature for NICs such as Mellanox, HNS3. > But there is no command to set or get this feature. > > So this patch adds support for "ethtool -G tx-push on|off" and > "ethtool -g " to set/get tx push mode. > > Signed-off-by: Jie Wang > Signed-off-by: Guangbin Huang > --- [...] > diff --git a/uapi/linux/ethtool_netlink.h b/uapi/linux/ethtool_netlink.h > index d8b19cf98003..79fe0bf686f3 100644 > --- a/uapi/linux/ethtool_netlink.h > +++ b/uapi/linux/ethtool_netlink.h > @@ -330,6 +330,7 @@ enum { > ETHTOOL_A_RINGS_RX_JUMBO, /* u32 */ > ETHTOOL_A_RINGS_TX, /* u32 */ > ETHTOOL_A_RINGS_RX_BUF_LEN, /* u32 */ > + ETHTOOL_A_RINGS_TX_PUSH = 13, /* u8 */ > > /* add new constants above here */ > __ETHTOOL_A_RINGS_CNT, Please update the uapi headers from sanitized kernel headers as described here: https://www.kernel.org/pub/software/network/ethtool/devel.html (the paragraph starting "If you need new or updated definitions..." near the end of the page). Michal