]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: add header/data split indication
authorJakub Kicinski <kuba@kernel.org>
Thu, 27 Jan 2022 18:42:59 +0000 (10:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jan 2022 14:43:47 +0000 (14:43 +0000)
commit7dbafe22b5ef388f7c50893c90be6586f2733134
tree05901b52f36783cdd5b53e2327752792304dc575
parent6428137ab268471925820f18eb32fca4f7e6649d
ethtool: add header/data split indication

For applications running on a mix of platforms it's useful
to have a clear indication whether host's NIC supports the
geometry requirements of TCP zero-copy. TCP zero-copy Rx
requires data to be neatly placed into memory pages.
Most NICs can't do that.

This patch is adding GET support only, since the NICs
I work with either always have the feature enabled or
enable it whenever MTU is set to jumbo. In other words
I don't need SET. But adding set should be trivial.
(The only note on SET is that we will likely want
the setting to be "sticky" and use 0 / `unknown`
to reset it back to driver default.)

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ethtool-netlink.rst
include/linux/ethtool.h
include/uapi/linux/ethtool_netlink.h
net/ethtool/rings.c