vsw_hio.h (6ab6cb20) vsw_hio.h (da14cebe)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 41 unchanged lines hidden (view full) ---

50 uint8_t vs_req_id; /* DDS request ID */
51
52 /* Cached info */
53 vsw_port_t *vs_portp; /* Corresponding port */
54 uint64_t vs_ldcid; /* LDC to which the share is assigned */
55 uint64_t vs_macaddr; /* Associated MAC addr */
56 uint64_t vs_cookie; /* Share Cookie from alloc_share */
57
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 41 unchanged lines hidden (view full) ---

50 uint8_t vs_req_id; /* DDS request ID */
51
52 /* Cached info */
53 vsw_port_t *vs_portp; /* Corresponding port */
54 uint64_t vs_ldcid; /* LDC to which the share is assigned */
55 uint64_t vs_macaddr; /* Associated MAC addr */
56 uint64_t vs_cookie; /* Share Cookie from alloc_share */
57
58 /* physdev's share related info */
59 mac_share_handle_t vs_shdl; /* HIO share handle */
60 mac_group_info_t vs_rxginfo; /* RX group info */
61 uint64_t vs_gnum; /* RX group number */
62} vsw_share_t;
63
64#define VSW_SHARE_FREE 0x0
65#define VSW_SHARE_ASSIGNED 0x1
66#define VSW_SHARE_DDS_SENT 0x2
67#define VSW_SHARE_DDS_ACKD 0x4
68
69/* Hybrid related info */
70typedef struct vsw_hio {
58} vsw_share_t;
59
60#define VSW_SHARE_FREE 0x0
61#define VSW_SHARE_ASSIGNED 0x1
62#define VSW_SHARE_DDS_SENT 0x2
63#define VSW_SHARE_DDS_ACKD 0x4
64
65/* Hybrid related info */
66typedef struct vsw_hio {
71 mac_capab_rings_t vh_rcapab; /* Rings capability data */
72 mac_capab_share_t vh_scapab; /* Share capability data */
73 vsw_share_t *vh_shares; /* Array of Shares */
74 uint32_t vh_num_shares; /* Number of shares available */
67 uint32_t vh_num_shares; /* Number of shares available */
75
68 vsw_share_t *vh_shares; /* Array of Shares */
76 uint32_t vh_kstat_size; /* size for the whole kstats */
77 vsw_hio_kstats_t *vh_kstatsp; /* stats for vsw hio */
78 kstat_t *vh_ksp; /* kstats */
79} vsw_hio_t;
80
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* _VSW_HIO_H */
69 uint32_t vh_kstat_size; /* size for the whole kstats */
70 vsw_hio_kstats_t *vh_kstatsp; /* stats for vsw hio */
71 kstat_t *vh_ksp; /* kstats */
72} vsw_hio_t;
73
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* _VSW_HIO_H */