Lines Matching refs:nla_action
3116 struct nlattr *nla_action[DEVLINK_ATTR_MAX + 1] = {}; in dpipe_action_parse() local
3119 err = mnl_attr_parse_nested(nl, attr_cb, nla_action); in dpipe_action_parse()
3123 if (!nla_action[DEVLINK_ATTR_DPIPE_ACTION_TYPE] || in dpipe_action_parse()
3124 !nla_action[DEVLINK_ATTR_DPIPE_HEADER_INDEX] || in dpipe_action_parse()
3125 !nla_action[DEVLINK_ATTR_DPIPE_HEADER_ID] || in dpipe_action_parse()
3126 !nla_action[DEVLINK_ATTR_DPIPE_FIELD_ID]) { in dpipe_action_parse()
3130 action->type = mnl_attr_get_u32(nla_action[DEVLINK_ATTR_DPIPE_ACTION_TYPE]); in dpipe_action_parse()
3131 action->info.header_id = mnl_attr_get_u32(nla_action[DEVLINK_ATTR_DPIPE_HEADER_ID]); in dpipe_action_parse()
3132 action->info.field_id = mnl_attr_get_u32(nla_action[DEVLINK_ATTR_DPIPE_FIELD_ID]); in dpipe_action_parse()
3133 action->info.header_global = !!mnl_attr_get_u8(nla_action[DEVLINK_ATTR_DPIPE_HEADER_GLOBAL]); in dpipe_action_parse()
3141 struct nlattr *nla_action; in dpipe_table_actions_show() local
3144 mnl_attr_for_each_nested(nla_action, nla_actions) { in dpipe_table_actions_show()
3146 if (dpipe_action_parse(&action, nla_action)) in dpipe_table_actions_show()