/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_AGGR_H
#define _SYS_AGGR_H
#include <sys/ethernet.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Note that the data structures defined here define an ioctl interface
* that is shared betwen user and kernel space. The aggr driver thus
* assumes that the structures have identical layout and size when
* compiled in either IPL32 or LP64.
*/
/*
* Transmit load balancing policies.
*/
/*
* LACP mode and timer.
*/
typedef enum {
AGGR_LACP_OFF = 0,
typedef enum {
AGGR_LACP_TIMER_LONG = 0,
/*
* MAC port state.
*/
typedef enum {
/* Maximum number of ports per aggregation. */
/*
* The largest configurable aggregation key. Because by default the key is
* used as the DLPI device PPA and default VLAN PPA's are calculated as
* ((1000 * vid) + PPA), the largest key can't be > 999.
*/
/*
* LACP port state.
*/
typedef union {
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#else
#error "unknown bit fields ordering"
#endif
} bit;
/* one of the ports of a link aggregation group */
typedef struct laioc_port {
} laioc_port_t;
typedef struct laioc_create {
typedef struct laioc_delete {
typedef enum aggr_link_duplex {
typedef enum aggr_link_state {
typedef struct laioc_info_port {
typedef struct laioc_info_group {
typedef struct laioc_info {
/* Must not be DLADM_INVALID_LINKID */
} laioc_info_t;
typedef struct laioc_add_rem {
typedef struct laioc_modify {
#ifdef __cplusplus
}
#endif
#endif /* _SYS_AGGR_H */