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

trill.c (1396B)


      1 /*
      2  * 
      3  *
      4  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5  * 
      6  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      7  */
      8 /*
      9  * TRILL initializers
     10  */
     11 
     12 #if defined(INCLUDE_L3)
     13 
     14 #include <sal/core/libc.h>
     15  
     16 #include <bcm/trill.h>
     17 #include <bcm/stat.h>
     18 
     19 /* 
     20  * Function:
     21  *      bcm_trill_port_t_init
     22  * Purpose:
     23  *      Initialize TRILL  port struct
     24  * Parameters: 
     25  *      trill_port - Pointer to the struct to be init'ed
     26  */
     27 void
     28 bcm_trill_port_t_init(bcm_trill_port_t *trill_port)
     29 {   
     30     if (trill_port != NULL) {
     31         sal_memset(trill_port, 0, sizeof(*trill_port));
     32         trill_port->inlif_counting_profile = BCM_STAT_LIF_COUNTING_PROFILE_NONE;
     33         trill_port->outlif_counting_profile = BCM_STAT_LIF_COUNTING_PROFILE_NONE;
     34     }
     35     return;
     36 }
     37 
     38 void bcm_trill_multicast_entry_t_init(
     39     bcm_trill_multicast_entry_t *trill_multicast_entry)
     40 {
     41     if (trill_multicast_entry != NULL) {
     42         sal_memset(trill_multicast_entry, 0, sizeof(*trill_multicast_entry));
     43     }
     44     return;
     45 }
     46 /* Initialize the TRILL VPN config structure. */
     47 void bcm_trill_vpn_config_t_init(
     48     bcm_trill_vpn_config_t *trill_vpn_config)
     49 {
     50     if (trill_vpn_config != NULL) {
     51         sal_memset(trill_vpn_config, 0, sizeof(*trill_vpn_config));
     52     }
     53     return;
     54 
     55 }
     56 #else
     57 int _bcm_trill_not_empty;
     58 #endif  /* INCLUDE_L3 */