net/mlx5e: Set default RX moderation parameters on driver load
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 30 Mar 2017 16:23:41 +0000 (19:23 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Apr 2017 22:21:28 +0000 (01:21 +0300)
commit457fcd8a11f7f7f2483b2366d8a98f269c085302
tree1547266b7e3605e213f6403d2b5fb692f16a9bcc
parent95b6c6a519a300dc667960740ebd43b960b32883
net/mlx5e: Set default RX moderation parameters on driver load

RX moderation default parameters shouldn't be set in
mlx5e_build_rx_cq_param since it would reset the values every time on
netdev open/close.  Instead, it should be set in
mlx5e_set_rx_cq_mode_params which is called on driver load only.

Fixes: 6a9764efb255 ("net/mlx5e: Isolate open_channels from priv->params")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c