요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Linear·single-hash·double-hash resources
devlink-resource-mlxsw:13-33linear는 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
4
Contact: [email protected]
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.
13
What: /kvd/linear
14
Date: 08-Jan-2018
15
KernelVersion: v4.16
16
Contact: [email protected]
17
Description: The linear section of the KVD is managed by software as a
18
flat memory accessed using an index.
20
What: /kvd/hash_single
21
Date: 08-Jan-2018
22
KernelVersion: v4.16
23
Contact: [email protected]
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.
28
What: /kvd/hash_double
29
Date: 08-Jan-2018
30
KernelVersion: v4.16
31
Contact: [email protected]
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.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Spectrum 중앙 KVD database
1-11| 항목 | 내용 |
|---|---|
| What | /kvd/ |
| Date | 2018-01-08 |
| KernelVersion | v4.16 |
| Contact | [email protected] |
| Description | Spectrum 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/linear | KVD의 linear section은 software가 index로 접근하는 flat memory로 관리합니다. |
| /kvd/hash_single | KVD의 hash-based section은 switch device가 관리합니다. Key size가 64 bits보다 작거나 같은 경우에 사용합니다. |
| /kvd/hash_double | KVD의 hash-based section은 switch device가 관리합니다. Key가 64 bits보다 큰 경우에 사용합니다. |
| 공통 항목 | 내용 |
|---|---|
| Date | 2018-01-08 |
| KernelVersion | v4.16 |
| Contact | [email protected] |
Spectrum KVD→L2 FDB, L3 LPM, ECMP and more→Static linear versus hash partition→Reload required after partition change
Linear section→Software managed flat memory→Index access
Hash section key at most 64 bits→hash_single→Switch managed
Hash section key above 64 bits→hash_double→Switch managed
중앙 KVD는 static linear·hash partition을 사용하고 hash key 폭에 따라 single 또는 double resource를 선택한다.
Centralized Spectrum KVD
devlink-resource-mlxsw:1-11KVD는 L2 FDB·L3 LPM·ECMP 등 chip configuration table의 중앙 database입니다. Linear와 hash-based section의 분할은 static이며 변경 적용에는 reload가 필요합니다.