]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
devlink: Ignore unknown attributes
authorArkadi Sharshevsky <arkadis@mellanox.com>
Wed, 17 Jan 2018 13:28:00 +0000 (15:28 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 19 Jan 2018 00:30:36 +0000 (16:30 -0800)
In case of extending the UAPI old packages would break.

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

index 1b15eef8f6f5d3733f1d4f5932b7cf5396ec610f..220b2bb2f3bd8a4bb08d8f3e6978a42a1b380088 100644 (file)
@@ -343,7 +343,7 @@ static int attr_cb(const struct nlattr *attr, void *data)
        int type;
 
        if (mnl_attr_type_valid(attr, DEVLINK_ATTR_MAX) < 0)
-               return MNL_CB_ERROR;
+               return MNL_CB_OK;
 
        type = mnl_attr_get_type(attr);
        if (mnl_attr_validate(attr, devlink_policy[type]) < 0)