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

fcoe.c (2838B)


      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  * All Rights Reserved.$
      7  *
      8  * extender structure initializers
      9  */
     10 #include <sal/core/libc.h>
     11  
     12 #include <bcm/stat.h>
     13 #include <bcm/fcoe.h>
     14 
     15 /* 
     16  * Function:
     17  *      bcm_fcoe_route_t_init
     18  * Purpose:
     19  *      Initialize the fcoe route struct
     20  * Parameters: 
     21  *      route - Pointer to the struct to be init'ed
     22  */
     23 void
     24 bcm_fcoe_route_t_init(bcm_fcoe_route_t *route)
     25 {   
     26     if (route != NULL) {
     27         sal_memset(route, 0, sizeof(*route));
     28     }
     29     return;
     30 }
     31 
     32 /* 
     33  * Function:
     34  *      bcm_fcoe_vsan_t_init
     35  * Purpose:
     36  *      Initialize the fcoe vsan struct
     37  * Parameters: 
     38  *      vsan - Pointer to the struct to be init'ed
     39  */
     40 void
     41 bcm_fcoe_vsan_t_init(bcm_fcoe_vsan_t *vsan)
     42 {   
     43     if (vsan != NULL) {
     44         sal_memset(vsan, 0, sizeof(*vsan));
     45     }
     46     return;
     47 }
     48 
     49 /* 
     50  * Function:
     51  *      bcm_fcoe_zone_entry_t_init
     52  * Purpose:
     53  *      Initialize the fcoe zone struct
     54  * Parameters: 
     55  *      zone - Pointer to the struct to be init'ed
     56  */
     57 void
     58 bcm_fcoe_zone_entry_t_init(bcm_fcoe_zone_entry_t *zone)
     59 {   
     60     if (zone != NULL) {
     61         sal_memset(zone, 0, sizeof(*zone));
     62     }
     63     return;
     64 }
     65 
     66 /* 
     67  * Function:
     68  *      bcm_fcoe_intf_config_t_init
     69  * Purpose:
     70  *      Initialize a bcm_fcoe_intf_config_t_init struct
     71  * Parameters: 
     72  *      intf - Pointer to the struct to be init'ed
     73  */
     74 void
     75 bcm_fcoe_intf_config_t_init(bcm_fcoe_intf_config_t *intf)
     76 {   
     77     if (intf != NULL) {
     78         sal_memset(intf, 0, sizeof *intf);
     79     }
     80     return;
     81 }
     82 
     83 /* 
     84  * Function:
     85  *      bcm_fcoe_vsan_vft_t_init
     86  * Purpose:
     87  *      Initialize a bcm_fcoe_vsan_vft_t struct
     88  * Parameters: 
     89  *      vft - Pointer to the struct to be init'ed
     90  */
     91 void
     92 bcm_fcoe_vsan_vft_t_init(bcm_fcoe_vsan_vft_t *vft)
     93 {   
     94     if (vft != NULL) {
     95         sal_memset(vft, 0, sizeof *vft);
     96     }
     97     return;
     98 }
     99 
    100 /* 
    101  * Function:
    102  *      bcm_fcoe_vsan_translate_key_config_t_init
    103  * Purpose:
    104  *      Initialize a bcm_fcoe_vsan_translate_key_config_t struct
    105  * Parameters: 
    106  *      key_config - Pointer to the struct to be init'ed
    107  */
    108 void
    109 bcm_fcoe_vsan_translate_key_config_t_init(bcm_fcoe_vsan_translate_key_config_t 
    110                                           *key_config)
    111 {   
    112     if (key_config != NULL) {
    113         sal_memset(key_config, 0, sizeof *key_config);
    114     }
    115     return;
    116 }
    117 
    118 /* 
    119  * Function:
    120  *      bcm_fcoe_vsan_action_set_t_init
    121  * Purpose:
    122  *      Initialize a fcoe_vsan_action_set_t struct
    123  * Parameters: 
    124  *      action_set - Pointer to the struct to be init'ed
    125  */
    126 void
    127 bcm_fcoe_vsan_action_set_t_init(bcm_fcoe_vsan_action_set_t *action_set)
    128 {   
    129     if (action_set != NULL) {
    130         sal_memset(action_set, 0, sizeof *action_set);
    131     }
    132     return;
    133 }