]> asedeno.scripts.mit.edu Git - linux.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)
commit7e736f9ae3d12272fec5a2b24e41b78ed58525a4
treec003fc1059465daf66a3af2733db0343910861a5
parent2752b823169b216db142c4466b43269281962dcf
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