]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch prepare functions change handler to be modular
authorParav Pandit <parav@mellanox.com>
Fri, 7 Jun 2019 11:44:17 +0000 (06:44 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 3 Jul 2019 19:50:42 +0000 (12:50 -0700)
commit39151fb6d0075bf5bcc535312066bc846527d18f
treec003fc1059465daf66a3af2733db0343910861a5
parentb9c88b5ac9b43ab477e2749f43d21885c2e68db4
net/mlx5: E-Switch prepare functions change handler to be modular

Eswitch function change handler will service multiple type of events for
VFs and non VF functions update.
Hence, introduce and use the helper function
esw_vfs_changed_event_handler() for handling change in num VFs to improve
the code readability.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c