From 6d589428bcae53899b632c98bae78d9da19e9b12 Mon Sep 17 00:00:00 2001 From: rajendrat Date: Fri, 19 Apr 2024 11:01:43 -0700 Subject: [PATCH] Adding additional Ether pkts stats ranges for Cisco Platforms 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..68fd4b0630 100644 --- a/inc/saiport.h +++ b/inc/saiport.h @@ -2803,6 +2803,24 @@ typedef enum _sai_port_stat_t /** SAI port stat ether out pkts 9217 to 16383 octets */ SAI_PORT_STAT_ETHER_OUT_PKTS_9217_TO_16383_OCTETS, + /** 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, + /** Get in port current occupancy in bytes [uint64_t] */ SAI_PORT_STAT_IN_CURR_OCCUPANCY_BYTES, 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}$/;