net/mlx4_en: fix mlx4 ethtool -N insertion
authorLuigi Rizzo <lrizzo@google.com>
Fri, 15 Nov 2019 20:12:25 +0000 (12:12 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:13:08 +0000 (09:13 +0100)
commit08265ef6179e82ca70d5712223d568f725f371fb
tree8b901430eaf35c7cf13a576840bb4b7445b4e404
parent43598c571e7ed29e4c81e35b4a870fe6b9f8d58e
net/mlx4_en: fix mlx4 ethtool -N insertion

[ Upstream commit 34e59836565e36fade1464e054a3551c1a0364be ]

ethtool expects ETHTOOL_GRXCLSRLALL to set ethtool_rxnfc->data with the
total number of entries in the rx classifier table.  Surprisingly, mlx4
is missing this part (in principle ethtool could still move forward and
try the insert).

Tested: compiled and run command:
phh13:~# ethtool -N eth1 flow-type udp4  queue 4
Added rule with ID 255

Signed-off-by: Luigi Rizzo <lrizzo@google.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c