• Kirill Tkhai's avatar
    net: Make NETDEV_XXX commands enum { } · ede2762d
    Kirill Tkhai authored
    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: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ede2762d
dev.c 226 KB