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

オープン
#680 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
networking

調査の方向性

Tx エントリポイント str_mdata_fastpath_put から開始し、dld_wput および str_mdata_raw_put と比較します。hint パラメーターを含め、MAC_UNICAST_TAG_DISABLE と MCIS_TAG_DISABLE の動作を調査し、そのうえで IPD45 tx 経路を検討します。VLAN タグ付きのアンダーレイ トラフィックが 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時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oxidecomputer/opte のほかの issue

oxidecomputer/opte の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。