]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Fix vport enable flow
authorMohamad Haj Yahia <mohamad@mellanox.com>
Thu, 9 Jun 2016 21:07:36 +0000 (00:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jun 2016 05:06:26 +0000 (22:06 -0700)
commit96d90eaa2cffe6f90845fce9409a79eab7980a00
tree64ff8fb25192d6f470eefb9ede50a2de0a7b7503
parent228be451dabb619ad547c800d8029fe321fec8ef
net/mlx5: E-Switch, Fix vport enable flow

Reorder vport enable flow to mark the vport as enabled before calling
the vport change handler which was modified to handle the case for
when vport is not enabled.

This fixes the case for when the PF netdev is open before sriov is
enabled, once sriov is enabled at esw_enable_vport,
esw_vport_change_handle_locked didn't read the PF context since it
thought the PF vport was not enabled.

When we enable the vport, arming for events is not required anymore,
since it's done on the vport change handle

Fixes: d07f8ca9d107 ('net/mlx5: E-Switch, Use vport event handler for vport cleanup')
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c