Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.4.4.5
openapi_lag.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2018 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_lag.h
28 *
29 * @purpose LAG Configuration and Status
30 *
31 * @component OPEN
32 *
33 * @create 10/10/2012
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_LAG_H_INCLUDED
39 #define OPENAPI_LAG_H_INCLUDED
40 
41 #include <stdio.h>
42 #include <stddef.h>
43 #include <sys/un.h>
44 
45 #include "openapi_common.h"
46 
48 typedef enum
49 {
58 
60 typedef enum
61 {
66 
67 #define OPEN_MAX_MEMBERS_PER_LAG 32
68 #define OPEN_LAG_MEMBER_BUFFER_SIZE (sizeof(uint32_t) * OPEN_MAX_MEMBERS_PER_LAG)
69 
70 /*****************************************************************/
87  uint32_t lagIfNum,
88  uint32_t phyIfNum);
89 
90 /*****************************************************************/
105  uint32_t lagIfNum,
106  uint32_t phyIfNum);
107 
108 /*****************************************************************/
124  uint32_t lagIfNum,
125  OPEN_CONTROL_t *staticMode);
126 
127 /*****************************************************************/
148  uint32_t lagIfNum,
149  OPEN_CONTROL_t staticMode);
150 
151 /*****************************************************************/
164  uint32_t *maxLen);
165 
166 /***********************************************************************/
184  uint32_t lagIfNum,
185  open_buffdesc *name);
186 
187 /***********************************************************************/
206  uint32_t lagIfNum,
207  open_buffdesc *name);
208 
209 /****************************************************************************/
224  uint32_t lagIfNum,
225  OPEN_LAG_HASH_MODE_t *lbMode);
226 
227 /****************************************************************************/
244  uint32_t lagIfNum,
245  OPEN_LAG_HASH_MODE_t lbMode);
246 
247 /*****************************************************************/
263  uint32_t *minThreshold,
264  uint32_t *maxThreshold);
265 
266 /****************************************************************************/
283  uint32_t lagIfNum,
284  uint32_t *minUpLinks);
285 
286 /****************************************************************************/
306  uint32_t lagIfNum,
307  uint32_t minUpLinks);
308 
309 /*****************************************************************/
324  uint32_t *memberMax);
325 
326 /****************************************************************************/
348  uint32_t lagIfNum,
349  uint32_t *count,
350  open_buffdesc *bufd);
351 
352 /****************************************************************************/
374  uint32_t lagIfNum,
375  uint32_t *count,
376  open_buffdesc *bufd);
377 
378 /****************************************************************************/
400  uint32_t lagIfNum,
401  uint32_t *count,
402  open_buffdesc *bufd);
403 
404 /****************************************************************************/
426  uint32_t lagIfNum,
427  uint32_t *count,
428  open_buffdesc *bufd);
429 
430 /****************************************************************************/
445  uint32_t ifNum,
446  OPEN_CONTROL_t *lacpMode);
447 
448 /****************************************************************************/
463  uint32_t ifNum,
464  OPEN_CONTROL_t lacpMode);
465 
466 /****************************************************************************/
482  uint32_t ifNum,
484  OPEN_CONTROL_t *state);
485 
486 /****************************************************************************/
502  uint32_t ifNum,
504  OPEN_CONTROL_t mode);
505 
506 #endif
507