Searched defs:vnic (Results 1 - 19 of 19) sorted by relevance

/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlvlan.c45 dladm_vnic_attr_t attr, *vnic = &attr; local
47 if ((status = dladm_vnic_info(handle, vlanid, vnic, flags)) !=
51 dvap->dv_vid = vnic->va_vid;
52 dvap->dv_linkid = vnic->va_link_id;
53 dvap->dv_force = vnic->va_force;
H A Dlibdlvnic.c161 vnic_info_t *vnic; local
166 vnic = &ioc.vi_info;
167 vnic->vn_vnic_id = linkid;
175 attrp->va_vnic_id = vnic->vn_vnic_id;
176 attrp->va_link_id = vnic->vn_link_id;
177 attrp->va_mac_addr_type = vnic->vn_mac_addr_type;
178 bcopy(vnic->vn_mac_addr, attrp->va_mac_addr, MAXMACADDRLEN);
179 attrp->va_mac_len = vnic->vn_mac_len;
180 attrp->va_mac_slot = vnic->vn_mac_slot;
181 attrp->va_mac_prefix_len = vnic
398 dladm_vnic_create(dladm_handle_t handle, const char *vnic, datalink_id_t linkid, vnic_mac_addr_type_t mac_addr_type, uchar_t *mac_addr, uint_t mac_len, int *mac_slot, uint_t mac_prefix_len, uint16_t vid, vrid_t vrid, int af, datalink_id_t *vnic_id_out, dladm_arg_list_t *proplist, uint32_t flags) argument
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_ctl.c48 eib_ctl_create_qp(eib_t *ss, eib_vnic_t *vnic, int *err) argument
53 * Allocate a eib_chan_t to store stuff about this vnic's ctl qp
58 vnic->vn_ctl_chan = eib_chan_init();
60 chan = vnic->vn_ctl_chan;
63 chan->ch_vnic_inst = vnic->vn_instance;
68 if (eib_ctl_setup_cq(ss, vnic) != EIB_E_SUCCESS) {
78 if (eib_ctl_setup_ud_channel(ss, vnic) != EIB_E_SUCCESS) {
88 eib_rb_ctl_create_qp(ss, vnic);
96 eib_vnic_t *vnic = (eib_vnic_t *)(void *)arg1; local
97 eib_chan_t *chan = vnic
137 eib_rb_ctl_create_qp(eib_t *ss, eib_vnic_t *vnic) argument
148 eib_ctl_setup_cq(eib_t *ss, eib_vnic_t *vnic) argument
214 eib_ctl_setup_ud_channel(eib_t *ss, eib_vnic_t *vnic) argument
274 eib_vnic_t *vnic = arg; local
291 eib_ctl_rx_comp(eib_vnic_t *vnic, eib_wqe_t *wqe) argument
324 eib_ctl_tx_comp(eib_vnic_t *vnic, eib_wqe_t *wqe) argument
330 eib_ctl_err_comp(eib_vnic_t *vnic, eib_wqe_t *wqe, ibt_wc_t *wc) argument
366 eib_rb_ctl_setup_cq(eib_t *ss, eib_vnic_t *vnic) argument
413 eib_rb_ctl_setup_ud_channel(eib_t *ss, eib_vnic_t *vnic) argument
[all...]
H A Deib_mac.c191 * Create the vnic for physlink (instance 0)
222 eib_vnic_t *vnic; local
233 if ((vnic = ss->ei_vnic[ndx]) != NULL)
234 eib_vnic_delete(ss, vnic);
267 * If it's a broadcast group join, each vnic needs to and is always
322 eib_vnic_t *vnic = NULL; local
347 * Lookup the {smac, vlan} tuple in our vnic list. If it isn't
348 * there, this is obviously a new packet on a vnic/vlan that
350 * to create a new vnic. This is obviously not a clean thing to
351 * do - we should be informed when a vnic/vla
[all...]
H A Deib_ibt.c206 * restart all active vnics. If any of the vnic pkeys have
235 "eib_ibt_link_mod: pkey has changed for vnic(s), "
711 eib_vnic_t *vnic; local
728 if ((vnic = ss->ei_vnic[inst]) != NULL) {
729 if ((chan = vnic->vn_ctl_chan) != NULL) {
733 if ((chan = vnic->vn_data_chan) != NULL) {
746 eib_vnic_t *vnic; local
755 * logging in to the gateway, we also need to check the vnic
760 if ((vnic = ss->ei_vnic_pending) != NULL) {
761 chan = vnic
925 eib_vnic_t *vnic; local
[all...]
H A Deib_main.c449 * either on the vnic's list of mcgs joined to (which will only be the
468 eib_vnic_t *vnic; local
475 vnic = ss->ei_vnic[0];
476 if (bcmp(macaddr, vnic->vn_login_data.ld_assigned_mac,
752 * Add callback for receiving vnic login acks from the gateway
H A Deib_data.c60 eib_data_create_qp(eib_t *ss, eib_vnic_t *vnic, int *err) argument
65 * Allocate a eib_chan_t to store stuff about this vnic's data qp
70 vnic->vn_data_chan = eib_chan_init();
72 chan = vnic->vn_data_chan;
75 chan->ch_vnic_inst = vnic->vn_instance;
80 if (eib_data_setup_cqs(ss, vnic) != EIB_E_SUCCESS) {
83 vnic->vn_instance);
91 if (eib_data_setup_ud_channel(ss, vnic) != EIB_E_SUCCESS) {
94 vnic->vn_instance);
102 eib_rb_data_create_qp(ss, vnic);
110 eib_vnic_t *vnic = (eib_vnic_t *)(void *)arg1; local
230 eib_vnic_t *vnic = (eib_vnic_t *)(void *)arg1; local
343 eib_data_post_tx(eib_vnic_t *vnic, eib_wqe_t *swqe) argument
488 eib_vnic_t *vnic; local
545 eib_data_prepare_frame(eib_vnic_t *vnic, eib_wqe_t *swqe, mblk_t *mp, eib_ether_hdr_t *evh) argument
577 eib_rb_data_create_qp(eib_t *ss, eib_vnic_t *vnic) argument
588 eib_data_setup_cqs(eib_t *ss, eib_vnic_t *vnic) argument
697 eib_data_setup_ud_channel(eib_t *ss, eib_vnic_t *vnic) argument
849 eib_data_prepare_sgl(eib_vnic_t *vnic, eib_wqe_t *swqe, mblk_t *mp) argument
1059 eib_data_is_mcast_pkt_ok(eib_vnic_t *vnic, uint8_t *macaddr, uint64_t *brdcst, uint64_t *multicst) argument
1079 eib_vnic_t *vnic = arg; local
1098 eib_vnic_t *vnic = arg; local
1115 eib_data_rx_comp(eib_vnic_t *vnic, eib_wqe_t *wqe, ibt_wc_t *wc) argument
1299 eib_data_tx_comp(eib_vnic_t *vnic, eib_wqe_t *wqe, eib_chan_t *chan) argument
1326 eib_data_err_comp(eib_vnic_t *vnic, eib_wqe_t *wqe, ibt_wc_t *wc) argument
1369 eib_rb_data_setup_cqs(eib_t *ss, eib_vnic_t *vnic) argument
1440 eib_rb_data_setup_ud_channel(eib_t *ss, eib_vnic_t *vnic) argument
[all...]
H A Deib_fip.c76 * vnic identity descriptor to be sent with different flag settings.
87 eib_fip_login(eib_t *ss, eib_vnic_t *vnic, int *err) argument
97 "vnic login request");
102 ret = eib_fip_make_login(ss, vnic, swqe, err);
108 ret = eib_fip_send_login(ss, vnic, swqe, err);
114 ret = eib_vnic_wait_for_login_ack(ss, vnic, err);
124 eib_fip_vhub_table(eib_t *ss, eib_vnic_t *vnic, int *err) argument
139 ret = eib_fip_make_table(ss, vnic, swqe, err);
145 ret = eib_fip_send_table(ss, vnic, swqe, err);
151 ret = eib_vnic_wait_for_table(ss, vnic, er
174 eib_fip_heartbeat(eib_t *ss, eib_vnic_t *vnic, int *err) argument
208 eib_fip_logout(eib_t *ss, eib_vnic_t *vnic, int *err) argument
397 eib_fip_parse_ctl_pkt(uint8_t *pkt, eib_vnic_t *vnic) argument
486 eib_fip_make_login(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int *err) argument
621 eib_fip_make_update(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int req, int *err) argument
715 eib_fip_make_table(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int *err) argument
721 eib_fip_make_ka(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int *err) argument
727 eib_fip_make_logout(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int *err) argument
733 eib_fip_send_login(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int *err) argument
795 eib_fip_send_update(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, uint_t nxt_state, int *err) argument
857 eib_fip_send_table(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int *err) argument
863 eib_fip_send_ka(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int *err) argument
869 eib_fip_send_logout(eib_t *ss, eib_vnic_t *vnic, eib_wqe_t *swqe, int *err) argument
875 eib_fip_parse_vhub_table(uint8_t *pkt, eib_vnic_t *vnic) argument
1098 eib_fip_parse_vhub_update(uint8_t *pkt, eib_vnic_t *vnic) argument
1379 eib_fip_queue_gw_entry(eib_vnic_t *vnic, eib_vhub_table_t *tbl, uint32_t tusn, uint8_t eport_state) argument
[all...]
H A Deib_vnic.c90 eib_vnic_t *vnic = NULL; local
97 * When a previously created vnic is being resurrected due to a
99 * for the existing vnic could get filed with the vnic creator
100 * thread. So, before we go ahead with the creation of this vnic,
101 * make sure we already don't have the vnic.
107 "vnic for mac=%x:%x:%x:%x:%x:%x, vlan=0x%x "
116 "vnic for mac=%x:%x:%x:%x:%x:%x, vlan=0x%x "
129 * Allocate a vnic structure for this instance
131 vnic
184 eib_vnic_delete(eib_t *ss, eib_vnic_t *vnic) argument
193 eib_vnic_wait_for_login_ack(eib_t *ss, eib_vnic_t *vnic, int *err) argument
226 eib_vnic_t *vnic; local
360 eib_vnic_wait_for_table(eib_t *ss, eib_vnic_t *vnic, int *err) argument
398 eib_vnic_vhub_table_done(eib_vnic_t *vnic, uint_t result_state) argument
417 eib_vnic_join_data_mcg(eib_t *ss, eib_vnic_t *vnic, uint8_t *mcast_mac, boolean_t rejoin, int *err) argument
584 eib_vnic_setup_dest(eib_vnic_t *vnic, eib_wqe_t *swqe, uint8_t *dmac, uint16_t vlan) argument
659 eib_vnic_leave_data_mcg(eib_t *ss, eib_vnic_t *vnic, uint8_t *mcast_mac) argument
666 eib_vnic_init_tables(eib_t *ss, eib_vnic_t *vnic) argument
686 eib_vnic_fini_tables(eib_t *ss, eib_vnic_t *vnic, boolean_t clobber) argument
807 eib_vnic_t *vnic; local
1051 eib_vnic_t *vnic; local
1126 eib_vnic_t *vnic; local
1145 eib_rb_vnic_create(eib_t *ss, eib_vnic_t *vnic, uint_t progress) argument
1247 eib_vnic_create_common(eib_t *ss, eib_vnic_t *vnic, int *err) argument
1404 eib_vnic_set_partition(eib_t *ss, eib_vnic_t *vnic, int *err) argument
1488 eib_vnic_attach_ctl_mcgs(eib_t *ss, eib_vnic_t *vnic, int *err) argument
1523 eib_vnic_attach_vhub_table(eib_t *ss, eib_vnic_t *vnic) argument
1628 eib_vnic_attach_vhub_update(eib_t *ss, eib_vnic_t *vnic) argument
1734 eib_vnic_start_keepalives(eib_t *ss, eib_vnic_t *vnic) argument
1765 eib_vnic_lookup_dest(eib_vnic_t *vnic, uint8_t *dmac, uint16_t vlan, eib_vhub_map_t *ucast, ibt_mcg_info_t *mcast, int *dtype) argument
1860 eib_vnic_leave_all_data_mcgs(eib_t *ss, eib_vnic_t *vnic) argument
1911 eib_vnic_rejoin_data_mcgs(eib_t *ss, eib_vnic_t *vnic) argument
1959 eib_vnic_reattach_ctl_mcgs(eib_t *ss, eib_vnic_t *vnic) argument
1989 eib_rb_vnic_create_common(eib_t *ss, eib_vnic_t *vnic, uint_t progress) argument
2024 eib_rb_vnic_attach_ctl_mcgs(eib_t *ss, eib_vnic_t *vnic) argument
2038 eib_rb_vnic_attach_vhub_table(eib_t *ss, eib_vnic_t *vnic) argument
2084 eib_rb_vnic_attach_vhub_update(eib_t *ss, eib_vnic_t *vnic) argument
2130 eib_rb_vnic_start_keepalives(eib_t *ss, eib_vnic_t *vnic) argument
2167 eib_rb_vnic_join_data_mcg(eib_t *ss, eib_vnic_t *vnic, uint8_t *mcast_mac) argument
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/
H A Dbnxe_fw_funcs.c34 /* extracts the QM queue number for the specified port and vnic */
35 #define ECORE_PF_Q_NUM(q_num, port, vnic)\
36 ((((port) << 1) | (vnic)) * 16 + (q_num))
48 u32_t reg_addr, reg_bit_map, vnic; local
60 for (vnic = 0; vnic < num_vnics; vnic++) {
62 ECORE_PF_Q_NUM(q_num, PORT_ID(pdev), vnic);
126 * PFID_FROM_PORT_AND_VNIC offset for writing the vnic sub struct (in other
128 * 2. although the cmng_init struct is filled for the maximal vnic numbe
173 u32_t vnic; local
227 u32_t vnic, fair_periodic_timeout_usec, vnicWeightSum, tFair; local
285 u32_t vnic, cos; local
[all...]
H A D5710_hsi.h211 #define DMAE_CMD_E1HVN (0x3<<15) /* BitField opcode vnic number E2 and onwards source vnic */
213 #define DMAE_CMD_DST_VN (0x3<<17) /* BitField opcode E2 and onwards dest vnic */
7768 u32_t upper_bound /* Quota for a protocol/vnic */;
7804 * a single rate shaping counter. can be used as protocol or vnic counter
7808 u32_t quota /* Quota for a protocol/vnic */;
7819 * per-vnic rate shaping variables
7823 struct rate_shaping_counter vn_counter /* per-vnic counter */;
7827 * per-vnic fairness variables
7851 struct cmng_vnic vnic; member in struct:cmng_init
[all...]
/illumos-gate/usr/src/lib/libvrrpadm/common/
H A Dlibvrrpadm.c710 * Given the primary link name, find the assoicated VRRP vnic name, if
711 * the vnic does not exist yet, return the linkid, vid of the primary link.
715 datalink_id_t *linkidp, uint16_t *vidp, char *vnic, size_t len)
768 * Find the assoicated vnic with the given vrid/vid/af/linkid
780 (void) strlcpy(vnic, lva.lva_vnic, len);
714 vrrp_get_vnicname(vrrp_handle_t vh, vrid_t vrid, int af, char *link, datalink_id_t *linkidp, uint16_t *vidp, char *vnic, size_t len) argument
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dvnic_rcm.c402 dl_vnic_t *vnic; local
409 for (vnic = node->vc_vnic; vnic != NULL; vnic = vnic->dlv_next) {
410 if (!(vnic->dlv_flags & VNIC_OFFLINED))
413 if ((status = dladm_vnic_up(dld_handle, vnic->dlv_vnic_id, 0))
421 vnic->dlv_vnic_id,
424 vnic->dlv_flags &= ~VNIC_OFFLINED;
432 dl_vnic_t *vnic; local
537 dl_vnic_t *vnic = NULL; local
676 dl_vnic_t *vnic; local
796 dl_vnic_t *vnic, *next; local
853 dl_vnic_t *vnic; local
977 dl_vnic_t *vnic; local
1000 dl_vnic_t *vnic, *next; local
1124 dl_vnic_t *vnic; local
1153 dl_vnic_t *vnic; local
1186 dl_vnic_t *vnic; local
[all...]
/illumos-gate/usr/src/uts/common/io/vnic/
H A Dvnic_dev.c54 #include <sys/vnic.h>
196 vnic_unicast_add(vnic_t *vnic, vnic_mac_addr_type_t vnic_addr_type, argument
252 if ((err = mac_addr_random(vnic->vn_mch,
257 *addr_len_ptr_arg = mac_addr_len(vnic->vn_lower_mh);
261 err = mac_addr_factory_reserve(vnic->vn_mch, addr_slot);
272 mac_addr_factory_value(vnic->vn_lower_mh, *addr_slot,
279 err = mac_addr_factory_reserve(vnic->vn_mch, addr_slot);
281 mac_addr_factory_value(vnic->vn_lower_mh, *addr_slot,
292 if ((err = mac_addr_random(vnic->vn_mch,
297 *addr_len_ptr_arg = mac_addr_len(vnic
345 vnic_t *vnic; local
621 vnic_t *vnic = NULL; local
640 vnic_t *vnic = NULL; local
737 vnic_t *vnic = arg; local
791 vnic_t *vnic = vnic_arg; local
818 vnic_t *vnic = arg; local
907 vnic_t *vnic = arg; local
1234 vnic_t *vnic; local
1273 vnic_t *vnic = arg; local
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_hw_access.c61 u8_t vnic = 0; local
79 for (vnic = 0 ; vnic < num_vnics ; vnic++)
81 input_data.vnic_max_rate[vnic] = lm_get_max_bw(pdev,
83 vnic);
87 if (pdev->hw_info.mf_info.min_bw[vnic] == 0)
89 input_data.vnic_min_rate[vnic] = DEF_MIN_RATE;
93 input_data.vnic_min_rate[vnic] = pdev->hw_info.mf_info.min_bw[vnic];
[all...]
H A Dlm_devinfo.c1058 #define MAX_CONNECTIONS 2048 /* Max 32K Connections per port / vnic-per-port (rounded to power2)*/
1067 #define MAX_CONNECTIONS (min(16384,(32768 / (log2_align(pdev->hw_info.mf_info.vnics_per_port))))) /* Max 32K Connections per port / vnic-per-port (rounded to power2)
1415 /* enumerated vnic id > 0 must have valid ovlan if we're in switch-dependet mode */
1511 u8_t vnic = 0; local
1524 mf_info->min_bw[vnic] = (GET_FLAGS(val, FUNC_MF_CFG_MIN_BW_MASK) >> FUNC_MF_CFG_MIN_BW_SHIFT);
1525 mf_info->max_bw[vnic] = (GET_FLAGS(val, FUNC_MF_CFG_MAX_BW_MASK) >> FUNC_MF_CFG_MAX_BW_SHIFT);
1526 vnic++;
1863 /* decide on path multi vnics mode - incase we're not in mf mode...and in 4-port-mode good enough to check vnic-0 of the other port, on the same path */
1886 /* If we're multi-vnic, we'll set a default mf_mode of switch-dependent, this could be overriden
1897 /* sanity checks on vnic param
4002 u8_t vnic = 0; local
4031 lm_get_max_bw(IN const lm_device_t *pdev, IN const u32_t link_speed, IN const u8_t vnic) argument
[all...]
H A Dlm_hw_init_reset.c822 const u8_t vnic,
844 func_config_id = ( port_factor * vnic ) + port;
848 func_config_id = E2_PF_NUM( path_id , port, vnic );
865 u8_t vnic = 0; local
976 // Check what is the last valid vnic (non hidden one)
977 for( vnic = 0; vnic < vnics_per_port; vnic++ )
990 vnic,
996 last_valid_vnic = vnic; // w
818 lm_reset_device_if_undi_func_hide_helper( struct _lm_device_t *pdev, const u32_t chip_id, const u8_t path_id, const u8_t port, const u8_t vnic, const u8_t port_factor, const lm_chip_port_mode_t port_mode ) argument
[all...]
/illumos-gate/usr/src/cmd/dladm/
H A Ddladm.c345 { "create-vnic", do_create_vnic,
346 " create-vnic [-t] -l <link> [-m <value> | auto |\n"
349 "\t\t [-p <prop>=<value>[,...]] <vnic-link>" },
350 { "delete-vnic", do_delete_vnic,
351 " delete-vnic [-t] <vnic-link>" },
352 { "show-vnic", do_show_vnic,
353 " show-vnic [-pP] [-l <link>] [-s [-i <interval>]] "
355 { "up-vnic", do_up_vnic, NULL },
1005 * structures for 'dladm show-vnic'
4976 dladm_vnic_attr_t attr, *vnic = &attr; local
[all...]
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c3951 if (hdr1->chip == hdr2->chip && SAME_INTF(nic) && SAME_INTF(vnic) &&
10404 * @vnic: Virtual NIC ID filter selection
10429 int fcoe, int port, int vnic,
10444 BAD_FILTER(vnic) ||
10500 if (vnic >= 0) {
10501 v |= ((1ULL << (W_FT_VNIC_ID-1)) | vnic) << tp->vnic_shift;
10427 t4_create_filter_info(const struct adapter *adapter, u64 *filter_value, u64 *filter_mask, int fcoe, int port, int vnic, int vlan, int vlan_pcp, int vlan_dei, int tos, int protocol, int ethertype, int macmatch, int matchtype, int frag) argument

Completed in 523 milliseconds