Skip to content

Count ICMP-needed drops from L3Router - #406

Open
FelixMcFelix wants to merge 1 commit into
mainfrom
felixmcfelix/fix-404
Open

FelixMcFelix wants to merge 1 commit into
mainfrom
felixmcfelix/fix-404

Conversation

@FelixMcFelix

Copy link
Copy Markdown
Contributor

Packets which are dropped in L3Router and its nested controls all need to be handled by the host, so we cannot actually drop these packets in the Tofino. However the counters were only ever modified when the packet is truly dropped, so these counters were non-functional. This PR separates out the counter increment to occur for both classes of drop.

I did look into centralising everything onto ig_dprsr_md.drop_ctl and ridding ourselves of meta.dropped, but this ended up both uglier and took up more stages under multicast. Simple seems best, here!

Fixes #404.

@FelixMcFelix
FelixMcFelix added this pull request to stack #407 October 16, 2026 11:35
@FelixMcFelix
FelixMcFelix marked this pull request as ready for review October 16, 2026 11:37
Base automatically changed from felixmcfelix/fix-324 to main October 20, 2026 12:59
Packets which are dropped in L3Router and its nested controls all need
to be handled by the host, so we cannot actually drop these packets in
the Tofino. However the counters were only ever modified when the packet
is truly dropped, so these counters were non-functional. This PR
separates out the counter increment to occur for both classes of drop.

I did look into centralising everything onto `ig_dprsr_md.drop_ctl` and
ridding ourselves of `meta.dropped`, but this ended up both uglier and
took up more stages under multicast. Simple seems best, here!

Fixes #404.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant