openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

compat_658.h (1328B)


      1 /*
      2  * $Id: compat_658.h,v 2.0 2017/03/23
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      6  *
      7  * RPC Compatibility with sdk-6.5.8 routines
      8  */
      9 
     10 #ifndef _COMPAT_658_H_
     11 #define _COMPAT_658_H_
     12 
     13 #ifdef	BCM_RPC_SUPPORT
     14 #include <bcm/types.h>
     15 #include <bcm/field.h>
     16 
     17 #if defined(INCLUDE_L3)
     18 #include <bcm/ecn.h>
     19 
     20 /* MPLS ECN Map Structure. */
     21 typedef struct bcm_compat658_ecn_map_s {
     22     uint32 action_flags;        /* action flags for ECN map. */
     23     int int_cn;                 /* Internal congestion. */
     24     uint8 inner_ecn;            /* IP ECN value in payload. */
     25     uint8 ecn;                  /* IP ECN value. */
     26     uint8 exp;                  /* Mpls EXP value. */
     27     uint8 new_ecn;              /* New ECN value. */
     28     uint8 new_exp;              /* New EXP value. */
     29 } bcm_compat658_ecn_map_t;
     30 
     31 /* Get ecn map entry */
     32 extern int bcm_compat658_ecn_map_get(int unit, int ecn_map_id,
     33                                      bcm_compat658_ecn_map_t *ecn_map);
     34 
     35 /* Set ecn map entry */
     36 extern int bcm_compat658_ecn_map_set(int unit, uint32 options, int ecn_map_id,
     37                                      bcm_compat658_ecn_map_t *ecn_map);
     38 #endif
     39 #endif
     40 #endif	/* !_COMPAT_658_H */