DEVLINK_ATTR_LINECARD_TYPE
if (nla_put_string(msg, DEVLINK_ATTR_LINECARD_TYPE,
if (info->attrs[DEVLINK_ATTR_LINECARD_TYPE]) {
type = nla_data(info->attrs[DEVLINK_ATTR_LINECARD_TYPE]);
nla_put_string(msg, DEVLINK_ATTR_LINECARD_TYPE, linecard->type))
.maxattr = DEVLINK_ATTR_LINECARD_TYPE,
static const struct nla_policy devlink_linecard_set_nl_policy[DEVLINK_ATTR_LINECARD_TYPE + 1] = {
[DEVLINK_ATTR_LINECARD_TYPE] = { .type = NLA_NUL_STRING, },