git: 83dbc1dc8b87 - stable/14 - mlx5ib: Fix ethertype to be ETH_P_IPV6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Nov 2023 19:22:55 UTC
The branch stable/14 has been updated by khng:
URL: https://cgit.FreeBSD.org/src/commit/?id=83dbc1dc8b87d319df66ad631651bb7d8532d674
commit 83dbc1dc8b87d319df66ad631651bb7d8532d674
Author: Ka Ho Ng <khng@FreeBSD.org>
AuthorDate: 2023-10-28 20:54:32 +0000
Commit: Ka Ho Ng <khng@FreeBSD.org>
CommitDate: 2023-11-04 19:22:18 +0000
mlx5ib: Fix ethertype to be ETH_P_IPV6
Sponsored by: Juniper Networks, Inc.
MFC after: 7 days
Reviewed by: ae, kib, zlei
Differential Revision: https://reviews.freebsd.org/D42184
(cherry picked from commit 3b173281764ba7c02f9de0a67caa1c4eca604413)
---
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
index 232309f79266..1b02c8741a56 100644
--- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
+++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
@@ -1925,7 +1925,7 @@ static int parse_flow_attr(u32 *match_c, u32 *match_v,
MLX5_SET(fte_match_set_lyr_2_4, outer_headers_c,
ethertype, 0xffff);
MLX5_SET(fte_match_set_lyr_2_4, outer_headers_v,
- ethertype, IPPROTO_IPV6);
+ ethertype, ETH_P_IPV6);
memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, outer_headers_c,
src_ipv4_src_ipv6.ipv6_layout.ipv6),