summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@nvidia.com>2021-08-16 16:31:57 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2021-08-16 16:17:28 -0700
commit248d3b4c9a396f89da43ec7f6becf377e69efeca (patch)
tree42969dd0f28da71c8e95727d7abbf6f3e96ea039 /drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h
parentf01cc58c18d6457bd88b2c77c916a9e072f2b633 (diff)
downloadlinux-stable-248d3b4c9a396f89da43ec7f6becf377e69efeca.tar.gz
linux-stable-248d3b4c9a396f89da43ec7f6becf377e69efeca.tar.bz2
linux-stable-248d3b4c9a396f89da43ec7f6becf377e69efeca.zip
net/mlx5e: Support flow classification into RSS contexts
Extend the existing flow classification support, to steer flows not only directly to a receive ring, but also into the new RSS contexts. Create needed TIR objects on demand, and hold reference on the RSS context. Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h b/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h
index 8248caa36995..4a15942d79f7 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h
@@ -62,6 +62,8 @@ int mlx5e_rx_res_lro_set_param(struct mlx5e_rx_res *res, struct mlx5e_lro_param
int mlx5e_rx_res_rss_init(struct mlx5e_rx_res *res, u32 *rss_idx, unsigned int init_nch);
int mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx);
int mlx5e_rx_res_rss_cnt(struct mlx5e_rx_res *res);
+int mlx5e_rx_res_rss_index(struct mlx5e_rx_res *res, struct mlx5e_rss *rss);
+struct mlx5e_rss *mlx5e_rx_res_rss_get(struct mlx5e_rx_res *res, u32 rss_idx);
/* Workaround for hairpin */
struct mlx5e_rss_params_hash mlx5e_rx_res_get_current_hash(struct mlx5e_rx_res *res);