Lines Matching refs:nla_match
3200 struct nlattr *nla_match[DEVLINK_ATTR_MAX + 1] = {}; in dpipe_match_parse() local
3203 err = mnl_attr_parse_nested(nl, attr_cb, nla_match); in dpipe_match_parse()
3207 if (!nla_match[DEVLINK_ATTR_DPIPE_MATCH_TYPE] || in dpipe_match_parse()
3208 !nla_match[DEVLINK_ATTR_DPIPE_HEADER_INDEX] || in dpipe_match_parse()
3209 !nla_match[DEVLINK_ATTR_DPIPE_HEADER_ID] || in dpipe_match_parse()
3210 !nla_match[DEVLINK_ATTR_DPIPE_FIELD_ID]) { in dpipe_match_parse()
3214 match->type = mnl_attr_get_u32(nla_match[DEVLINK_ATTR_DPIPE_MATCH_TYPE]); in dpipe_match_parse()
3215 match->info.header_id = mnl_attr_get_u32(nla_match[DEVLINK_ATTR_DPIPE_HEADER_ID]); in dpipe_match_parse()
3216 match->info.field_id = mnl_attr_get_u32(nla_match[DEVLINK_ATTR_DPIPE_FIELD_ID]); in dpipe_match_parse()
3217 match->info.header_global = !!mnl_attr_get_u8(nla_match[DEVLINK_ATTR_DPIPE_HEADER_GLOBAL]); in dpipe_match_parse()
3225 struct nlattr *nla_match; in dpipe_table_matches_show() local
3228 mnl_attr_for_each_nested(nla_match, nla_matches) { in dpipe_table_matches_show()
3230 if (dpipe_match_parse(&match, nla_match)) in dpipe_table_matches_show()