summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorIlan Tayari <ilant@mellanox.com>2017-03-02 16:49:45 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2017-04-22 21:52:37 +0300
commit5e82c9e4ed60beba83f46a1a5a8307b99a23e982 (patch)
tree414eced1835d7a42d6df0a8b46ee90796ffda2bb /tools/perf/scripts/python/stackcollapse.py
parentcbad8cddb6ed7ef3a5f0a9a70f1711d4d7fb9a8f (diff)
downloadlinux-5e82c9e4ed60beba83f46a1a5a8307b99a23e982.tar.xz
net/mlx5e: Fix ETHTOOL_GRXCLSRLALL handling
Handler for ETHTOOL_GRXCLSRLALL must set info->data to the size of the table, regardless of the amount of entries in it. Existing code does not do that, and this breaks all usage of ethtool -N or -n without explicit location, with this error: rmgr: Invalid RX class rules table size: Success Set info->data to the table size. Tested: ethtool -n ens8 ethtool -N ens8 flow-type ip4 src-ip 1.1.1.1 dst-ip 2.2.2.2 action 1 ethtool -N ens8 flow-type ip4 src-ip 1.1.1.1 dst-ip 2.2.2.2 action 1 loc 55 ethtool -n ens8 ethtool -N ens8 delete 1023 ethtool -N ens8 delete 55 Fixes: f913a72aa008 ("net/mlx5e: Add support to get ethtool flow rules") Signed-off-by: Ilan Tayari <ilant@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions