]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Bridge, refactor eswitch instance usage
authorVlad Buslov <vladbu@nvidia.com>
Thu, 2 Sep 2021 08:42:36 +0000 (11:42 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Oct 2021 01:10:55 +0000 (18:10 -0700)
commit1786f992cd677bd4abf9d3b08cdb4c8b5da08ea4
tree09c853a15771f5dc656c7021ef71ffe797828cf8
parent6696e5e760a8eab7f42ef532f44ebc3ad4552897
net/mlx5: Bridge, refactor eswitch instance usage

Several functions in bridge.c excessively obtain pointer to parent eswitch
instance by dereferencing br_offloads->esw on every usage and following
patches in this series add even more usages of eswitch. Introduce local
variable 'esw' and use it instead.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c