ethtool: add SET for TCP_DATA_SPLIT ringparam
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Tue, 12 Dec 2023 14:27:51 +0000 (15:27 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Dec 2023 02:22:02 +0000 (18:22 -0800)
commit50d73710715de7d1a2c88194562f520816af9c2a
tree1f1bf08821e86081e954cd1cd41e80ca44dba2c1
parent173b6d1cdf582e7438b3ab4ef2f40e6833579490
ethtool: add SET for TCP_DATA_SPLIT ringparam

Follow up commit 9690ae604290 ("ethtool: add header/data split
indication") and add the set part of Ethtool's header split, i.e.
ability to enable/disable header split via the Ethtool Netlink
interface. This might be helpful to optimize the setup for particular
workloads, for example, to avoid XDP frags, and so on.
A driver should advertise ``ETHTOOL_RING_USE_TCP_DATA_SPLIT`` in its
ops->supported_ring_params to allow doing that. "Unknown" passed from
the userspace when the header split is supported means the driver is
free to choose the preferred state.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20231212142752.935000-2-aleksander.lobakin@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool.h
net/ethtool/rings.c