Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

L3 router drops never increment relevant counters

已关闭
#404 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@FelixMcFelix 已经在做这个了。

开始于 2026年10月16日。

  • #406 来自 @FelixMcFelix —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
networking

调研方向

Start with the Router4/Router6 drop-reason assignments in dpd/p4/sidecar.p4 around lines 1273-1283, then the ingress counter block around lines 2189-2193 that only updates drop statistics when meta.dropped is set. Compare that with how the egress path counts on meta.drop_reason != 0. Done means ingress drop counters also increment for packets that are transformed and sent to the CPU port rather than dropped.

由索引模型根据 Issue 内容生成。

描述

https://github.com/oxidecomputer/dendrite/blob/4448f2eaa804b65b6c2dfadc4f761a89bb6b2a36/dpd/p4/sidecar.p4#L1273-L1283

Router4/Router6 (and their multicast cousins) set a drop reason on lookup or TTL failure, but need to delegate packet handling to the switch zone via the CPU port. So they cannot set meta.dropped -- we need to transform the packet and keep it moving. However, all of our drop counters in the ingress pipeline only touch drop statistics if we're actually dropping the packet, rather than transforming it:

https://github.com/oxidecomputer/dendrite/blob/4448f2eaa804b65b6c2dfadc4f761a89bb6b2a36/dpd/p4/sidecar.p4#L2189-L2193

We need to perform the counter operations on meta.drop_reason != 0, as egress does. We could also possibly replace meta.dropped with direct use of ig_dprsr_md.drop_ctl if needed.

主要语言
Rust
星标
22
派生
4
平均合并
4 天 20 小时
30 天内合并 PR
6

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oxidecomputer/dendrite 的其他 Issue

查看 oxidecomputer/dendrite 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。