]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: Change netlink attribute validation
authorArkadi Sharshevsky <arkadis@mellanox.com>
Wed, 3 May 2017 11:25:22 +0000 (13:25 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 3 May 2017 16:29:42 +0000 (09:29 -0700)
commit4f10cede93b758785f5b201774ed3e02eaf1a7bb
treed448f587675dca7049f14097a1037f0ebabc0018
parent6a78ef97b6c0078438337ce6b2707358a0e403ac
devlink: Change netlink attribute validation

Currently the netlink attribute resolving is done by a sequence of
if's. Change the attribute resolving to table lookup.

Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
devlink/devlink.c