Lines Matching refs:new_attrs
1620 struct devlink_port_new_attrs new_attrs = {}; in devlink_nl_cmd_port_new_doit() local
1633 new_attrs.flavour = nla_get_u16(info->attrs[DEVLINK_ATTR_PORT_FLAVOUR]); in devlink_nl_cmd_port_new_doit()
1634 new_attrs.pfnum = in devlink_nl_cmd_port_new_doit()
1639 new_attrs.port_index = in devlink_nl_cmd_port_new_doit()
1641 new_attrs.port_index_valid = true; in devlink_nl_cmd_port_new_doit()
1644 new_attrs.controller = in devlink_nl_cmd_port_new_doit()
1646 new_attrs.controller_valid = true; in devlink_nl_cmd_port_new_doit()
1648 if (new_attrs.flavour == DEVLINK_PORT_FLAVOUR_PCI_SF && in devlink_nl_cmd_port_new_doit()
1650 new_attrs.sfnum = nla_get_u32(info->attrs[DEVLINK_ATTR_PORT_PCI_SF_NUMBER]); in devlink_nl_cmd_port_new_doit()
1651 new_attrs.sfnum_valid = true; in devlink_nl_cmd_port_new_doit()
1654 err = devlink->ops->port_new(devlink, &new_attrs, extack, in devlink_nl_cmd_port_new_doit()