summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorMark Bloch <mbloch@nvidia.com>2021-03-10 23:09:13 -0800
committerSaeed Mahameed <saeedm@nvidia.com>2021-03-12 13:07:46 -0800
commit3a46f4fb55ffd46e475e3fc53b1252f722cf647e (patch)
tree37b62574ba96d51b7224ec3935013c2a82dd1e09 /include/linux/mlx5
parent658cfceb6267974056cb50adde8a93a15967c665 (diff)
downloadlinux-3a46f4fb55ffd46e475e3fc53b1252f722cf647e.tar.gz
linux-3a46f4fb55ffd46e475e3fc53b1252f722cf647e.tar.bz2
linux-3a46f4fb55ffd46e475e3fc53b1252f722cf647e.zip
net/mlx5: E-Switch, Refactor send to vport to be more generic
Now that each representor stores a pointer to the managing E-Switch use that information when creating the send-to-vport rules. Signed-off-by: Mark Bloch <mbloch@nvidia.com> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/eswitch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mlx5/eswitch.h b/include/linux/mlx5/eswitch.h
index 72d480df2a03..2ec0527991c8 100644
--- a/include/linux/mlx5/eswitch.h
+++ b/include/linux/mlx5/eswitch.h
@@ -62,8 +62,8 @@ struct mlx5_eswitch_rep *mlx5_eswitch_vport_rep(struct mlx5_eswitch *esw,
u16 vport_num);
void *mlx5_eswitch_uplink_get_proto_dev(struct mlx5_eswitch *esw, u8 rep_type);
struct mlx5_flow_handle *
-mlx5_eswitch_add_send_to_vport_rule(struct mlx5_eswitch *esw,
- u16 vport_num, u32 sqn);
+mlx5_eswitch_add_send_to_vport_rule(struct mlx5_eswitch *on_esw,
+ struct mlx5_eswitch_rep *rep, u32 sqn);
u16 mlx5_eswitch_get_total_vports(const struct mlx5_core_dev *dev);