vnic.h revision da14cebe459d3275048785f25bd869cb09b5307f
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * Extended diagnostic codes that can be returned by the various 2N/A * Allowed VNIC MAC address types. 2N/A * - VNIC_MAC_ADDR_TYPE_FIXED, VNIC_MAC_ADDR_TYPE_RANDOM: 2N/A * The MAC address is specified by value by the caller, which 2N/A * itself can obtain it from the user directly, 2N/A * or pick it in a random fashion. Which method is used by the 2N/A * caller is irrelevant to the VNIC driver. However two different 2N/A * types are provided so that the information can be made available 2N/A * back to user-space when listing the kernel defined VNICs. 2N/A * When a VNIC is created, the address in passed through the 2N/A * vc_mac_addr and vc_mac_len fields of the vnic_ioc_create_t 2N/A * - VNIC_MAC_ADDR_TYPE_FACTORY: the MAC address is obtained from 2N/A * one of the MAC factory MAC addresses of the underyling NIC. 2N/A * - VNIC_MAC_ADDR_TYPE_AUTO: the VNIC driver attempts to 2N/A * obtain the address from one of the factory MAC addresses of 2N/A * the underlying NIC. If none is available, the specified 2N/A * MAC address value is used. 2N/A * - VNIC_MAC_ADDR_TYPE_PRIMARY: this is a VNIC based VLAN. The 2N/A * address for this is the address of the primary MAC client. 2N/A * Force creation of VLAN based VNIC without checking if the 2N/A * undelying MAC supports the margin size. 2N/A/* Allocate a hardware ring to the vnic */ 2N/A#
endif /* _SYS_VNIC_H */