bfd_feature.h (2572B)
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-2020 Broadcom Inc. All rights reserved. 6 * 7 * File: bfd_feature.h 8 */ 9 10 #ifndef BFD_FEATURE_H_ 11 #define BFD_FEATURE_H_ 12 13 14 /*Bit 1 : BFD 64bit packet statistics*/ 15 #define BFD_SDK_BASE_VERSION 0x01000001 16 #define BFD_SDK_VERSION BFD_SDK_BASE_VERSION | \ 17 (1 << BFD_FEATURE_POLL_BIT) | \ 18 (1 << BFD_FEATURE_PUNT_MODE) | \ 19 (1 << BFD_FEATURE_PUNT_BUFFERS) | \ 20 (1 << BFD_FEATURE_INIT_CONFIG_FLAGS) | \ 21 (1 << BFD_FEATURE_SSO_UPDATE) | \ 22 (1 << BFD_FEATURE_DBG_TRACE) | \ 23 (1 << BFD_FEATURE_PROTECTION_PKT) | \ 24 (1 << BFD_FEATURE_ECHO_MODE) | \ 25 (1 << BFD_FEATURE_ECHO_REPLY_PACKETS) | \ 26 (1 << BFD_FEATURE_TX_RAW_INGRESS) 27 28 #define BFD_UC_MIN_VERSION 0x01000200 29 30 /* Indicates the feature supported : Same bit has to be used in SDK and UKERNEL 31 * 0 , 9 and 24th bit cannot be used as they are set in base version string 32 * BFD_SDK_VERSION : 0x01000001 BFD_APPL_VERSION : 0x01000200*/ 33 34 #define BFD_FEATURE_RESERVED1 0 35 #define BFD_FEATURE_RESERVED2 9 36 #define BFD_FEATURE_RESERVED3 24 37 #define BFD_FEATURE_64BIT_STAT 1 38 #define BFD_FEATURE_POLL_BIT 2 39 #define BFD_FEATURE_ECHO_MODE 3 40 #define BFD_FEATURE_REMOTE_MEP_ID 4 41 #define BFD_FEATURE_RX_PKT_VLAN_ID 5 42 /* 43 * Below feature also introduced msg_init.config_flags 44 * which could be used for configuring multiple 45 * init time flags on BFD firmware. This is useful 46 * for conveying config properties on the SDK side. 47 */ 48 #define BFD_FEATURE_INIT_CONFIG_FLAGS 6 49 #define BFD_FEATURE_PUNT_MODE 7 50 /* Indicates the feature of allocating number of 51 * punt pkt buffers based on msg_init.num_punt_buffers. 52 */ 53 #define BFD_FEATURE_PUNT_BUFFERS 8 54 55 /* Stateful switchover support */ 56 #define BFD_FEATURE_SSO_UPDATE 10 57 58 /* Debug trace enable */ 59 #define BFD_FEATURE_DBG_TRACE 11 60 61 /* Protection Packet Feature */ 62 #define BFD_FEATURE_PROTECTION_PKT 12 63 64 /* Echo reply processed packets */ 65 #define BFD_FEATURE_ECHO_REPLY_PACKETS 13 66 67 /* BFD TX Raw ingress */ 68 #define BFD_FEATURE_TX_RAW_INGRESS 15 69 70 /*Macro for BFD feature check*/ 71 #define BFD_UC_FEATURE_CHECK(feature) (bfd_firmware_version & (1 << feature)) 72 73 #endif /* BFD_FEAT_H_ */ 74