Lines Matching defs:vnic

346 	{ "create-vnic",	do_create_vnic,
347 " create-vnic [-t] -l <link> [-m <value> | auto |\n"
350 "\t\t [-p <prop>=<value>[,...]] <vnic-link>" },
351 { "delete-vnic", do_delete_vnic,
352 " delete-vnic [-t] <vnic-link>" },
353 { "show-vnic", do_show_vnic,
354 " show-vnic [-pP] [-l <link>] [-s [-i <interval>]] "
356 { "up-vnic", do_up_vnic, NULL },
1006 * structures for 'dladm show-vnic'
4771 die("invalid vnic property");
4786 die_dlerr(status, "vnic creation over %s failed", devname);
4809 (is_etherstub ? "a vnic" : "an etherstub"));
4838 /* get vnic name (required last argument) */
4861 die_dlerr(status, "vnic deletion failed");
4878 type = vlan ? "vlan" : "vnic";
4881 * get the id or the name of the vnic/vlan (optional last argument)
4965 * Called from the walker dladm_vnic_walk_sys() for each vnic to display
4966 * vnic information or statistics.
4971 dladm_vnic_attr_t attr, *vnic = &attr;
4979 if ((status = dladm_vnic_info(handle, linkid, vnic, state->vs_flags)) !=
4983 is_etherstub = (vnic->va_link_id == DATALINK_INVALID_LINKID);
4993 if (state->vs_link_id != vnic->va_link_id)
5003 dladm_datalink_id2info(handle, vnic->va_link_id, NULL, NULL,
5009 /* print vnic statistics */
5020 * get vnic statistics and add to the sum for the
5025 &state->vs_prevstats[vnic->va_vnic_id]);
5027 /* get and print vnic statistics */
5046 switch (vnic->va_mac_addr_type) {
5062 vnic->va_mac_slot);
5068 vnic->va_vrid, vnic->va_af == AF_INET ?
5076 dladm_aggr_macaddr2str(vnic->va_mac_addr,
5081 "%d", vnic->va_vid);
5170 /* get vnic ID (optional last argument) */
5175 die_dlerr(status, "invalid vnic name '%s'",
5211 /* Display vnic statistics */
5217 /* Display vnic information */
5228 die_dlerr(state.vs_status, "failed to show vnic '%s'",
5681 /* Display vnic statistics */
5690 * If an interval is specified, and a vnic ID is not specified,
5691 * continuously show the stats only for the first vnic.
5697 /* Get stats for each vnic */
5711 "failed to show vnic '%s'", sp->vs_vnic);
5716 die("non-existent vnic '%s'", sp->vs_vnic);
5733 /* Show stats for each vnic */
5745 "failed to show vnic '%s'", sp->vs_vnic);