Home
last modified time | relevance | path

Searched refs:nla_field (Results 1 – 1 of 1) sorted by relevance

/external/iproute2/devlink/
Ddevlink.c2896 struct nlattr *nla_field[DEVLINK_ATTR_MAX + 1] = {}; in dpipe_header_field_get() local
2900 err = mnl_attr_parse_nested(nl, attr_cb, nla_field); in dpipe_header_field_get()
2903 if (!nla_field[DEVLINK_ATTR_DPIPE_FIELD_ID] || in dpipe_header_field_get()
2904 !nla_field[DEVLINK_ATTR_DPIPE_FIELD_NAME] || in dpipe_header_field_get()
2905 !nla_field[DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH] || in dpipe_header_field_get()
2906 !nla_field[DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE]) in dpipe_header_field_get()
2909 name = mnl_attr_get_str(nla_field[DEVLINK_ATTR_DPIPE_FIELD_NAME]); in dpipe_header_field_get()
2910 field->id = mnl_attr_get_u32(nla_field[DEVLINK_ATTR_DPIPE_FIELD_ID]); in dpipe_header_field_get()
2911 field->bitwidth = mnl_attr_get_u32(nla_field[DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH]); in dpipe_header_field_get()
2915 field->mapping_type = mnl_attr_get_u32(nla_field[DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE]); in dpipe_header_field_get()
[all …]