diag_dnx_sch.h (1546B)
1 /** \file diag_dnx_scheduler.h 2 * 3 * DNX TM scheduler diagnostics 4 */ 5 /* 6 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 7 * 8 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 9 */ 10 #ifndef DIAG_DNX_SCHEDULER_H_INCLUDED 11 /* 12 * { 13 */ 14 #define DIAG_DNX_SCHEDULER_H_INCLUDED 15 16 #ifndef BCM_DNX_SUPPORT 17 #error "This file is for use by DNX (JR2) family only!" 18 #endif 19 20 /** 21 * \brief - Return the actual credit rate of a given port HR 22 * 23 * \param [in] unit - Unit ID 24 * \param [in] core - Core ID 25 * \param [in] port_hr - Port HR for which we want to get the credit rate 26 * \param [out] credit_rate_kbps - Actual credit rate of the current port HR 27 * 28 * \return 29 * shr_error_e 30 * 31 * \remark 32 * * None 33 * \see 34 * * None 35 */ 36 int sh_dnx_scheduler_port_actual_credit_rate_get( 37 int unit, 38 int core, 39 int port_hr, 40 uint32 *credit_rate_kbps); 41 42 /** 43 * \brief - Return the actual FC status of a given port HR 44 * 45 * \param [in] unit - Unit ID 46 * \param [in] core - Core ID 47 * \param [in] port_hr - Port HR for which we want to get the FC status 48 * \param [out] fc_count - Number of FC indications received by the port HR 49 * \param [out] fc_percent - Percent of time that the HR is under FC 50 * 51 * \return 52 * shr_error_e 53 * 54 * \remark 55 * * None 56 * \see 57 * * None 58 */ 59 int sh_dnx_scheduler_port_current_fc_info_get( 60 int unit, 61 int core, 62 int port_hr, 63 uint32 *fc_count, 64 uint32 *fc_percent); 65 66 #endif /** DIAG_DNX_SCHEDULER_H_INCLUDED */