OSDN Git Service

net/mlx5e: Minimize mlx5e_{open/close}_locked
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 7 Feb 2017 14:35:49 +0000 (16:35 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 27 Mar 2017 12:08:19 +0000 (15:08 +0300)
commit9008ae074885ddaa2470f4c106245ddea4ae2a67
treec917a6933bfd1eee56d2e332b9c5aa3552ebd5ab
parenta43b25daef78610ccef025d59f82ce8e0c42ab6c
net/mlx5e: Minimize mlx5e_{open/close}_locked

mlx5e_redirect_rqts_to_{channels,drop} and mlx5e_{add,del}_sqs_fwd_rules
and Set real num tx/rx queues belong to
mlx5e_{activate,deactivate}_priv_channels, for that we move those functions
and minimize mlx5e_open/close flows.

This will be needed in downstream patches to replace old channels with new
ones without the need to call mlx5e_close/open.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c