]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: HWS, Fix IP version decision
authorVlad Dogaru <vdogaru@nvidia.com>
Tue, 22 Apr 2025 09:25:38 +0000 (12:25 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Apr 2025 01:48:11 +0000 (18:48 -0700)
commit5f2f8d8b6800e4fc760c2eccec9b2bd2cacf80cf
tree778858dc0eccdc3ca5caff5b6e952a4a105068e2
parentb5cdb9b3113e6633d84f5598b5010794e86a4d35
net/mlx5: HWS, Fix IP version decision

Unify the check for IP version when creating a definer. A given matcher
is deemed to match on IPv6 if any of the higher order (>31) bits of
source or destination address mask are set.

A single packet cannot mix IP versions between source and destination
addresses, so it makes no sense that they would be decided on
independently.

Signed-off-by: Vlad Dogaru <vdogaru@nvidia.com>
Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250422092540.182091-2-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c