diff options
author | Tal Gilboa <talgi@mellanox.com> | 2017-08-28 18:45:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-20 08:22:09 +0200 |
commit | b88be44f595fff3d11bb6f5ca7763ab573023da3 (patch) | |
tree | 072985b2c6ff14710339c3dfdfe50431422d68e6 | |
parent | net/mlx5e: Fix inline header size for small packets (diff) | |
download | linux-stable-b88be44f595fff3d11bb6f5ca7763ab573023da3.tar.xz linux-stable-b88be44f595fff3d11bb6f5ca7763ab573023da3.zip |
net/mlx5e: Fix CQ moderation mode not set properly
[ Upstream commit 1213ad28f9595a08e3877248bbba1a25c40225d6 ]
cq_period_mode assignment was mistakenly removed so it was always set to "0",
which is EQE based moderation, regardless of the device CAPs and
requested value in ethtool.
Fixes: 6a9764efb255 ("net/mlx5e: Isolate open_channels from priv->params")
Signed-off-by: Tal Gilboa <talgi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 072aa8a13a0a..00b51252b803 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -1936,6 +1936,7 @@ static void mlx5e_build_rx_cq_param(struct mlx5e_priv *priv, } mlx5e_build_common_cq_param(priv, param); + param->cq_period_mode = params->rx_cq_period_mode; } static void mlx5e_build_tx_cq_param(struct mlx5e_priv *priv, |