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

hash.c (635B)


      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  * Hash structure initializers
      8  */
      9 
     10 
     11 #include <sal/core/libc.h>
     12 #include <bcm/hash.h>
     13 
     14 /*
     15  * Function:
     16  *      bcm_hash_flex_bin_config_t_init
     17  * Purpose:
     18  *      Initialize hash flex bin config struct
     19  * Parameters:
     20  *      cfg - Pointer to the struct to be init'ed
     21  */
     22 void
     23 bcm_hash_flex_bin_config_t_init(bcm_hash_flex_bin_config_t *cfg)
     24 {
     25     if (cfg != NULL) {
     26         sal_memset(cfg, 0, sizeof(*cfg));
     27     }
     28     return;
     29 }