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

srv6.c (1638B)


      1 /****************************************************************************
      2  *
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  *
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  */
      8 
      9 #include <soc/drv.h>
     10 #include <bcm/instru.h>
     11 #include <bcm/init.h>
     12 #include <bcm/error.h>
     13 #include <bcm_int/common/debug.h>
     14 #include <bcm_int/control.h>
     15 
     16 
     17 /*
     18  * Function:
     19  *      bcm_srv6_sid_initiator_info_t_init
     20  * Purpose:
     21  *      Initialize a SID initiator struct
     22  * Parameters:
     23  *      intf - pointer to the SID initiator struct
     24  * Returns:
     25  *      NONE
     26  */
     27 
     28 extern void
     29 bcm_srv6_sid_initiator_info_t_init(bcm_srv6_sid_initiator_info_t *info)
     30 {
     31     if (info != NULL) {
     32         sal_memset(info, 0, sizeof (*info));
     33     }
     34 }
     35 
     36 /*
     37  * Function:
     38  *      bcm_srv6_srh_base_initiator_info_t_init
     39  * Purpose:
     40  *      Initialize a SID initiator struct
     41  * Parameters:
     42  *      intf - pointer to the SID initiator struct
     43  * Returns:
     44  *      NONE
     45  */
     46 
     47 extern void
     48 bcm_srv6_srh_base_initiator_info_t_init(bcm_srv6_srh_base_initiator_info_t *info)
     49 {
     50     if (info != NULL) {
     51         sal_memset(info, 0, sizeof (*info));
     52     }
     53 }
     54 
     55 
     56 /*
     57  * Function:
     58  *      bcm_srv6_terminator_next_protocol_mapping_t_init
     59  * Purpose:
     60  *      Initialize an SRv6 next protocol mapping struct
     61  * Parameters:
     62  *      intf - pointer to the next protocol mapping struct
     63  * Returns:
     64  *      NONE
     65  */
     66 
     67 extern void
     68 bcm_srv6_terminator_next_protocol_mapping_t_init(bcm_srv6_terminator_next_protocol_mapping_t *info)
     69 {
     70     if (info != NULL) {
     71         sal_memset(info, 0, sizeof (*info));
     72     }
     73 }