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

未关闭
#680 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust
领域
networking

调研方向

从 Tx 入口 str_mdata_fastpath_put 开始,并将其与 dld_wput 和 str_mdata_raw_put 进行比较。检查 MAC_UNICAST_TAG_DISABLE 和 MCIS_TAG_DISABLE 的行为,包括 hint 参数,然后考虑 IPD45 tx 路径。完成的标准是:带 VLAN 标签的 underlay 流量保留其 Ethernet 标签,同时不使正常的 VLAN 交付发生回归。

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

描述

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).

主要语言
Rust
星标
82
派生
16
平均合并
3 天 6 小时
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

oxidecomputer/opte 的其他 Issue

查看 oxidecomputer/opte 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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