net/mlx5: Lag, use local variable already defined to access E-Switch
authorMark Bloch <mbloch@nvidia.com>
Thu, 20 Jan 2022 08:52:16 +0000 (08:52 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Feb 2022 23:21:58 +0000 (15:21 -0800)
commit9278287e8d9e30b6bf6e3bd29ac387d789b8ce7f
treee1a501fb4167afa8eddd03642507f28be20b30b0
parent1749c4c51c16e3e078faae0a876d01bafb187a74
net/mlx5: Lag, use local variable already defined to access E-Switch

Use the local variable for dev0 (and add from dev1) instead of using
the devices stored in the ldev structure. Makes the code easier
to read.

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