net/mlx5e: Set SQ max rate on mlx5e_open_txqsq rather on open_channel
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 14 Nov 2016 11:42:02 +0000 (13:42 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 27 Mar 2017 12:08:12 +0000 (15:08 +0300)
commit7f859ecfa8d6e647d6c794c8af44d209c8372e77
tree9584fc9fc54bbace7d3324cbdd286939b9e21da0
parent88275ed0cb3ac89ed869a925337b951801b154d7
net/mlx5e: Set SQ max rate on mlx5e_open_txqsq rather on open_channel

Instead of iterating over the channel SQs to set their max rate, do it
on SQ creation per TXQ SQ.

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