net/mlx5: E-Switch, Handle representors creation in handler context
authorVu Pham <vuhuong@mellanox.com>
Mon, 10 Jun 2019 23:38:16 +0000 (23:38 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Jun 2019 17:59:48 +0000 (10:59 -0700)
commitac35dcd6e4bdfadc90d6566ccf9fdc3b8f5e1b23
tree514e243b191cc5f39ba8ecf0221b27eddc2429c0
parentb8a92577f4be89427f0b150261626ebcc25c498d
net/mlx5: E-Switch, Handle representors creation in handler context

Unified representors creation in esw_functions_changed context
handler. Emulate the esw_function_changed event for FW/HW that
does not support this event.

Signed-off-by: Vu Pham <vuhuong@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c