From 2f3495bb20b62161410664dc5edc4d7c8c20e346 Mon Sep 17 00:00:00 2001 From: Parvez Shaikh Date: Fri, 6 Dec 2024 09:31:56 -0800 Subject: [PATCH] fix supported features Summary: as titled PORT_MTU_ERROR_TRAP is not supported for CHENAB SAI_USER_DEFINED_TRAP is supported for CHENAB Reviewed By: shri-khare Differential Revision: D66853272 Privacy Context Container: L1125642 fbshipit-source-id: fcde19855c0169b419018b3ff94d336921c6f613 --- fboss/agent/hw/switch_asics/ChenabAsic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fboss/agent/hw/switch_asics/ChenabAsic.cpp b/fboss/agent/hw/switch_asics/ChenabAsic.cpp index a3f08daf79aec..65e05cb5127c0 100644 --- a/fboss/agent/hw/switch_asics/ChenabAsic.cpp +++ b/fboss/agent/hw/switch_asics/ChenabAsic.cpp @@ -75,9 +75,10 @@ bool ChenabAsic::isSupportedNonFabric(Feature feature) const { case HwAsic::Feature::RESOURCE_USAGE_STATS: case HwAsic::Feature::SAI_TTL0_PACKET_FORWARD_ENABLE: case HwAsic::Feature::L3_INTF_MTU: - case HwAsic::Feature::PORT_MTU_ERROR_TRAP: case HwAsic::Feature::EGRESS_ACL_TABLE: + case HwAsic::Feature::SAI_USER_DEFINED_TRAP: return true; + case HwAsic::Feature::PORT_MTU_ERROR_TRAP: case HwAsic::Feature::EVENTOR_PORT_FOR_SFLOW: case HwAsic::Feature::SAI_ECMP_HASH_ALGORITHM: case HwAsic::Feature::SWITCH_REACHABILITY_CHANGE_NOTIFY: @@ -171,7 +172,6 @@ bool ChenabAsic::isSupportedNonFabric(Feature feature) const { case HwAsic::Feature::FLOWLET_PORT_ATTRIBUTES: case HwAsic::Feature::P4_WARMBOOT: case HwAsic::Feature::SAI_EAPOL_TRAP: - case HwAsic::Feature::SAI_USER_DEFINED_TRAP: case HwAsic::Feature::CREDIT_WATCHDOG: case HwAsic::Feature::ECMP_DLB_OFFSET: case HwAsic::Feature::SAI_FEC_CORRECTED_BITS: