From: Arkadi Sharshevsky Date: Wed, 17 Jan 2018 13:28:00 +0000 (+0200) Subject: devlink: Ignore unknown attributes X-Git-Tag: v4.15.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c619f2be8b7824ab8e19203d8040fbc5e766a183;p=thirdparty%2Fiproute2.git devlink: Ignore unknown attributes In case of extending the UAPI old packages would break. Signed-off-by: Arkadi Sharshevsky Acked-by: Jiri Pirko Signed-off-by: Stephen Hemminger --- diff --git a/devlink/devlink.c b/devlink/devlink.c index 1b15eef8f..220b2bb2f 100644 --- a/devlink/devlink.c +++ b/devlink/devlink.c @@ -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)