]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Introduce and use string to number mapper
authorParav Pandit <parav@nvidia.com>
Mon, 1 Feb 2021 21:35:47 +0000 (23:35 +0200)
committerDavid Ahern <dsahern@kernel.org>
Tue, 2 Feb 2021 02:01:53 +0000 (02:01 +0000)
commita9642c5fa6e6b3bb871aea53947ec21679c7f3ea
tree6da6b3c5de0c7375e4ed4b476c37bfee3367545b
parent1e6190218050a21475789bff7a9beef3c360f03c
devlink: Introduce and use string to number mapper

Instead of using static mapping in code, introduce a helper routine to
map a value to string.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/devlink.c
include/utils.h
lib/utils.c