Lines Matching refs:vfconfigs

62 	ns->vfconfigs = kcalloc(num_vfs, sizeof(struct nsim_vf_config),  in nsim_vfs_enable()
64 if (!ns->vfconfigs) in nsim_vfs_enable()
73 kfree(ns->vfconfigs); in nsim_vfs_disable()
74 ns->vfconfigs = NULL; in nsim_vfs_disable()
344 memcpy(ns->vfconfigs[vf].vf_mac, mac, ETH_ALEN); in nsim_set_vf_mac()
357 ns->vfconfigs[vf].vlan = vlan; in nsim_set_vf_vlan()
358 ns->vfconfigs[vf].qos = qos; in nsim_set_vf_vlan()
359 ns->vfconfigs[vf].vlan_proto = vlan_proto; in nsim_set_vf_vlan()
371 ns->vfconfigs[vf].min_tx_rate = min; in nsim_set_vf_rate()
372 ns->vfconfigs[vf].max_tx_rate = max; in nsim_set_vf_rate()
383 ns->vfconfigs[vf].spoofchk_enabled = val; in nsim_set_vf_spoofchk()
394 ns->vfconfigs[vf].rss_query_enabled = val; in nsim_set_vf_rss_query_en()
405 ns->vfconfigs[vf].trusted = val; in nsim_set_vf_trust()
419 ivi->linkstate = ns->vfconfigs[vf].link_state; in nsim_get_vf_config()
420 ivi->min_tx_rate = ns->vfconfigs[vf].min_tx_rate; in nsim_get_vf_config()
421 ivi->max_tx_rate = ns->vfconfigs[vf].max_tx_rate; in nsim_get_vf_config()
422 ivi->vlan = ns->vfconfigs[vf].vlan; in nsim_get_vf_config()
423 ivi->vlan_proto = ns->vfconfigs[vf].vlan_proto; in nsim_get_vf_config()
424 ivi->qos = ns->vfconfigs[vf].qos; in nsim_get_vf_config()
425 memcpy(&ivi->mac, ns->vfconfigs[vf].vf_mac, ETH_ALEN); in nsim_get_vf_config()
426 ivi->spoofchk = ns->vfconfigs[vf].spoofchk_enabled; in nsim_get_vf_config()
427 ivi->trusted = ns->vfconfigs[vf].trusted; in nsim_get_vf_config()
428 ivi->rss_query_en = ns->vfconfigs[vf].rss_query_enabled; in nsim_get_vf_config()
449 ns->vfconfigs[vf].link_state = state; in nsim_set_vf_link_state()