VLAN'd NICs used as underlay devices result in untagged frames

Đang mở
#680 2 bình luận 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
networking

Hướng nghiên cứu

Bắt đầu từ entrypoint Tx str_mdata_fastpath_put và so sánh nó với dld_wput và str_mdata_raw_put. Kiểm tra hành vi của MAC_UNICAST_TAG_DISABLE và MCIS_TAG_DISABLE, bao gồm cả tham số hint, sau đó xem xét đường truyền tx của IPD45. Hoàn thành có nghĩa là lưu lượng underlay được gắn thẻ VLAN vẫn giữ nguyên thẻ Ethernet mà không làm hồi quy việc phân phối VLAN thông thường.

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

Mô tả

While testing some stlouis changes around MEOI updates, I attempted to use a VLAN tagged VNIC as one of my underlay devices. This had some fairly strange output as seen by the receiving end.

  • The recipient's src/dst MAC addresses and IP addresses were correct,
  • The Ethernet frame was not VLAN tagged.

All normal traffic directed over the VLAN behaved as expected (e.g., correctly tagged and delivered to the target VNIC).

This appears to come from our entrypoint in the Tx path, str_mdata_fastpath_put. Ordinarily, a packet should arrive at dld_wput, and would then in fact be processed by str_mdata_raw_put, which inserts the VLAN tag itself. DLS has instructed MAC not to fill in VLAN tags during link plumbing using MAC_UNICAST_TAG_DISABLE/MCIS_TAG_DISABLE. The catch is that a) that method is likely slower, b) it is static and c) it removes the hint parameter we can use when we already have a consistent flow hash for a set of packets.

If we want to make use of VLANs for any reason, we'll need to reconsider the tx pathway (or at least bake these considerations into how we'd send from a mac_flow_t in IPD45).

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

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

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/opte

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

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.