Centos-kernel-stream-9/include/uapi
Jarod Wilson e8ad88bbac Merge: CNB97: ethtool: Block setting of symmetric RSS when non-symmetric rx-flow-hash is requested
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7201

JIRA: https://issues.redhat.com/browse/RHEL-107024

commit 1b2900db0119c02e6445bb61ec3fba982d10cc8d
Author: Gal Pressman <gal@nvidia.com>
Date:   Thu May 8 13:30:34 2025 +0300

    ethtool: Block setting of symmetric RSS when non-symmetric rx-flow-hash is requested

    Symmetric RSS hash requires that:
    * No other fields besides IP src/dst and/or L4 src/dst are set
    * If src is set, dst must also be set

    This restriction was only enforced when RXNFC was configured after
    symmetric hash was enabled. In the opposite order of operations (RXNFC
    then symmetric enablement) the check was not performed.

    Perform the sanity check on set_rxfh as well, by iterating over all flow
    types hash fields and making sure they are all symmetric.

    Introduce a function that returns whether a flow type is hashable (not
    spec only) and needs to be iterated over. To make sure that no one
    forgets to update the list of hashable flow types when adding new flow
    types, a static assert is added to draw the developer's attention.

    The conversion of uapi #defines to enum is not ideal, but as Jakub
    mentioned [1], we have precedent for that.

    [1] https://lore.kernel.org/netdev/20250324073509.6571ade3@kernel.org/

    Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
    Signed-off-by: Gal Pressman <gal@nvidia.com>
    Reviewed-by: Simon Horman <horms@kernel.org>
    Link: https://patch.msgid.link/20250508103034.885536-1-gal@nvidia.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>

Approved-by: mheib <mheib@redhat.com>
Approved-by: Ivan Vecera <ivecera@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: Jarod Wilson <jarod@redhat.com>
2025-08-18 17:04:52 -07:00
..
asm-generic arch: Reserve map_shadow_stack() syscall number for all architectures 2025-03-18 17:09:46 +01:00
drm drm/xe/pxp: Clarify PXP queue creation behavior if PXP is not ready 2025-08-12 19:04:21 +02:00
fwctl fwctl/mlx5: Support for communicating with mlx5 fw 2025-06-17 10:30:12 +09:00
linux Merge: CNB97: ethtool: Block setting of symmetric RSS when non-symmetric rx-flow-hash is requested 2025-08-18 17:04:52 -07:00
misc
mtd
rdma RDMA/mlx5: Expose RDMA TRANSPORT flow table types to userspace 2025-07-30 09:56:54 +09:00
scsi Merge: Upgrade the UFS core to v6.12 2025-02-14 02:34:29 -05:00
sound ALSA: FCP: Add Focusrite Control Protocol driver 2025-05-13 16:53:01 +02:00
video
xen
Kbuild