vnic_impl.h revision 1a41ca239310955ae95b2569b707432432a58580
5b6e0c463149a26dd0aeb4c1f70611c97161ff32dougm * CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock * Common Development and Distribution License (the "License").
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock * You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens * information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
99d5e173470cf967aa87653364ed614299e7b511Tim Haley * Use is subject to license terms.
4445fffbbb1ea25fd0e9ea68b9380dd7a6709025Matthew Ahrens * Copyright 2013 Joyent, Inc. All rights reserved.
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrocktypedef struct vnic_s {
5da9ad7bc7967714b6c6e02dcfe8e6f7cc2d6098gw /* The primary handle is always the first element in the array */
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrock mac_client_handle_t vn_mc_handles[MPT_MAXMACADDR];
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrock mac_unicast_handle_t vn_mu_handles[MPT_MAXMACADDR];
99d5e173470cf967aa87653364ed614299e7b511Tim Haleyextern int vnic_dev_create(datalink_id_t, datalink_id_t, vnic_mac_addr_type_t *,
6733190958bbcc0bd6d1d601e7ae0a6994dafb45dougm int *, uchar_t *, int *, uint_t, uint16_t, vrid_t, int,
5b6e0c463149a26dd0aeb4c1f70611c97161ff32dougm mac_resource_props_t *, uint32_t, vnic_ioc_diag_t *, cred_t *);
b2634b9c57bbcfa01bb5dec2e196aec32957925fEric Taylorextern int vnic_dev_modify(datalink_id_t, uint_t, vnic_mac_addr_type_t,
ebedde844eddf46049b2403f974b50bcba47356eEric Taylor uint_t, uchar_t *, uint_t, mac_resource_props_t *);
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrockextern int vnic_dev_delete(datalink_id_t, uint32_t, cred_t *);
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrockextern void vnic_dev_init(void);
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrockextern void vnic_dev_fini(void);
a2eea2e101e6a163a537dcc6d4e3c4da2a0ea5b2ahrens#endif /* _SYS_VNIC_IMPL_H */