diff options
| author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-23 19:47:19 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-03-26 11:33:26 -0400 |
| commit | ede2762d93ff16e0974f7446516b46b1022db213 (patch) | |
| tree | 07b6a2fda4bc2f6019cc6819352b2d4ea9385ace /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | fsl/fman: remove unnecessary set_dma_ops() call and HAS_DMA dependency (diff) | |
| download | linux-ede2762d93ff16e0974f7446516b46b1022db213.tar.gz linux-ede2762d93ff16e0974f7446516b46b1022db213.zip | |
net: Make NETDEV_XXX commands enum { }
This patch is preparation to drop NETDEV_UNREGISTER_FINAL.
Since the cmd is used in usnic_ib_netdev_event_to_string()
to get cmd name, after plain removing NETDEV_UNREGISTER_FINAL
from everywhere, we'd have holes in event2str[] in this
function.
Instead of that, let's make NETDEV_XXX commands names
available for everyone, and to define netdev_cmd_to_name()
in the way we won't have to shaffle names after their
numbers are changed.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
