39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 #ifdef _KERNEL
44
45 #define AGGR_MINOR_CTL 1 /* control interface minor */
46
47 /* flags for aggr_grp_modify() */
48 #define AGGR_MODIFY_POLICY 0x01
49 #define AGGR_MODIFY_MAC 0x02
50 #define AGGR_MODIFY_LACP_MODE 0x04
51 #define AGGR_MODIFY_LACP_TIMER 0x08
52
53 /*
54 * Possible value of aggr_rseudo_rx_ring_t.arr_flags. Set when the ring entry
55 * in the pseudo RX group is used.
56 */
57 #define MAC_PSEUDO_RING_INUSE 0x01
58
59 /*
60 * VLAN filters placed on the Rx pseudo group.
61 */
62 typedef struct aggr_vlan {
63 list_node_t av_link;
64 uint16_t av_vid; /* VLAN ID */
65 uint_t av_refs; /* num aggr clients using this VID */
66 } aggr_vlan_t;
67
68 typedef struct aggr_unicst_addr_s {
69 uint8_t aua_addr[ETHERADDRL];
70 struct aggr_unicst_addr_s *aua_next;
71 } aggr_unicst_addr_t;
72
73 typedef struct aggr_pseudo_rx_ring_s {
74 mac_ring_handle_t arr_rh; /* filled in by aggr_fill_ring() */
75 struct aggr_port_s *arr_port;
76 mac_ring_handle_t arr_hw_rh;
77 uint_t arr_flags;
78 uint64_t arr_gen;
79 } aggr_pseudo_rx_ring_t;
80
81 typedef struct aggr_pseudo_rx_group_s {
82 struct aggr_grp_s *arg_grp; /* filled in by aggr_fill_group() */
83 mac_group_handle_t arg_gh; /* filled in by aggr_fill_group() */
84 aggr_unicst_addr_t *arg_macaddr;
85 aggr_pseudo_rx_ring_t arg_rings[MAX_RINGS_PER_GROUP];
86 uint_t arg_ring_cnt;
87 uint_t arg_untagged; /* num clients untagged */
88 list_t arg_vlans; /* VLANs on this group */
89 } aggr_pseudo_rx_group_t;
90
91 typedef struct aggr_pseudo_tx_ring_s {
92 mac_ring_handle_t atr_rh; /* filled in by aggr_fill_ring() */
93 struct aggr_port_s *atr_port;
94 mac_ring_handle_t atr_hw_rh;
95 uint_t atr_flags;
96 } aggr_pseudo_tx_ring_t;
97
98 typedef struct aggr_pseudo_tx_group_s {
99 mac_group_handle_t atg_gh; /* filled in by aggr_fill_group() */
100 uint_t atg_ring_cnt;
101 aggr_pseudo_tx_ring_t atg_rings[MAX_RINGS_PER_GROUP];
102 } aggr_pseudo_tx_group_t;
103
104 /*
105 * A link aggregation MAC port.
106 * Note that lp_next is protected by the lg_lock of the group the
107 * port is part of.
108 */
109 typedef struct aggr_port_s {
110 struct aggr_port_s *lp_next;
111 struct aggr_grp_s *lp_grp; /* back ptr to group */
112 datalink_id_t lp_linkid;
113 uint16_t lp_portid;
114 uint8_t lp_addr[ETHERADDRL]; /* port MAC address */
115 uint32_t lp_refs; /* refcount */
116 aggr_port_state_t lp_state;
117 uint32_t lp_started : 1,
118 lp_tx_enabled : 1,
119 lp_collector_enabled : 1,
120 lp_promisc_on : 1,
121 lp_no_link_update : 1,
122 lp_rx_grp_added : 1,
123 lp_tx_grp_added : 1,
124 lp_closing : 1,
125 lp_pad_bits : 24;
126 mac_handle_t lp_mh;
127 mac_client_handle_t lp_mch;
128 const mac_info_t *lp_mip;
129 mac_notify_handle_t lp_mnh;
130 uint_t lp_tx_idx; /* idx in group's tx array */
131 uint64_t lp_ifspeed;
132 link_state_t lp_link_state;
133 link_duplex_t lp_link_duplex;
134 uint64_t lp_stat[MAC_NSTAT];
135 uint64_t lp_ether_stat[ETHER_NSTAT];
136 aggr_lacp_port_t lp_lacp; /* LACP state */
137 lacp_stats_t lp_lacp_stats;
138 uint32_t lp_margin;
139 mac_promisc_handle_t lp_mphp;
140 mac_unicast_handle_t lp_mah;
141
142 /* List of non-primary addresses that requires promiscous mode set */
143 aggr_unicst_addr_t *lp_prom_addr;
144 /* handle of the underlying HW RX group */
145 mac_group_handle_t lp_hwgh;
146 int lp_tx_ring_cnt;
147 /* handles of the underlying HW TX rings */
148 mac_ring_handle_t *lp_tx_rings;
149 /*
150 * Handles of the pseudo TX rings. Each of them maps to
151 * corresponding hardware TX ring in lp_tx_rings[]. A
152 * pseudo TX ring is presented to aggr primary mac
153 * client even when underlying NIC has no TX ring.
154 */
155 mac_ring_handle_t *lp_pseudo_tx_rings;
156 void *lp_tx_notify_mh;
157 } aggr_port_t;
158
159 /*
160 * A link aggregation group.
161 *
162 * The following per-group flags are defined:
163 *
164 * - lg_addr_fixed: set when the MAC address has been explicitely set
165 * when the group was created, or by a m_unicst_set() request.
172 * MAC address was initialized.
173 *
174 */
175 typedef struct aggr_grp_s {
176 datalink_id_t lg_linkid;
177 uint16_t lg_key; /* key (group port number) */
178 uint32_t lg_refs; /* refcount */
179 uint16_t lg_nports; /* number of MAC ports */
180 uint8_t lg_addr[ETHERADDRL]; /* group MAC address */
181 uint16_t
182 lg_closing : 1,
183 lg_addr_fixed : 1, /* fixed MAC address? */
184 lg_started : 1, /* group started? */
185 lg_promisc : 1, /* in promiscuous mode? */
186 lg_zcopy : 1,
187 lg_vlan : 1,
188 lg_force : 1,
189 lg_lso : 1,
190 lg_pad_bits : 8;
191 aggr_port_t *lg_ports; /* list of configured ports */
192 aggr_port_t *lg_mac_addr_port;
193 mac_handle_t lg_mh;
194 zoneid_t lg_zoneid;
195 uint_t lg_nattached_ports;
196 krwlock_t lg_tx_lock;
197 uint_t lg_ntx_ports;
198 aggr_port_t **lg_tx_ports; /* array of tx ports */
199 uint_t lg_tx_ports_size; /* size of lg_tx_ports */
200 uint32_t lg_tx_policy; /* outbound policy */
201 uint8_t lg_mac_tx_policy;
202 link_state_t lg_link_state;
203
204
205 /*
206 * The lg_stat_lock must be held when accessing these fields.
207 */
208 kmutex_t lg_stat_lock;
209 uint64_t lg_ifspeed;
210 link_duplex_t lg_link_duplex;
211 uint64_t lg_stat[MAC_NSTAT];
212 uint64_t lg_ether_stat[ETHER_NSTAT];
216 uint32_t lg_hcksum_txflags;
217 uint_t lg_max_sdu;
218 uint32_t lg_margin;
219 mac_capab_lso_t lg_cap_lso;
220
221 /*
222 * The following fields are used by the LACP packets processing.
223 * Specifically, as the LACP packets processing is not performance
224 * critical, all LACP packets will be handled by a dedicated thread
225 * instead of in the mac_rx() call. This is to avoid the dead lock
226 * with mac_unicast_remove(), which holding the mac perimeter of the
227 * aggr, and wait for the mr_refcnt of the RX ring to drop to zero.
228 */
229 kmutex_t lg_lacp_lock;
230 kcondvar_t lg_lacp_cv;
231 mblk_t *lg_lacp_head;
232 mblk_t *lg_lacp_tail;
233 kthread_t *lg_lacp_rx_thread;
234 boolean_t lg_lacp_done;
235
236 aggr_pseudo_rx_group_t lg_rx_group;
237 aggr_pseudo_tx_group_t lg_tx_group;
238
239 kmutex_t lg_tx_flowctl_lock;
240 kcondvar_t lg_tx_flowctl_cv;
241 uint_t lg_tx_blocked_cnt;
242 mac_ring_handle_t *lg_tx_blocked_rings;
243 kthread_t *lg_tx_notify_thread;
244 boolean_t lg_tx_notify_done;
245
246 /*
247 * The following fields are used by aggr to wait for all the
248 * aggr_port_notify_cb() and aggr_port_timer_thread() to finish
249 * before it calls mac_unregister() when the aggr is deleted.
250 */
251 kmutex_t lg_port_lock;
252 kcondvar_t lg_port_cv;
253 int lg_port_ref;
254 } aggr_grp_t;
255
256 #define AGGR_GRP_REFHOLD(grp) { \
311 extern void aggr_grp_multicst_port(aggr_port_t *, boolean_t);
312 extern uint_t aggr_grp_count(void);
313 extern void aggr_grp_update_default(aggr_grp_t *);
314
315 extern void aggr_port_init(void);
316 extern void aggr_port_fini(void);
317 extern int aggr_port_create(aggr_grp_t *, const datalink_id_t, boolean_t,
318 aggr_port_t **);
319 extern void aggr_port_delete(aggr_port_t *);
320 extern void aggr_port_free(aggr_port_t *);
321 extern int aggr_port_start(aggr_port_t *);
322 extern void aggr_port_stop(aggr_port_t *);
323 extern int aggr_port_promisc(aggr_port_t *, boolean_t);
324 extern int aggr_port_unicst(aggr_port_t *);
325 extern int aggr_port_multicst(void *, boolean_t, const uint8_t *);
326 extern uint64_t aggr_port_stat(aggr_port_t *, uint_t);
327 extern boolean_t aggr_port_notify_link(aggr_grp_t *, aggr_port_t *);
328 extern void aggr_port_init_callbacks(aggr_port_t *);
329
330 extern void aggr_recv_cb(void *, mac_resource_handle_t, mblk_t *, boolean_t);
331 extern void aggr_recv_promisc_cb(void *, mac_resource_handle_t, mblk_t *,
332 boolean_t);
333
334 extern void aggr_tx_ring_update(void *, uintptr_t);
335 extern void aggr_tx_notify_thread(void *);
336 extern void aggr_send_port_enable(aggr_port_t *);
337 extern void aggr_send_port_disable(aggr_port_t *);
338 extern void aggr_send_update_policy(aggr_grp_t *, uint32_t);
339
340 extern void aggr_lacp_init(void);
341 extern void aggr_lacp_fini(void);
342 extern void aggr_lacp_init_port(aggr_port_t *);
343 extern void aggr_lacp_init_grp(aggr_grp_t *);
344 extern void aggr_lacp_set_mode(aggr_grp_t *, aggr_lacp_mode_t,
345 aggr_lacp_timer_t);
346 extern void aggr_lacp_update_mode(aggr_grp_t *, aggr_lacp_mode_t);
347 extern void aggr_lacp_update_timer(aggr_grp_t *, aggr_lacp_timer_t);
348 extern void aggr_lacp_rx_enqueue(aggr_port_t *, mblk_t *);
349 extern void aggr_lacp_port_attached(aggr_port_t *);
350 extern void aggr_lacp_port_detached(aggr_port_t *);
351 extern void aggr_port_lacp_set_mode(aggr_grp_t *, aggr_port_t *);
352
353 extern void aggr_lacp_rx_thread(void *);
354 extern void aggr_recv_lacp(aggr_port_t *, mac_resource_handle_t, mblk_t *);
355
356 extern void aggr_grp_port_hold(aggr_port_t *);
357 extern void aggr_grp_port_rele(aggr_port_t *);
358 extern void aggr_grp_port_wait(aggr_grp_t *);
359
360 extern int aggr_port_addmac(aggr_port_t *, const uint8_t *);
361 extern void aggr_port_remmac(aggr_port_t *, const uint8_t *);
362
363 extern int aggr_port_addvlan(aggr_port_t *, uint16_t);
364 extern int aggr_port_remvlan(aggr_port_t *, uint16_t);
365
366 extern mblk_t *aggr_ring_tx(void *, mblk_t *);
367 extern mblk_t *aggr_find_tx_ring(void *, mblk_t *,
368 uintptr_t, mac_ring_handle_t *);
369
370 #endif /* _KERNEL */
371
372 #ifdef __cplusplus
373 }
374 #endif
375
376 #endif /* _SYS_AGGR_IMPL_H */
|
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 #ifdef _KERNEL
44
45 #define AGGR_MINOR_CTL 1 /* control interface minor */
46
47 /* flags for aggr_grp_modify() */
48 #define AGGR_MODIFY_POLICY 0x01
49 #define AGGR_MODIFY_MAC 0x02
50 #define AGGR_MODIFY_LACP_MODE 0x04
51 #define AGGR_MODIFY_LACP_TIMER 0x08
52
53 /*
54 * Possible value of aggr_rseudo_rx_ring_t.arr_flags. Set when the ring entry
55 * in the pseudo RX group is used.
56 */
57 #define MAC_PSEUDO_RING_INUSE 0x01
58
59 #define MAX_GROUPS_PER_PORT 128
60
61 /*
62 * VLAN filters placed on the Rx pseudo group.
63 */
64 typedef struct aggr_vlan {
65 list_node_t av_link;
66 uint16_t av_vid; /* VLAN ID */
67 uint_t av_refs; /* num aggr clients using this VID */
68 } aggr_vlan_t;
69
70 typedef struct aggr_unicst_addr_s {
71 uint8_t aua_addr[ETHERADDRL];
72 struct aggr_unicst_addr_s *aua_next;
73 } aggr_unicst_addr_t;
74
75 typedef struct aggr_pseudo_rx_ring_s {
76 mac_ring_handle_t arr_rh; /* set by aggr_fill_ring() */
77 struct aggr_port_s *arr_port;
78 struct aggr_pseudo_rx_group_s *arr_grp;
79 mac_ring_handle_t arr_hw_rh;
80 uint_t arr_flags;
81 uint64_t arr_gen;
82 } aggr_pseudo_rx_ring_t;
83
84 /*
85 * An aggr pseudo group abstracts the underlying ports' HW groups. For
86 * example, if each port has 8 groups (mac_group_t), then the aggr
87 * will create 8 pseudo groups. Each pseudo group represents a
88 * collection of HW groups: one group from each port. If you have
89 * three ports then the pseudo group stands in for three HW groups.
90 */
91 typedef struct aggr_pseudo_rx_group_s {
92 uint_t arg_index;
93 struct aggr_grp_s *arg_grp; /* filled in by aggr_fill_group() */
94 mac_group_handle_t arg_gh; /* filled in by aggr_fill_group() */
95 aggr_unicst_addr_t *arg_macaddr;
96 aggr_pseudo_rx_ring_t arg_rings[MAX_RINGS_PER_GROUP];
97 uint_t arg_ring_cnt;
98 uint_t arg_untagged; /* num clients untagged */
99 list_t arg_vlans; /* VLANs on this group */
100 } aggr_pseudo_rx_group_t;
101
102 typedef struct aggr_pseudo_tx_ring_s {
103 mac_ring_handle_t atr_rh; /* filled in by aggr_fill_ring() */
104 struct aggr_port_s *atr_port;
105 mac_ring_handle_t atr_hw_rh;
106 uint_t atr_flags;
107 } aggr_pseudo_tx_ring_t;
108
109 typedef struct aggr_pseudo_tx_group_s {
110 mac_group_handle_t atg_gh; /* filled in by aggr_fill_group() */
111 uint_t atg_ring_cnt;
112 aggr_pseudo_tx_ring_t atg_rings[MAX_RINGS_PER_GROUP];
113 } aggr_pseudo_tx_group_t;
114
115 /*
116 * A link aggregation MAC port.
117 * Note that lp_next is protected by the lg_lock of the group the
118 * port is part of.
119 */
120 typedef struct aggr_port_s {
121 struct aggr_port_s *lp_next;
122 struct aggr_grp_s *lp_grp; /* back ptr to group */
123 datalink_id_t lp_linkid;
124 uint16_t lp_portid;
125 uint8_t lp_addr[ETHERADDRL]; /* port MAC address */
126 uint32_t lp_refs; /* refcount */
127 aggr_port_state_t lp_state;
128 uint32_t lp_started : 1,
129 lp_tx_enabled : 1,
130 lp_collector_enabled : 1,
131 lp_promisc_on : 1,
132 lp_no_link_update : 1,
133 lp_tx_grp_added : 1,
134 lp_closing : 1,
135 lp_pad_bits : 25;
136 mac_handle_t lp_mh;
137
138 mac_client_handle_t lp_mch;
139
140 const mac_info_t *lp_mip;
141 mac_notify_handle_t lp_mnh;
142 uint_t lp_tx_idx; /* idx in group's tx array */
143 uint64_t lp_ifspeed;
144 link_state_t lp_link_state;
145 link_duplex_t lp_link_duplex;
146 uint64_t lp_stat[MAC_NSTAT];
147 uint64_t lp_ether_stat[ETHER_NSTAT];
148 aggr_lacp_port_t lp_lacp; /* LACP state */
149 lacp_stats_t lp_lacp_stats;
150 uint32_t lp_margin;
151
152 mac_unicast_handle_t lp_mah;
153
154 /* List of non-primary addresses that requires promiscous mode set */
155 aggr_unicst_addr_t *lp_prom_addr;
156
157 /*
158 * References to the underlying HW Rx groups of this port.
159 * Used by aggr to program HW classification for the pseudo
160 * groups.
161 */
162 mac_group_handle_t lp_hwghs[MAX_GROUPS_PER_PORT];
163
164 int lp_tx_ring_cnt;
165 /* handles of the underlying HW TX rings */
166 mac_ring_handle_t *lp_tx_rings;
167 /*
168 * Handles of the pseudo TX rings. Each of them maps to
169 * corresponding hardware TX ring in lp_tx_rings[]. A
170 * pseudo TX ring is presented to aggr primary mac
171 * client even when underlying NIC has no TX ring.
172 */
173 mac_ring_handle_t *lp_pseudo_tx_rings;
174 void *lp_tx_notify_mh;
175 } aggr_port_t;
176
177 /*
178 * A link aggregation group.
179 *
180 * The following per-group flags are defined:
181 *
182 * - lg_addr_fixed: set when the MAC address has been explicitely set
183 * when the group was created, or by a m_unicst_set() request.
190 * MAC address was initialized.
191 *
192 */
193 typedef struct aggr_grp_s {
194 datalink_id_t lg_linkid;
195 uint16_t lg_key; /* key (group port number) */
196 uint32_t lg_refs; /* refcount */
197 uint16_t lg_nports; /* number of MAC ports */
198 uint8_t lg_addr[ETHERADDRL]; /* group MAC address */
199 uint16_t
200 lg_closing : 1,
201 lg_addr_fixed : 1, /* fixed MAC address? */
202 lg_started : 1, /* group started? */
203 lg_promisc : 1, /* in promiscuous mode? */
204 lg_zcopy : 1,
205 lg_vlan : 1,
206 lg_force : 1,
207 lg_lso : 1,
208 lg_pad_bits : 8;
209 aggr_port_t *lg_ports; /* list of configured ports */
210 aggr_port_t *lg_mac_addr_port; /* using address of this port */
211 mac_handle_t lg_mh;
212 zoneid_t lg_zoneid;
213 uint_t lg_nattached_ports;
214 krwlock_t lg_tx_lock;
215 uint_t lg_ntx_ports;
216 aggr_port_t **lg_tx_ports; /* array of tx ports */
217 uint_t lg_tx_ports_size; /* size of lg_tx_ports */
218 uint32_t lg_tx_policy; /* outbound policy */
219 uint8_t lg_mac_tx_policy;
220 link_state_t lg_link_state;
221
222
223 /*
224 * The lg_stat_lock must be held when accessing these fields.
225 */
226 kmutex_t lg_stat_lock;
227 uint64_t lg_ifspeed;
228 link_duplex_t lg_link_duplex;
229 uint64_t lg_stat[MAC_NSTAT];
230 uint64_t lg_ether_stat[ETHER_NSTAT];
234 uint32_t lg_hcksum_txflags;
235 uint_t lg_max_sdu;
236 uint32_t lg_margin;
237 mac_capab_lso_t lg_cap_lso;
238
239 /*
240 * The following fields are used by the LACP packets processing.
241 * Specifically, as the LACP packets processing is not performance
242 * critical, all LACP packets will be handled by a dedicated thread
243 * instead of in the mac_rx() call. This is to avoid the dead lock
244 * with mac_unicast_remove(), which holding the mac perimeter of the
245 * aggr, and wait for the mr_refcnt of the RX ring to drop to zero.
246 */
247 kmutex_t lg_lacp_lock;
248 kcondvar_t lg_lacp_cv;
249 mblk_t *lg_lacp_head;
250 mblk_t *lg_lacp_tail;
251 kthread_t *lg_lacp_rx_thread;
252 boolean_t lg_lacp_done;
253
254 uint_t lg_rx_group_count;
255 aggr_pseudo_rx_group_t lg_rx_groups[MAX_GROUPS_PER_PORT];
256
257 aggr_pseudo_tx_group_t lg_tx_group;
258
259 kmutex_t lg_tx_flowctl_lock;
260 kcondvar_t lg_tx_flowctl_cv;
261 uint_t lg_tx_blocked_cnt;
262 mac_ring_handle_t *lg_tx_blocked_rings;
263 kthread_t *lg_tx_notify_thread;
264 boolean_t lg_tx_notify_done;
265
266 /*
267 * The following fields are used by aggr to wait for all the
268 * aggr_port_notify_cb() and aggr_port_timer_thread() to finish
269 * before it calls mac_unregister() when the aggr is deleted.
270 */
271 kmutex_t lg_port_lock;
272 kcondvar_t lg_port_cv;
273 int lg_port_ref;
274 } aggr_grp_t;
275
276 #define AGGR_GRP_REFHOLD(grp) { \
331 extern void aggr_grp_multicst_port(aggr_port_t *, boolean_t);
332 extern uint_t aggr_grp_count(void);
333 extern void aggr_grp_update_default(aggr_grp_t *);
334
335 extern void aggr_port_init(void);
336 extern void aggr_port_fini(void);
337 extern int aggr_port_create(aggr_grp_t *, const datalink_id_t, boolean_t,
338 aggr_port_t **);
339 extern void aggr_port_delete(aggr_port_t *);
340 extern void aggr_port_free(aggr_port_t *);
341 extern int aggr_port_start(aggr_port_t *);
342 extern void aggr_port_stop(aggr_port_t *);
343 extern int aggr_port_promisc(aggr_port_t *, boolean_t);
344 extern int aggr_port_unicst(aggr_port_t *);
345 extern int aggr_port_multicst(void *, boolean_t, const uint8_t *);
346 extern uint64_t aggr_port_stat(aggr_port_t *, uint_t);
347 extern boolean_t aggr_port_notify_link(aggr_grp_t *, aggr_port_t *);
348 extern void aggr_port_init_callbacks(aggr_port_t *);
349
350 extern void aggr_recv_cb(void *, mac_resource_handle_t, mblk_t *, boolean_t);
351
352 extern void aggr_tx_ring_update(void *, uintptr_t);
353 extern void aggr_tx_notify_thread(void *);
354 extern void aggr_send_port_enable(aggr_port_t *);
355 extern void aggr_send_port_disable(aggr_port_t *);
356 extern void aggr_send_update_policy(aggr_grp_t *, uint32_t);
357
358 extern void aggr_lacp_init(void);
359 extern void aggr_lacp_fini(void);
360 extern void aggr_lacp_init_port(aggr_port_t *);
361 extern void aggr_lacp_init_grp(aggr_grp_t *);
362 extern void aggr_lacp_set_mode(aggr_grp_t *, aggr_lacp_mode_t,
363 aggr_lacp_timer_t);
364 extern void aggr_lacp_update_mode(aggr_grp_t *, aggr_lacp_mode_t);
365 extern void aggr_lacp_update_timer(aggr_grp_t *, aggr_lacp_timer_t);
366 extern void aggr_lacp_rx_enqueue(aggr_port_t *, mblk_t *);
367 extern void aggr_lacp_port_attached(aggr_port_t *);
368 extern void aggr_lacp_port_detached(aggr_port_t *);
369 extern void aggr_port_lacp_set_mode(aggr_grp_t *, aggr_port_t *);
370
371 extern void aggr_lacp_rx_thread(void *);
372 extern void aggr_recv_lacp(aggr_port_t *, mac_resource_handle_t, mblk_t *);
373
374 extern void aggr_grp_port_hold(aggr_port_t *);
375 extern void aggr_grp_port_rele(aggr_port_t *);
376 extern void aggr_grp_port_wait(aggr_grp_t *);
377
378 extern int aggr_port_addmac(aggr_port_t *, uint_t, const uint8_t *);
379 extern void aggr_port_remmac(aggr_port_t *, uint_t, const uint8_t *);
380
381 extern int aggr_port_addvlan(aggr_port_t *, uint_t, uint16_t);
382 extern int aggr_port_remvlan(aggr_port_t *, uint_t, uint16_t);
383
384 extern mblk_t *aggr_ring_tx(void *, mblk_t *);
385 extern mblk_t *aggr_find_tx_ring(void *, mblk_t *,
386 uintptr_t, mac_ring_handle_t *);
387
388 #endif /* _KERNEL */
389
390 #ifdef __cplusplus
391 }
392 #endif
393
394 #endif /* _SYS_AGGR_IMPL_H */
|