요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
=================================================================
Intel Omni-Path (OPA) Virtual Network Interface Controller (VNIC)
=================================================================
Intel Omni-Path (OPA) Virtual Network Interface Controller (VNIC) feature
supports Ethernet functionality over Omni-Path fabric by encapsulating
the Ethernet packets between HFI nodes.
Architecture
=============
The patterns of exchanges of Omni-Path encapsulated Ethernet packets
involves one or more virtual Ethernet switches overlaid on the Omni-Path
fabric topology. A subset of HFI nodes on the Omni-Path fabric are
permitted to exchange encapsulated Ethernet packets across a particular
virtual Ethernet switch. The virtual Ethernet switches are logical
abstractions achieved by configuring the HFI nodes on the fabric for
header generation and processing. In the simplest configuration all HFI
nodes across the fabric exchange encapsulated Ethernet packets over a
single virtual Ethernet switch. A virtual Ethernet switch, is effectively
an independent Ethernet network. The configuration is performed by an
Ethernet Manager (EM) which is part of the trusted Fabric Manager (FM)
application. HFI nodes can have multiple VNICs each connected to a
different virtual Ethernet switch. The below diagram presents a case
of two virtual Ethernet switches with two HFI nodes::
+-------------------+
| Subnet/ |
| Ethernet |
| Manager |
+-------------------+
/ /
/ /
/ /
/ /
+-----------------------------+ +------------------------------+
| Virtual Ethernet Switch | | Virtual Ethernet Switch |
| +---------+ +---------+ | | +---------+ +---------+ |
| | VPORT | | VPORT | | | | VPORT | | VPORT | |
+--+---------+----+---------+-+ +-+---------+----+---------+---+
| \ / |
| \ / |
| \/ |
| / \ |
| / \ |
+-----------+------------+ +-----------+------------+
| VNIC | VNIC | | VNIC | VNIC |
+-----------+------------+ +-----------+------------+
| HFI | | HFI |
+------------------------+ +------------------------+
The Omni-Path encapsulated Ethernet packet format is as described below.
==================== ================================
Bits Field
==================== ================================
Quad Word 0:
0-19 SLID (lower 20 bits)
20-30 Length (in Quad Words)
31 BECN bit
32-51 DLID (lower 20 bits)
52-56 SC (Service Class)
57-59 RC (Routing Control)
60 FECN bit
61-62 L2 (=10, 16B format)
63 LT (=1, Link Transfer Head Flit)
Quad Word 1:
0-7 L4 type (=0x78 ETHERNET)
8-11 SLID[23:20]
12-15 DLID[23:20]
16-31 PKEY
32-47 Entropy
48-63 Reserved
Quad Word 2:
0-15 Reserved
16-31 L4 header
32-63 Ethernet Packet
Quad Words 3 to N-1:
0-63 Ethernet packet (pad extended)
Quad Word N (last):
0-23 Ethernet packet (pad extended)
24-55 ICRC
56-61 Tail
62-63 LT (=01, Link Transfer Tail Flit)
==================== ================================
Ethernet packet is padded on the transmit side to ensure that the VNIC OPA
packet is quad word aligned. The 'Tail' field contains the number of bytes
padded. On the receive side the 'Tail' field is read and the padding is
removed (along with ICRC, Tail and OPA header) before passing packet up
the network stack.
The L4 header field contains the virtual Ethernet switch id the VNIC port
belongs to. On the receive side, this field is used to de-multiplex the
received VNIC packets to different VNIC ports.
Driver Design
==============
Intel OPA VNIC software design is presented in the below diagram.
OPA VNIC functionality has a HW dependent component and a HW
independent component.
The support has been added for IB device to allocate and free the RDMA
netdev devices. The RDMA netdev supports interfacing with the network
stack thus creating standard network interfaces. OPA_VNIC is an RDMA
netdev device type.
The HW dependent VNIC functionality is part of the HFI1 driver. It
implements the verbs to allocate and free the OPA_VNIC RDMA netdev.
It involves HW resource allocation/management for VNIC functionality.
It interfaces with the network stack and implements the required
net_device_ops functions. It expects Omni-Path encapsulated Ethernet
packets in the transmit path and provides HW access to them. It strips
the Omni-Path header from the received packets before passing them up
the network stack. It also implements the RDMA netdev control operations.
The OPA VNIC module implements the HW independent VNIC functionality.
It consists of two parts. The VNIC Ethernet Management Agent (VEMA)
registers itself with IB core as an IB client and interfaces with the
IB MAD stack. It exchanges the management information with the Ethernet
Manager (EM) and the VNIC netdev. The VNIC netdev part allocates and frees
the OPA_VNIC RDMA netdev devices. It overrides the net_device_ops functions
set by HW dependent VNIC driver where required to accommodate any control
operation. It also handles the encapsulation of Ethernet packets with an
Omni-Path header in the transmit path. For each VNIC interface, the
information required for encapsulation is configured by the EM via VEMA MAD
interface. It also passes any control information to the HW dependent driver
by invoking the RDMA netdev control operations::
+-------------------+ +----------------------+
| | | Linux |
| IB MAD | | Network |
| | | Stack |
+-------------------+ +----------------------+
| | |
| | |
+----------------------------+ |
| | |
| OPA VNIC Module | |
| (OPA VNIC RDMA Netdev | |
| & EMA functions) | |
| | |
+----------------------------+ |
| |
| |
+------------------+ |
| IB core | |
+------------------+ |
| |
| |
+--------------------------------------------+
| |
| HFI1 Driver with VNIC support |
| |
+--------------------------------------------+
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
OPA VNIC 아키텍처와 가상 이더넷 스위치
1-50Intel Omni-Path(OPA) VNIC 기능은 HFI 노드 사이에서 이더넷 패킷을 캡슐화해 Omni-Path 패브릭 위에 이더넷 기능을 제공합니다.
캡슐화된 이더넷 패킷의 교환은 Omni-Path 패브릭 토폴로지 위에 겹쳐진 하나 이상의 가상 이더넷 스위치를 통해 이루어집니다. 특정 가상 스위치마다 통신을 허용할 HFI 노드 부분집합을 정할 수 있습니다.
가상 이더넷 스위치는 HFI 노드의 헤더 생성 및 처리 방식을 구성해 만드는 논리적 추상화입니다. 가장 단순한 구성에서는 모든 HFI 노드가 하나의 가상 스위치를 통해 패킷을 교환합니다. 각 가상 스위치는 사실상 독립된 이더넷 네트워크입니다.
구성은 신뢰된 Fabric Manager(FM) 애플리케이션에 포함된 Ethernet Manager(EM)가 수행합니다. 한 HFI 노드는 여러 VNIC을 가질 수 있고, 각 VNIC은 서로 다른 가상 이더넷 스위치에 연결될 수 있습니다.
원문의 교차 연결 그림을 관리자, 스위치, VPORT, HFI/VNIC 계층으로 구조화했습니다.
원문 아키텍처 그림의 노드와 연결 관계를 보존합니다.
=================================================================
Intel Omni-Path (OPA) Virtual Network Interface Controller (VNIC)
=================================================================
Intel Omni-Path (OPA) Virtual Network Interface Controller (VNIC) feature
supports Ethernet functionality over Omni-Path fabric by encapsulating
the Ethernet packets between HFI nodes.
Architecture
=============
The patterns of exchanges of Omni-Path encapsulated Ethernet packets
involves one or more virtual Ethernet switches overlaid on the Omni-Path
fabric topology. A subset of HFI nodes on the Omni-Path fabric are
permitted to exchange encapsulated Ethernet packets across a particular
virtual Ethernet switch. The virtual Ethernet switches are logical
abstractions achieved by configuring the HFI nodes on the fabric for
header generation and processing. In the simplest configuration all HFI
nodes across the fabric exchange encapsulated Ethernet packets over a
single virtual Ethernet switch. A virtual Ethernet switch, is effectively
an independent Ethernet network. The configuration is performed by an
Ethernet Manager (EM) which is part of the trusted Fabric Manager (FM)
application. HFI nodes can have multiple VNICs each connected to a
different virtual Ethernet switch. The below diagram presents a case
of two virtual Ethernet switches with two HFI nodes::
+-------------------+
| Subnet/ |
| Ethernet |
| Manager |
+-------------------+
/ /
/ /
/ /
/ /
+-----------------------------+ +------------------------------+
| Virtual Ethernet Switch | | Virtual Ethernet Switch |
| +---------+ +---------+ | | +---------+ +---------+ |
| | VPORT | | VPORT | | | | VPORT | | VPORT | |
+--+---------+----+---------+-+ +-+---------+----+---------+---+
| \ / |
| \ / |
| \/ |
| / \ |
| / \ |
+-----------+------------+ +-----------+------------+
| VNIC | VNIC | | VNIC | VNIC |
+-----------+------------+ +-----------+------------+
| HFI | | HFI |
+------------------------+ +------------------------+
OPA 캡슐화 패킷 형식과 송수신 처리
51-100OPA 캡슐화 이더넷 패킷은 64비트 Quad Word(QW) 단위로 구성됩니다. QW0과 QW1은 경로, 길이, 서비스 클래스, 링크 전송 형식, PKEY와 엔트로피를 담고 QW2부터 이더넷 패킷이 시작됩니다. 마지막 QW에는 패딩된 이더넷 데이터와 ICRC, Tail, 링크 전송 꼬리 플릿 표시가 들어갑니다.
원문 표의 모든 Quad Word, 비트 범위, 필드를 그대로 대응시킵니다.
송신 측은 VNIC OPA 패킷이 QW 경계에 맞도록 이더넷 패킷을 패딩하며 `Tail` 필드에 추가한 바이트 수를 기록합니다. 수신 측은 `Tail`을 읽어 패딩을 제거하고, ICRC와 Tail 및 OPA 헤더도 벗긴 다음 패킷을 네트워크 스택에 전달합니다.
L4 헤더 필드는 VNIC 포트가 속한 가상 이더넷 스위치 ID를 담습니다. 수신 측은 이 값을 이용해 받은 VNIC 패킷을 서로 다른 VNIC 포트로 역다중화합니다.
송신 패딩부터 수신 역다중화까지의 데이터 경로입니다.
The Omni-Path encapsulated Ethernet packet format is as described below.
==================== ================================
Bits Field
==================== ================================
Quad Word 0:
0-19 SLID (lower 20 bits)
20-30 Length (in Quad Words)
31 BECN bit
32-51 DLID (lower 20 bits)
52-56 SC (Service Class)
57-59 RC (Routing Control)
60 FECN bit
61-62 L2 (=10, 16B format)
63 LT (=1, Link Transfer Head Flit)
Quad Word 1:
0-7 L4 type (=0x78 ETHERNET)
8-11 SLID[23:20]
12-15 DLID[23:20]
16-31 PKEY
32-47 Entropy
48-63 Reserved
Quad Word 2:
0-15 Reserved
16-31 L4 header
32-63 Ethernet Packet
Quad Words 3 to N-1:
0-63 Ethernet packet (pad extended)
Quad Word N (last):
0-23 Ethernet packet (pad extended)
24-55 ICRC
56-61 Tail
62-63 LT (=01, Link Transfer Tail Flit)
==================== ================================
Ethernet packet is padded on the transmit side to ensure that the VNIC OPA
packet is quad word aligned. The 'Tail' field contains the number of bytes
padded. On the receive side the 'Tail' field is read and the padding is
removed (along with ICRC, Tail and OPA header) before passing packet up
the network stack.
The L4 header field contains the virtual Ethernet switch id the VNIC port
belongs to. On the receive side, this field is used to de-multiplex the
received VNIC packets to different VNIC ports.
하드웨어 의존 및 독립 드라이버 구성
101-132Intel OPA VNIC 소프트웨어는 하드웨어 의존 구성 요소와 하드웨어 독립 구성 요소로 나뉩니다.
IB 장치에는 RDMA netdev 장치를 할당하고 해제하는 지원이 추가되었습니다. RDMA netdev는 네트워크 스택과 연결되어 표준 네트워크 인터페이스를 만들며, `OPA_VNIC`은 RDMA netdev 장치 유형입니다.
하드웨어 의존 VNIC 기능은 HFI1 드라이버에 포함됩니다. 이 드라이버는 `OPA_VNIC` RDMA netdev를 할당하고 해제하는 verbs를 구현하고 VNIC에 필요한 하드웨어 자원을 할당하고 관리합니다.
HFI1 쪽은 네트워크 스택과 연결되고 필요한 `net_device_ops` 함수를 구현합니다. 송신 경로에서는 Omni-Path 캡슐화 이더넷 패킷을 받아 하드웨어에 제공하고, 수신 경로에서는 패킷을 네트워크 스택으로 올리기 전에 Omni-Path 헤더를 제거합니다. RDMA netdev 제어 연산도 이 계층이 구현합니다.
OPA VNIC 모듈은 하드웨어 독립 기능을 구현합니다. VNIC Ethernet Management Agent(VEMA)는 IB 코어에 IB 클라이언트로 등록하고 IB MAD 스택과 연동하며, Ethernet Manager(EM)와 VNIC netdev 사이에서 관리 정보를 교환합니다.
하드웨어 의존 HFI1 계층과 하드웨어 독립 OPA VNIC 모듈의 책임을 비교합니다.
Driver Design
==============
Intel OPA VNIC software design is presented in the below diagram.
OPA VNIC functionality has a HW dependent component and a HW
independent component.
The support has been added for IB device to allocate and free the RDMA
netdev devices. The RDMA netdev supports interfacing with the network
stack thus creating standard network interfaces. OPA_VNIC is an RDMA
netdev device type.
The HW dependent VNIC functionality is part of the HFI1 driver. It
implements the verbs to allocate and free the OPA_VNIC RDMA netdev.
It involves HW resource allocation/management for VNIC functionality.
It interfaces with the network stack and implements the required
net_device_ops functions. It expects Omni-Path encapsulated Ethernet
packets in the transmit path and provides HW access to them. It strips
the Omni-Path header from the received packets before passing them up
the network stack. It also implements the RDMA netdev control operations.
The OPA VNIC module implements the HW independent VNIC functionality.
It consists of two parts. The VNIC Ethernet Management Agent (VEMA)
registers itself with IB core as an IB client and interfaces with the
IB MAD stack. It exchanges the management information with the Ethernet
Manager (EM) and the VNIC netdev. The VNIC netdev part allocates and frees
the OPA_VNIC RDMA netdev devices. It overrides the net_device_ops functions
set by HW dependent VNIC driver where required to accommodate any control
operation. It also handles the encapsulation of Ethernet packets with an
Omni-Path header in the transmit path. For each VNIC interface, the
information required for encapsulation is configured by the EM via VEMA MAD
interface. It also passes any control information to the HW dependent driver
by invoking the RDMA netdev control operations::
VEMA, RDMA netdev, HFI1 제어 흐름
133-159VNIC netdev 부분은 `OPA_VNIC` RDMA netdev 장치를 할당하고 해제합니다. 제어 연산을 수용해야 할 때는 하드웨어 의존 드라이버가 설정한 `net_device_ops` 함수를 필요한 범위에서 재정의합니다.
송신 경로에서 OPA VNIC 모듈은 이더넷 패킷을 Omni-Path 헤더로 캡슐화합니다. 각 VNIC 인터페이스에 필요한 캡슐화 정보는 EM이 VEMA MAD 인터페이스를 통해 구성합니다. 모듈은 RDMA netdev 제어 연산을 호출해 제어 정보를 하드웨어 의존 드라이버에도 전달합니다.
원문의 드라이버 설계 그림을 관리 경로와 데이터 경로가 합류하는 계층으로 다시 그렸습니다.
드라이버 설계 그림의 상위 인터페이스와 하위 HFI1 연결을 구분합니다.
+-------------------+ +----------------------+
| | | Linux |
| IB MAD | | Network |
| | | Stack |
+-------------------+ +----------------------+
| | |
| | |
+----------------------------+ |
| | |
| OPA VNIC Module | |
| (OPA VNIC RDMA Netdev | |
| & EMA functions) | |
| | |
+----------------------------+ |
| |
| |
+------------------+ |
| IB core | |
+------------------+ |
| |
| |
+--------------------------------------------+
| |
| HFI1 Driver with VNIC support |
| |
+--------------------------------------------+
요약·해설
opa_vnic.rst:1-159OPA VNIC은 HFI 노드 사이의 이더넷 패킷을 Omni-Path 형식으로 캡슐화하고 가상 이더넷 스위치 ID로 VNIC 포트를 구분합니다. 하드웨어 독립 OPA VNIC/VEMA 계층이 관리와 송신 캡슐화를 맡고, HFI1 하드웨어 의존 계층이 RDMA netdev 자원과 실제 데이터 경로를 담당합니다.
원문 분량과 핵심 적용 대상을 요약합니다.
문서의 주요 동작 순서를 압축해 보여 줍니다.