]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Refactor setting source port
authorMark Bloch <mbloch@nvidia.com>
Mon, 12 Oct 2020 18:38:32 +0000 (18:38 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 6 Feb 2021 04:53:33 +0000 (20:53 -0800)
commitd457c4c046950738d2305a299757ce46caf69150
tree87d0ff502b7a4d000b0789bc485a910723d976a9
parent5d3d1b003f89f21526ba7d1e1fb17d8138aa3a07
net/mlx5: E-Switch, Refactor setting source port

Setting the source port requires only the E-Switch and vport number.
Refactor the function to get those parameters instead of passing the full
attribute.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c