git: 75095cd38f07 - main - mlx5: fs_tcp is only used for INET or INET6.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:37 UTC
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);