failover.h (1277B)
1 /* 2 * DO NOT EDIT THIS FILE! 3 * This file is auto-generated. 4 * Edits to this file will be lost when it is regenerated. 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 11 #ifndef BCMI_LTSW_FAILOVER_H 12 #define BCMI_LTSW_FAILOVER_H 13 14 #include <bcm/types.h> 15 16 #include <sal/sal_types.h> 17 18 /*! Fixed nexthop offset on. */ 19 #define BCMI_LTSW_FAILOVER_FIXED_NH_OFFSET_ON 0x80000000 20 21 /*! 22 * \brief Get PROT_NHOP_OFFSET field of LT TNL_CONTROL. 23 * 24 * \param [in] unit Unit Number. 25 * \param [out] prot_offset Protection NH offset. 26 * 27 * \retval SHR_E_NONE No errors. 28 * \retval !SHR_E_NONE Failure. 29 */ 30 extern int 31 bcmi_ltsw_failover_prot_offset_get( 32 int unit, 33 uint16_t *prot_offset); 34 35 /*! 36 * \brief Validate whether the protected NH intf can be the failover of specified primary NH intf. 37 * 38 * \param [in] unit Unit Number. 39 * \param [in] intf Primary NH interface. 40 * \param [in] failover_intf Protected NH interface. 41 * 42 * \retval SHR_E_NONE No errors. 43 * \retval !SHR_E_NONE Failure. 44 */ 45 extern int 46 bcmi_ltsw_failover_validate( 47 int unit, 48 bcm_if_t intf, 49 bcm_if_t failover_intf); 50 51 #endif /* BCMI_LTSW_FAILOVER_H */