Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2022 23:09:37 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 75095cd38f07 - main - mlx5: fs_tcp is only used for INET or INET6.
Message-ID:  <202204132309.23DN9b0W074612@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=75095cd38f078bacf57b29c38a62ba5d2325e54d

commit 75095cd38f078bacf57b29c38a62ba5d2325e54d
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-13 23:08:21 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-13 23:08:21 +0000

    mlx5: fs_tcp is only used for INET or INET6.
---
 sys/dev/mlx5/mlx5_core/mlx5_fs_tcp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fs_tcp.c b/sys/dev/mlx5/mlx5_core/mlx5_fs_tcp.c
index 543c7a4ef502..415869516a27 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_fs_tcp.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_tcp.c
@@ -93,7 +93,9 @@ mlx5e_accel_fs_add_inpcb(struct mlx5e_priv *priv,
 {
 	struct mlx5_flow_destination dest = {};
 	struct mlx5e_flow_table *ft = NULL;
-	struct mlx5e_accel_fs_tcp *fs_tcp;
+#if defined(INET) || defined(INET6)
+	struct mlx5e_accel_fs_tcp *fs_tcp = &priv->fts.accel_tcp;
+#endif
 	struct mlx5_flow_rule *flow;
 	struct mlx5_flow_spec *spec;
 
@@ -101,8 +103,6 @@ mlx5e_accel_fs_add_inpcb(struct mlx5e_priv *priv,
 	if (!spec)
 		return (ERR_PTR(-ENOMEM));
 
-	fs_tcp = &priv->fts.accel_tcp;
-
 	spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
 
 	INP_RLOCK(inp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204132309.23DN9b0W074612>