← Documents Documentation/ABI/testing/devlink-resource-mlxsw GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

mlxsw Spectrum KVD devlink resources

Mellanox Spectrum switch의 중앙 KVD database를 linear table과 key-size별 hash_single·hash_double resource로 나누는 devlink resource ABI와 reload 요구사항을 설명합니다.

Source pathDocumentation/ABI/testing/devlink-resource-mlxsw
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

Centralized Spectrum KVD

devlink-resource-mlxsw:1-11

KVD는 L2 FDB·L3 LPM·ECMP 등 chip configuration table의 중앙 database입니다. Linear와 hash-based section의 분할은 static이며 변경 적용에는 reload가 필요합니다.

Linear·single-hash·double-hash resources

devlink-resource-mlxsw:13-33

linear는 software가 index 기반 flat memory로 관리합니다. Switch device가 관리하는 hash_single은 64 bits 이하 key, hash_double은 64 bits 초과 key에 사용합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 What: /kvd/
2 Date: 08-Jan-2018
3 KernelVersion: v4.16
5 Description: The main database in the Spectrum device is a centralized
6 KVD database used for many of the tables used to configure
7 the chip including L2 FDB, L3 LPM, ECMP and more. The KVD
8 is divided into two sections, the first is hash-based table
9 and the second is a linear access table. The division
10 between the linear and hash-based sections is static and
11 require reload before the changes take effect.
12
13 What: /kvd/linear
14 Date: 08-Jan-2018
15 KernelVersion: v4.16
17 Description: The linear section of the KVD is managed by software as a
18 flat memory accessed using an index.
19
20 What: /kvd/hash_single
21 Date: 08-Jan-2018
22 KernelVersion: v4.16
24 Description: The hash based section of the KVD is managed by the switch
25 device. Used in case the key size is smaller or equal to
26 64bit.
27
28 What: /kvd/hash_double
29 Date: 08-Jan-2018
30 KernelVersion: v4.16
32 Description: The hash based section of the KVD is managed by the switch
33 device. Used in case the key is larger than 64 bit.
34

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Spectrum 중앙 KVD database

1-11
항목내용
What/kvd/
Date2018-01-08
KernelVersionv4.16
Contact[email protected]
DescriptionSpectrum device의 주 database는 chip을 구성하는 많은 table에서 사용하는 중앙 KVD database이며 L2 FDB, L3 LPM, ECMP 등을 포함합니다. KVD는 두 section으로 나뉩니다. 첫째는 hash-based table이고 둘째는 linear access table입니다. Linear와 hash-based section 사이의 분할은 static이며 변경 사항을 적용하려면 reload가 필요합니다.

KVD resource section

13-33
What전문 번역
/kvd/linearKVD의 linear section은 software가 index로 접근하는 flat memory로 관리합니다.
/kvd/hash_singleKVD의 hash-based section은 switch device가 관리합니다. Key size가 64 bits보다 작거나 같은 경우에 사용합니다.
/kvd/hash_doubleKVD의 hash-based section은 switch device가 관리합니다. Key가 64 bits보다 큰 경우에 사용합니다.
공통 항목내용
Date2018-01-08
KernelVersionv4.16
Contact[email protected]
Spectrum KVD partition과 key 배치
Spectrum KVDL2 FDB, L3 LPM, ECMP and moreStatic linear versus hash partitionReload required after partition change
Linear sectionSoftware managed flat memoryIndex access
Hash section key at most 64 bitshash_singleSwitch managed
Hash section key above 64 bitshash_doubleSwitch managed

중앙 KVD는 static linear·hash partition을 사용하고 hash key 폭에 따라 single 또는 double resource를 선택한다.