OSDN Git Service

net/mlx5: Add case for FS_FT_NIC_TX FT in MLX5_CAP_FLOWTABLE_TYPE
authorPaul Blakey <paulb@nvidia.com>
Tue, 30 Mar 2021 17:59:50 +0000 (20:59 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 May 2021 18:54:37 +0000 (11:54 -0700)
commite01b58e9d5c47d027086f35cdd5fc953c6f66c4f
treebb809cea47eaa1f295e4617a7fd14965155aaeeb
parentb72ce870f57ea7ddd1c03b000b31bb20ab52f44b
net/mlx5: Add case for FS_FT_NIC_TX FT in MLX5_CAP_FLOWTABLE_TYPE

Commit 16f1c5bb3ed7 ("net/mlx5: Check device capability for maximum flow
counters") added MLX5_CAP_FLOWTABLE_TYPE but forgot to account
for FS_FT_NIC_TX case in the expression.

Although the expression will return 1 for this case instead of the
actual cap, there isn't currently no known side affects of
missing this case.

Add the FS_FT_NIC_TX case.

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h