net/mlx5e: Fix CQ moderation mode not set properly
authorTal Gilboa <talgi@mellanox.com>
Mon, 28 Aug 2017 15:45:08 +0000 (18:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Sep 2017 06:22:09 +0000 (08:22 +0200)
commitb88be44f595fff3d11bb6f5ca7763ab573023da3
tree072985b2c6ff14710339c3dfdfe50431422d68e6
parent8049c41db78d2d9cf299a4300732f9776a2affe7
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>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c