Re: [PATCH net-next] net/mlx5: Implement swp_l4_csum_mode via devlink params

From
Daniel Zahka <daniel.zahka@gmail.com>
Date
2025-10-23 14:34:18
Also in
linux-rdma, lkml, netdev
Reply to
Jiri Pirko, 2025-10-23

On 10/23/25 8:18 AM, Jiri Pirko wrote:
Wed, Oct 22, 2025 at 09:09:31PM +0200, daniel.zahka@gmail.com wrote:
quoted
swp_l4_csum_mode controls how L4 transmit checksums are computed when
using Software Parser (SWP) hints for header locations.

Supported values:
  1. device_default: use device default setting.
Is this different between devices/fw_versions?
That is what I presume. I believe the current setting for swp_l4_csum_mode is ultimately encoded in the capabilities advertised to the driver during initialization. For example, I am mostly interested in mlx5e_psp_init(), which depends on:

    if (!MLX5_CAP_ETH(mdev, swp_csum_l4_partial)) {
        mlx5_core_dbg(mdev, "SWP L4 partial checksum not supported\n");
        return 0;
    }

My guess is that "device_default" means that this bit would depend on the device/fw_version.
Thread (7 messages) 7 messages, 3 authors, last reply 2025-10-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help