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

instru_ipt.h (3191B)


      1 /**
      2  * \file bcm_int/dnx/instru/instru_ipt.h
      3  * Internal DNX INSTRU APIs
      4  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5  * 
      6  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      7  */
      8 
      9 #ifndef INSTRU_IPT_H_INCLUDED
     10 /*
     11  * {
     12  */
     13 #define INSTRU_IPT_H_INCLUDED
     14 
     15 #ifndef BCM_DNX_SUPPORT
     16 #error "This file is for use by DNX (JR2) family only!"
     17 #endif
     18 
     19 /*
     20  * Include files.
     21  * {
     22  */
     23 #include <bcm/types.h>
     24 /*
     25  * }
     26  */
     27 
     28 /*
     29  * DEFINES
     30  * {
     31  */
     32 
     33 /*
     34  * }
     35  */
     36 
     37 /*
     38   * Internal functions.
     39   * {
     40   */
     41 
     42 /**
     43  * \brief - Set Node ID for IPT.
     44  *
     45  * \param [in] unit - unit id.
     46  * \param [in] node_id - IPT node ID
     47  *
     48  * \return
     49  *   shr_error_e
     50  */
     51 shr_error_e dnx_instru_ipt_node_id_set(
     52     int unit,
     53     int node_id);
     54 
     55 /**
     56  * \brief - Get Node ID for IPT.
     57  *
     58  * \param [in] unit - unit id.
     59  * \param [out] node_id - IPT node ID
     60  *
     61  * \return
     62  *   shr_error_e
     63  */
     64 shr_error_e dnx_instru_ipt_node_id_get(
     65     int unit,
     66     int *node_id);
     67 
     68 /**
     69  * \brief -
     70  * Init procedure for intru ipt module
     71  *
     72  * \param [in] unit -  Unit-ID
     73  * \return
     74  *   See shr_error_e
     75  * \remark
     76  *   * None
     77  * \see
     78  *   * None
     79  */
     80 shr_error_e dnx_instru_ipt_init(
     81     int unit);
     82 
     83 /**
     84  * \brief - Enable/disable ETPP trapping to recycle interface IPT packets which are destined to gport (egress port).
     85  *
     86  * \param [in] unit -  Unit-ID
     87  * \param [in] flags -  flags
     88  * \param [in] gport -  destination port gport
     89  * \param [in] arg -  1 enable, 0 disable
     90  *
     91  * \return
     92  *   See shr_error_e
     93  * \remark
     94  *   * None
     95  * \see
     96  *   * None
     97  */
     98 shr_error_e dnx_instru_ipt_trap_to_rcy_set(
     99     int unit,
    100     uint32 flags,
    101     bcm_gport_t gport,
    102     int arg);
    103 
    104 /**
    105  * \brief - Get whether ETPP trapping to recycle interface of IPT packets is Enabled/disable for gport (egress port).
    106  *
    107  * \param [in] unit -  Unit-ID
    108  * \param [in] flags -  flags
    109  * \param [in] gport -  destination port gport
    110  * \param [in] arg -  1 enable, 0 disable
    111  *
    112  * \return
    113  *   See shr_error_e
    114  * \remark
    115  *   * None
    116  * \see
    117  *   * None
    118  */
    119 shr_error_e dnx_instru_ipt_trap_to_rcy_get(
    120     int unit,
    121     uint32 flags,
    122     bcm_gport_t gport,
    123     int *arg);
    124 
    125 /**
    126  * \brief - Enable/disable ETPP trapping to recycle interface with PTCH-1 of IFA packets which are destined to gport (egress port).
    127  *
    128  * \param [in] unit -  Unit-ID
    129  * \param [in] flags -  flags
    130  * \param [in] gport -  destination port gport
    131  * \param [in] arg -  1 enable, 0 disable
    132  *
    133  * \return
    134  *   See shr_error_e
    135  * \remark
    136  *   * None
    137  * \see
    138  *   * None
    139  */
    140 shr_error_e dnx_instru_ifa_initiator_rcy_set(
    141     int unit,
    142     uint32 flags,
    143     bcm_gport_t gport,
    144     int arg);
    145 
    146 /**
    147  * \brief - Get whether ETPP trapping to recycle interface with PTCH-1 of IFA packets is Enabled/disable for gport (egress port).
    148  *
    149  * \param [in] unit -  Unit-ID
    150  * \param [in] flags -  flags
    151  * \param [in] gport -  destination port gport
    152  * \param [in] arg -  1 enable, 0 disable
    153  *
    154  * \return
    155  *   See shr_error_e
    156  * \remark
    157  *   * None
    158  * \see
    159  *   * None
    160  */
    161 shr_error_e dnx_instru_ifa_initiator_rcy_get(
    162     int unit,
    163     uint32 flags,
    164     bcm_gport_t gport,
    165     int *arg);
    166 
    167 /*
    168  * }
    169  */
    170 #endif /* INSTRU_IPT_H_INCLUDED */