Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

L3 router drops never increment relevant counters

Đang mở
#404 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
networking

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
21
Fork
3
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của oxidecomputer/dendrite

Tất cả issue của oxidecomputer/dendrite

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.