Skip to content

Commit 03b7601

Browse files
authored
new in drop reasons and new port stat counters to map to in drop reasons (#2170)
This PR adds the following: SAI_IN_DROP_REASON_SMAC_ZERO SAI_IN_DROP_REASON_DMAC_ZERO SAI_IN_DROP_REASON_LPM_MISS 8 additional port stat drop reason counters Signed-off-by: Prasun Sinha <[email protected]>
1 parent 7ee8add commit 03b7601

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

inc/saidebugcounter.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,16 @@ typedef enum _sai_in_drop_reason_t
124124
/** Packet size is larger than the L2 (Port) MTU */
125125
SAI_IN_DROP_REASON_EXCEEDS_L2_MTU,
126126

127+
/** Source MAC address is zero */
128+
SAI_IN_DROP_REASON_SMAC_ZERO = 0x00000037,
129+
130+
/** Destination MAC address is zero */
131+
SAI_IN_DROP_REASON_DMAC_ZERO,
132+
127133
/* L3 reasons */
128134

129135
/** Any L3 pipeline drop */
130-
SAI_IN_DROP_REASON_L3_ANY,
136+
SAI_IN_DROP_REASON_L3_ANY = 0x0000000b,
131137

132138
/** Packet size is larger than the L3 (Router Interface) MTU */
133139
SAI_IN_DROP_REASON_EXCEEDS_L3_MTU,
@@ -322,6 +328,9 @@ typedef enum _sai_in_drop_reason_t
322328
*/
323329
SAI_IN_DROP_REASON_SRV6_LOCAL_SID_DROP,
324330

331+
/** IPv4 or IPv6 Routing table (LPM) unicast miss */
332+
SAI_IN_DROP_REASON_LPM_MISS = 0x00000039,
333+
325334
/** End of in drop reasons */
326335
SAI_IN_DROP_REASON_END,
327336

inc/saiport.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,6 +3395,30 @@ typedef enum _sai_port_stat_t
33953395
/** Get in port packet drops configured by debug counter API at index 7 */
33963396
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_7_DROPPED_PKTS,
33973397

3398+
/** Get in port packet drops configured by debug counter API at index 8 */
3399+
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_8_DROPPED_PKTS,
3400+
3401+
/** Get in port packet drops configured by debug counter API at index 9 */
3402+
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_9_DROPPED_PKTS,
3403+
3404+
/** Get in port packet drops configured by debug counter API at index 10 */
3405+
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_10_DROPPED_PKTS,
3406+
3407+
/** Get in port packet drops configured by debug counter API at index 11 */
3408+
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_11_DROPPED_PKTS,
3409+
3410+
/** Get in port packet drops configured by debug counter API at index 12 */
3411+
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_12_DROPPED_PKTS,
3412+
3413+
/** Get in port packet drops configured by debug counter API at index 13 */
3414+
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_13_DROPPED_PKTS,
3415+
3416+
/** Get in port packet drops configured by debug counter API at index 14 */
3417+
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_14_DROPPED_PKTS,
3418+
3419+
/** Get in port packet drops configured by debug counter API at index 15 */
3420+
SAI_PORT_STAT_IN_CONFIGURED_DROP_REASONS_15_DROPPED_PKTS,
3421+
33983422
/** Port stat in drop reasons range end */
33993423
SAI_PORT_STAT_IN_DROP_REASON_RANGE_END = 0x00001fff,
34003424

0 commit comments

Comments
 (0)