]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
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)
commitb055ecf5827d81a60144560266a78fea652bdf1a
tree87d0ff502b7a4d000b0789bc485a910723d976a9
parent4d469ec8ec05e1fa4792415de1a95b28871ff2fa
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