linux/Documentation/networking/devlink
Daniel Zahka b11d358bf8 net/mlx5: implement swp_l4_csum_mode via devlink params
swp_l4_csum_mode controls how L4 transmit checksums are computed when
using Software Parser (SWP) hints for header locations.

Supported values:
  1. default: device will choose between full_csum or l4_only. Driver
     will discover the device's choice during initialization.
  2. full_csum: calculate L4 checksum with the pseudo-header.
  3. l4_only: calculate L4 checksum without the pseudo-header. Only
     available when swp_l4_csum_mode_l4_only is set in
     mlx5_ifc_nv_sw_offload_cap_bits.

Note that 'default' might be returned from the device and passed to
userspace, and it might also be set during a
devlink_param::reset_default() call, but attempts to set a value of
default directly with param-set will be rejected.

The l4_only setting is a dependency for PSP initialization in
mlx5e_psp_init().

Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Link: https://patch.msgid.link/20251119025038.651131-5-daniel.zahka@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-11-20 19:01:22 -08:00
..
am65-nuss-cpsw-switch.rst
bnxt.rst
devlink-dpipe.rst
devlink-eswitch-attr.rst
devlink-flash.rst
devlink-health.rst
devlink-info.rst
devlink-linecard.rst
devlink-params.rst
devlink-port.rst
devlink-region.rst
devlink-reload.rst
devlink-resource.rst
devlink-selftests.rst
devlink-trap.rst
etas_es58x.rst
hns3.rst
i40e.rst
ice.rst
index.rst
ionic.rst
iosm.rst
ixgbe.rst
kvaser_pciefd.rst
kvaser_usb.rst
mlx4.rst
mlx5.rst
mlxsw.rst
mv88e6xxx.rst
netdevsim.rst
nfp.rst
octeontx2.rst
prestera.rst
qed.rst
sfc.rst
stmmac.rst
ti-cpsw-switch.rst
zl3073x.rst