]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: remove custom bool command line options parsing
authorJiri Pirko <jiri@mellanox.com>
Sat, 4 Apr 2020 16:16:14 +0000 (18:16 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 6 Apr 2020 17:00:32 +0000 (10:00 -0700)
commitb37a863cb2d09ad0736334bd6606c05b802c85cf
treefe56bcde1aac1d7a27a591ef6bd5515953556f00
parent5d10f24fddb6352526a061a829e73b2a8bcd5425
devlink: remove custom bool command line options parsing

Change the code that is doing custom processing of boolean command line
options to use dl_argv_bool(). Extend strtobool() to accept
"enable"/"disable" to maintain current behavior.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c