]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: fix mlx4 ethtool -N insertion
authorLuigi Rizzo <lrizzo@google.com>
Fri, 15 Nov 2019 20:12:25 +0000 (12:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Nov 2019 18:28:52 +0000 (10:28 -0800)
commitc3512a63f55d3648cd15dd8d85bb4cbe2bb92205
tree7e1afad153e65af0083d768e92ae07576773abdf
parentff70f95e4c9ae9b1115d8cdee44ecf130b85d119
net/mlx4_en: fix mlx4 ethtool -N insertion

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>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c