Lines Matching refs:nl_attrs
598 struct nlattr **nl_attrs = info->attrs; in vdpa_nl_cmd_dev_add_set_doit() local
611 if (nl_attrs[VDPA_ATTR_DEV_NET_CFG_MACADDR]) { in vdpa_nl_cmd_dev_add_set_doit()
612 macaddr = nla_data(nl_attrs[VDPA_ATTR_DEV_NET_CFG_MACADDR]); in vdpa_nl_cmd_dev_add_set_doit()
616 if (nl_attrs[VDPA_ATTR_DEV_NET_CFG_MTU]) { in vdpa_nl_cmd_dev_add_set_doit()
618 nla_get_u16(nl_attrs[VDPA_ATTR_DEV_NET_CFG_MTU]); in vdpa_nl_cmd_dev_add_set_doit()
621 if (nl_attrs[VDPA_ATTR_DEV_NET_CFG_MAX_VQP]) { in vdpa_nl_cmd_dev_add_set_doit()
623 nla_get_u16(nl_attrs[VDPA_ATTR_DEV_NET_CFG_MAX_VQP]); in vdpa_nl_cmd_dev_add_set_doit()
631 if (nl_attrs[VDPA_ATTR_DEV_FEATURES]) { in vdpa_nl_cmd_dev_add_set_doit()
635 nla_get_u64(nl_attrs[VDPA_ATTR_DEV_FEATURES]); in vdpa_nl_cmd_dev_add_set_doit()
636 if (nl_attrs[VDPA_ATTR_DEV_NET_CFG_MACADDR] && in vdpa_nl_cmd_dev_add_set_doit()
639 if (nl_attrs[VDPA_ATTR_DEV_NET_CFG_MTU] && in vdpa_nl_cmd_dev_add_set_doit()
642 if (nl_attrs[VDPA_ATTR_DEV_NET_CFG_MAX_VQP] && in vdpa_nl_cmd_dev_add_set_doit()
1369 struct nlattr **nl_attrs = info->attrs; in vdpa_dev_net_device_attr_set() local
1374 if (nl_attrs[VDPA_ATTR_DEV_NET_CFG_MACADDR]) { in vdpa_dev_net_device_attr_set()
1376 macaddr = nla_data(nl_attrs[VDPA_ATTR_DEV_NET_CFG_MACADDR]); in vdpa_dev_net_device_attr_set()