Home
last modified time | relevance | path

Searched refs:vnic (Results 1 – 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/vnic/
H A Dvnic_dev.c198 vnic_unicast_add(vnic_t *vnic, vnic_mac_addr_type_t vnic_addr_type, in vnic_unicast_add() argument
254 if ((err = mac_addr_random(vnic->vn_mch, in vnic_unicast_add()
259 *addr_len_ptr_arg = mac_addr_len(vnic->vn_lower_mh); in vnic_unicast_add()
263 err = mac_addr_factory_reserve(vnic->vn_mch, addr_slot); in vnic_unicast_add()
274 mac_addr_factory_value(vnic->vn_lower_mh, *addr_slot, in vnic_unicast_add()
281 err = mac_addr_factory_reserve(vnic->vn_mch, addr_slot); in vnic_unicast_add()
283 mac_addr_factory_value(vnic->vn_lower_mh, *addr_slot, in vnic_unicast_add()
294 if ((err = mac_addr_random(vnic->vn_mch, in vnic_unicast_add()
299 *addr_len_ptr_arg = mac_addr_len(vnic->vn_lower_mh); in vnic_unicast_add()
314 mac_unicast_primary_get(vnic->vn_lower_mh, mac_addr_arg); in vnic_unicast_add()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_vnic.c90 eib_vnic_t *vnic = NULL; in eib_vnic_create() local
131 vnic = kmem_zalloc(sizeof (eib_vnic_t), KM_SLEEP); in eib_vnic_create()
132 vnic->vn_ss = ss; in eib_vnic_create()
133 vnic->vn_instance = -1; in eib_vnic_create()
134 mutex_init(&vnic->vn_lock, NULL, MUTEX_DRIVER, NULL); in eib_vnic_create()
135 cv_init(&vnic->vn_cv, NULL, CV_DEFAULT, NULL); in eib_vnic_create()
142 if (eib_vnic_get_instance(ss, &vnic->vn_instance) != EIB_E_SUCCESS) { in eib_vnic_create()
153 vnic->vn_vlan = vlan; in eib_vnic_create()
155 bcopy(macaddr, vnic->vn_macaddr, sizeof (vnic->vn_macaddr)); in eib_vnic_create()
157 vnic->vn_id = (uint16_t)EIB_VNIC_ID(ss->ei_instance, vnic->vn_instance); in eib_vnic_create()
[all …]
H A Deib_ctl.c48 eib_ctl_create_qp(eib_t *ss, eib_vnic_t *vnic, int *err) in eib_ctl_create_qp() argument
58 vnic->vn_ctl_chan = eib_chan_init(); in eib_ctl_create_qp()
60 chan = vnic->vn_ctl_chan; in eib_ctl_create_qp()
63 chan->ch_vnic_inst = vnic->vn_instance; in eib_ctl_create_qp()
68 if (eib_ctl_setup_cq(ss, vnic) != EIB_E_SUCCESS) { in eib_ctl_create_qp()
78 if (eib_ctl_setup_ud_channel(ss, vnic) != EIB_E_SUCCESS) { in eib_ctl_create_qp()
88 eib_rb_ctl_create_qp(ss, vnic); in eib_ctl_create_qp()
96 eib_vnic_t *vnic = (eib_vnic_t *)(void *)arg1; in eib_ctl_comp_handler() local
97 eib_chan_t *chan = vnic->vn_ctl_chan; in eib_ctl_comp_handler()
98 eib_t *ss = vnic->vn_ss; in eib_ctl_comp_handler()
[all …]
H A Deib_fip.c87 eib_fip_login(eib_t *ss, eib_vnic_t *vnic, int *err) in eib_fip_login() argument
102 ret = eib_fip_make_login(ss, vnic, swqe, err); in eib_fip_login()
108 ret = eib_fip_send_login(ss, vnic, swqe, err); in eib_fip_login()
114 ret = eib_vnic_wait_for_login_ack(ss, vnic, err); in eib_fip_login()
124 eib_fip_vhub_table(eib_t *ss, eib_vnic_t *vnic, int *err) in eib_fip_vhub_table() argument
139 ret = eib_fip_make_table(ss, vnic, swqe, err); in eib_fip_vhub_table()
145 ret = eib_fip_send_table(ss, vnic, swqe, err); in eib_fip_vhub_table()
151 ret = eib_vnic_wait_for_table(ss, vnic, err); in eib_fip_vhub_table()
163 eib_vnic_fini_tables(ss, vnic, B_FALSE); in eib_fip_vhub_table()
164 mutex_enter(&vnic->vn_lock); in eib_fip_vhub_table()
[all …]
H A Deib_data.c60 eib_data_create_qp(eib_t *ss, eib_vnic_t *vnic, int *err) in eib_data_create_qp() argument
70 vnic->vn_data_chan = eib_chan_init(); in eib_data_create_qp()
72 chan = vnic->vn_data_chan; in eib_data_create_qp()
75 chan->ch_vnic_inst = vnic->vn_instance; in eib_data_create_qp()
80 if (eib_data_setup_cqs(ss, vnic) != EIB_E_SUCCESS) { in eib_data_create_qp()
83 vnic->vn_instance); in eib_data_create_qp()
91 if (eib_data_setup_ud_channel(ss, vnic) != EIB_E_SUCCESS) { in eib_data_create_qp()
94 vnic->vn_instance); in eib_data_create_qp()
102 eib_rb_data_create_qp(ss, vnic); in eib_data_create_qp()
110 eib_vnic_t *vnic = (eib_vnic_t *)(void *)arg1; in eib_data_rx_comp_handler() local
[all …]
H A Deib_mac.c222 eib_vnic_t *vnic; in eib_mac_stop() local
233 if ((vnic = ss->ei_vnic[ndx]) != NULL) in eib_mac_stop()
234 eib_vnic_delete(ss, vnic); in eib_mac_stop()
322 eib_vnic_t *vnic = NULL; in eib_mac_tx() local
358 found = eib_data_lookup_vnic(ss, evh.eh_smac, evh.eh_vlan, &vnic, in eib_mac_tx()
393 ret = eib_vnic_setup_dest(vnic, swqe, evh.eh_dmac, evh.eh_vlan); in eib_mac_tx()
411 ret = eib_data_prepare_frame(vnic, swqe, mp, &evh); in eib_mac_tx()
422 eib_data_post_tx(vnic, swqe); in eib_mac_tx()
H A Deib_ibt.c711 eib_vnic_t *vnic; in eib_ibt_reset_partitions() local
728 if ((vnic = ss->ei_vnic[inst]) != NULL) { in eib_ibt_reset_partitions()
729 if ((chan = vnic->vn_ctl_chan) != NULL) { in eib_ibt_reset_partitions()
733 if ((chan = vnic->vn_data_chan) != NULL) { in eib_ibt_reset_partitions()
746 eib_vnic_t *vnic; in eib_ibt_wakeup_sqd_waiters() local
760 if ((vnic = ss->ei_vnic_pending) != NULL) { in eib_ibt_wakeup_sqd_waiters()
761 chan = vnic->vn_ctl_chan; in eib_ibt_wakeup_sqd_waiters()
765 chan = vnic->vn_data_chan; in eib_ibt_wakeup_sqd_waiters()
772 if ((vnic = ss->ei_vnic[inst]) != NULL) { in eib_ibt_wakeup_sqd_waiters()
773 chan = vnic->vn_ctl_chan; in eib_ibt_wakeup_sqd_waiters()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/
H A Dbnxe_fw_funcs.c35 #define ECORE_PF_Q_NUM(q_num, port, vnic)\ argument
36 ((((port) << 1) | (vnic)) * 16 + (q_num))
48 u32_t reg_addr, reg_bit_map, vnic; in ecore_map_q_cos() local
60 for (vnic = 0; vnic < num_vnics; vnic++) { in ecore_map_q_cos()
62 ECORE_PF_Q_NUM(q_num, PORT_ID(pdev), vnic); in ecore_map_q_cos()
173 u32_t vnic; in ecore_init_max() local
174 struct cmng_vnic *vdata = &ram_data->vnic; in ecore_init_max()
193 for (vnic = 0; vnic < ECORE_PORT2_MODE_NUM_VNICS; vnic++) { in ecore_init_max()
195 vdata->vnic_max_rate[vnic].vn_counter.rate = in ecore_init_max()
196 input_data->vnic_max_rate[vnic]; in ecore_init_max()
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dvnic_rcm.c402 dl_vnic_t *vnic; in vnic_online_vnic() local
409 for (vnic = node->vc_vnic; vnic != NULL; vnic = vnic->dlv_next) { in vnic_online_vnic()
410 if (!(vnic->dlv_flags & VNIC_OFFLINED)) in vnic_online_vnic()
413 if ((status = dladm_vnic_up(dld_handle, vnic->dlv_vnic_id, 0)) in vnic_online_vnic()
421 vnic->dlv_vnic_id, in vnic_online_vnic()
424 vnic->dlv_flags &= ~VNIC_OFFLINED; in vnic_online_vnic()
432 dl_vnic_t *vnic; in vnic_offline_vnic() local
442 for (vnic = node->vc_vnic; vnic != NULL; vnic = vnic->dlv_next) { in vnic_offline_vnic()
444 if ((status = dladm_vnic_delete(dld_handle, vnic->dlv_vnic_id, in vnic_offline_vnic()
448 vnic->dlv_vnic_id, in vnic_offline_vnic()
[all …]
/illumos-gate/usr/src/cmd/bhyve/common/
H A Dnet_backend_dlpi.c95 const char *vnic; in be_dlpi_init() local
103 vnic = get_config_value_node(nvl, "vnic"); in be_dlpi_init()
104 if (vnic == NULL) { in be_dlpi_init()
111 ret = dlpi_open(vnic, &priv->bdp_dhp, DLPI_RAW); in be_dlpi_init()
114 be_dlpi_err(ret, vnic, "open failed"); in be_dlpi_init()
120 be_dlpi_err(ret, vnic, "bind failed"); in be_dlpi_init()
127 be_dlpi_err(ret, vnic, in be_dlpi_init()
135 be_dlpi_err(ret, vnic, in be_dlpi_init()
143 be_dlpi_err(ret, vnic, in be_dlpi_init()
151 be_dlpi_err(ret, vnic, in be_dlpi_init()
[all …]
H A Dpci_virtio_viona.c700 const char *vnic; in pci_viona_init() local
706 vnic = get_config_value_node(nvl, "vnic"); in pci_viona_init()
707 if (vnic == NULL) { in pci_viona_init()
728 WPRINTF("dladm_name2info() for %s failed: %s", vnic, in pci_viona_init()
737 WPRINTF("dladm_vnic_info() for %s failed: %s", vnic, in pci_viona_init()
756 snprintf(tname, sizeof (tname), "vionapoll:%s", vnic); in pci_viona_init()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlvlan.c45 dladm_vnic_attr_t attr, *vnic = &attr; in dladm_vlan_info() local
47 if ((status = dladm_vnic_info(handle, vlanid, vnic, flags)) != in dladm_vlan_info()
51 dvap->dv_vid = vnic->va_vid; in dladm_vlan_info()
52 dvap->dv_linkid = vnic->va_link_id; in dladm_vlan_info()
53 dvap->dv_force = vnic->va_force; in dladm_vlan_info()
H A Dlibdlvnic.c165 vnic_info_t *vnic; in i_dladm_vnic_info_active() local
170 vnic = &ioc.vi_info; in i_dladm_vnic_info_active()
171 vnic->vn_vnic_id = linkid; in i_dladm_vnic_info_active()
179 attrp->va_vnic_id = vnic->vn_vnic_id; in i_dladm_vnic_info_active()
180 attrp->va_link_id = vnic->vn_link_id; in i_dladm_vnic_info_active()
181 attrp->va_mac_addr_type = vnic->vn_mac_addr_type; in i_dladm_vnic_info_active()
182 bcopy(vnic->vn_mac_addr, attrp->va_mac_addr, MAXMACADDRLEN); in i_dladm_vnic_info_active()
183 attrp->va_mac_len = vnic->vn_mac_len; in i_dladm_vnic_info_active()
184 attrp->va_mac_slot = vnic->vn_mac_slot; in i_dladm_vnic_info_active()
185 attrp->va_mac_prefix_len = vnic->vn_mac_prefix_len; in i_dladm_vnic_info_active()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_hw_access.c61 u8_t vnic = 0; in lm_cmng_init() local
79 for (vnic = 0 ; vnic < num_vnics ; vnic++) in lm_cmng_init()
81 input_data.vnic_max_rate[vnic] = lm_get_max_bw(pdev, in lm_cmng_init()
83 vnic); in lm_cmng_init()
87 if (pdev->hw_info.mf_info.min_bw[vnic] == 0) in lm_cmng_init()
89 input_data.vnic_min_rate[vnic] = DEF_MIN_RATE; in lm_cmng_init()
93 input_data.vnic_min_rate[vnic] = pdev->hw_info.mf_info.min_bw[vnic]; in lm_cmng_init()
108 … ecore_init_max_per_vn( input_data.vnic_max_rate[vnic_id], &ram_data.vnic.vnic_max_rate[vnic_id] ); in lm_cmng_init()
118 for (vnic = 0; vnic < ARRSIZE(ram_data.vnic.vnic_max_rate); vnic++) in lm_cmng_init()
120 buf = (u32_t *)&ram_data.vnic.vnic_max_rate[vnic]; in lm_cmng_init()
[all …]
H A Dlm_devinfo.c1511 u8_t vnic = 0; in lm_cmng_get_shmem_info() local
1524 … mf_info->min_bw[vnic] = (GET_FLAGS(val, FUNC_MF_CFG_MIN_BW_MASK) >> FUNC_MF_CFG_MIN_BW_SHIFT); in lm_cmng_get_shmem_info()
1525 … mf_info->max_bw[vnic] = (GET_FLAGS(val, FUNC_MF_CFG_MAX_BW_MASK) >> FUNC_MF_CFG_MAX_BW_SHIFT); in lm_cmng_get_shmem_info()
1526 vnic++; in lm_cmng_get_shmem_info()
4002 u8_t vnic = 0; in lm_cmng_calc_params() local
4004 for (vnic = 0; vnic < MAX_VNIC_NUM; vnic++) in lm_cmng_calc_params()
4008 pdev->params.min_bw[vnic] = 0; in lm_cmng_calc_params()
4009 pdev->params.max_bw[vnic] = 0; in lm_cmng_calc_params()
4013 pdev->params.min_bw[vnic] = pdev->hw_info.mf_info.min_bw[vnic]; in lm_cmng_calc_params()
4014 pdev->params.max_bw[vnic] = pdev->hw_info.mf_info.max_bw[vnic]; in lm_cmng_calc_params()
[all …]
/illumos-gate/usr/src/test/net-tests/tests/ipv6/
H A Dscope-test-v4.ksh41 for vnic in ${vnics[@]}; do
42 ipadm delete-if ${vnic}
43 dladm delete-vnic "$vnic"
63 dladm create-vnic -t -l "$SIMNET" "$IF"
H A Dscope-test-v6.ksh41 for vnic in ${vnics[@]}; do
42 ipadm delete-if ${vnic}
43 dladm delete-vnic "$vnic"
63 dladm create-vnic -t -l "$SIMNET" "$IF"
H A Dlink-local.ksh36 dladm delete-vnic $IF
51 dladm create-vnic -l $SIMNET "$IF" || \
/illumos-gate/usr/src/test/net-tests/tests/
H A Dnet_common.ksh182 if dladm show-vnic $name > /dev/null 2>&1; then
183 typeset avid=$(dladm show-vnic -p -o vid $name)
184 typeset aover=$(dladm show-vnic -p -o over $name)
218 if dladm create-vnic -l $over $vid_opt $name > /dev/null 2>&1 && \
248 if dladm delete-vnic $name > /dev/null; then
259 typeset vnic=$2
261 typeset ipname=${vnic}/v4
280 typeset vnic=$2
282 typeset ll_name=${vnic}/v6
283 typeset uni_name=${vnic}/v6add
/illumos-gate/usr/src/test/util-tests/tests/dladm/
H A Dset-linkprop.ksh36 dladm delete-vnic $vm_pvnic 2>/dev/null
37 dladm delete-vnic $vm_tvnic 2>/dev/null
59 dladm create-vnic $flags -l $vm_stub $dev 2>/dev/null || fatal \
67 dladm delete-vnic $dev || fatal "failed to delete vnic: $dev"
H A Dshow-class-confusion.ksh79 dladm delete-vnic $dl_vnic 2>/dev/null
86 dladm create-vnic -t -l $dl_stub $dl_vnic || fatal \
H A Dallowed-ips.ksh32 dladm create-vnic -l $ai_stub $ai_vnic || fatal "failed to create vnic"
37 dladm delete-vnic $ai_vnic || fatal "failed to remove vnic"
/illumos-gate/usr/src/uts/intel/vnic/
H A DMakefile35 MODULE = vnic
38 CONF_SRCDIR = $(UTSBASE)/common/io/vnic
/illumos-gate/usr/src/cmd/svc/milestone/
H A Dnet-physical96 /sbin/dladm up-vnic
471 /sbin/dladm up-vnic
/illumos-gate/usr/src/cmd/tsol/misc/
H A Dtxzonemgr.sh754 vnic=$(dladm show-vnic -po link $nic 2>/dev/null)
755 if [[ -n $vnic ]] ; then
864 x=$(dladm show-vnic|grep "^$vnicname " )
866 dladm create-vnic -l $nic $vnicname
1252 dladm delete-vnic $nic

12