From 363316d14aa206de4d53c05d13d77fb76954d91f Mon Sep 17 00:00:00 2001 From: rajendrat Date: Thu, 18 Apr 2024 09:32:49 -0700 Subject: [PATCH] Adding additional Ether pkts stats ranges for Cisco Platforms Signed-off-by: Rajendra Kumar Thirumurthi Signed-off-by: rajendrat --- inc/saiport.h | 18 ++++++++++++++++++ meta/ancestry.pl | 1 + 2 files changed, 19 insertions(+) diff --git a/inc/saiport.h b/inc/saiport.h index f8b8ad83b4..44c2fecdfb 100644 --- a/inc/saiport.h +++ b/inc/saiport.h @@ -3242,6 +3242,24 @@ typedef enum _sai_port_stat_t /** Port stat out drop reasons range end */ SAI_PORT_STAT_OUT_DROP_REASON_RANGE_END = 0x00002fff, + /** SAI port stat ether in pkts 1519 to 2500 octets */ + SAI_PORT_STAT_ETHER_IN_PKTS_1519_TO_2500_OCTETS, + + /** SAI port stat ether in pkts 2501 to 9000 octets */ + SAI_PORT_STAT_ETHER_IN_PKTS_2501_TO_9000_OCTETS, + + /** SAI port stat ether in pkts 9001 to 16383 octets */ + SAI_PORT_STAT_ETHER_IN_PKTS_9001_TO_16383_OCTETS, + + /** SAI port stat ether out pkts 1519 to 2500 octets */ + SAI_PORT_STAT_ETHER_OUT_PKTS_1519_TO_2500_OCTETS, + + /** SAI port stat ether out pkts 2501 to 9000 octets */ + SAI_PORT_STAT_ETHER_OUT_PKTS_2501_TO_9000_OCTETS, + + /** SAI port stat ether out pkts 9001 to 16383 octets */ + SAI_PORT_STAT_ETHER_OUT_PKTS_9001_TO_16383_OCTETS, + /** Port stat range end */ SAI_PORT_STAT_END diff --git a/meta/ancestry.pl b/meta/ancestry.pl index c005f83e66..5c8201da23 100755 --- a/meta/ancestry.pl +++ b/meta/ancestry.pl @@ -177,6 +177,7 @@ sub BuildCommitHistory next if $enumName eq "SAI_API_MAX"; next if $enumName eq "SAI_OBJECT_TYPE_MAX"; next if $enumName eq "SAI_PORT_INTERFACE_TYPE_MAX"; + next if $enumName eq "SAI_PORT_STAT_END"; LogError "wrong initializer on $enumName $enumValue" if not $enumValue =~ /^0x[0-9a-f]{8}$/;