vnet.h revision 1ae0874509b6811fdde1dfd46f0d93fd09867a3f
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _VNET_H
#define _VNET_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define VNET_SUCCESS (0) /* successful return */
/*
* vnet proxy transport layer information. There is one instance of this for
* every transport being used by a vnet device and a list of these transports
* is maintained by vnet.
*/
typedef struct vp_tl {
} vp_tl_t;
/*
* Forwarding database (FDB) entry, used by vnet to provide switching
* functionality. Each fdb entry corresponds to a destination vnet device
* within the ldoms which is directly reachable by invoking a transmit
* function provided by a vnet proxy transport layer. Currently, the generic
*/
typedef struct fdb {
void *txarg; /* arg to the transmit func */
} fdb_t;
/* FDB hash queue head */
typedef struct fdbf_s {
} fdb_fanout_t;
/* Hash calculation using the mac address */
*(((uchar_t *)(a)) + 1) ^ \
*(((uchar_t *)(a)) + 2) ^ \
*(((uchar_t *)(a)) + 3) ^ \
*(((uchar_t *)(a)) + 4) ^ \
/* rwlock macros */
/*
* vnet instance state information
*/
typedef struct vnet {
int instance; /* instance # */
int nfdb_hash; /* num fdb hash queues */
} vnet_t;
#ifdef __cplusplus
}
#endif
#endif /* _VNET_H */