요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
.. SPDX-License-Identifier: GPL-2.0
=========================
octeontx2 devlink support
=========================
This document describes the devlink features implemented by the ``octeontx2 AF, PF and VF``
device drivers.
Parameters
==========
The ``octeontx2 PF and VF`` drivers implement the following driver-specific parameters.
.. list-table:: Driver-specific parameters implemented
:widths: 5 5 5 85
* - Name
- Type
- Mode
- Description
* - ``mcam_count``
- u16
- runtime
- Select number of match CAM entries to be allocated for an interface.
The same is used for ntuple filters of the interface. Supported by
PF and VF drivers.
The ``octeontx2 AF`` driver implements the following driver-specific parameters.
.. list-table:: Driver-specific parameters implemented
:widths: 5 5 5 85
* - Name
- Type
- Mode
- Description
* - ``dwrr_mtu``
- u32
- runtime
- Use to set the quantum which hardware uses for scheduling among transmit queues.
Hardware uses weighted DWRR algorithm to schedule among all transmit queues.
* - ``npc_mcam_high_zone_percent``
- u8
- runtime
- Use to set the number of high priority zone entries in NPC MCAM that can be allocated
by a user, out of the three priority zone categories high, mid and low.
* - ``npc_def_rule_cntr``
- bool
- runtime
- Use to enable or disable hit counters for the default rules in NPC MCAM.
Its not guaranteed that counters gets enabled and mapped to all the default rules,
since the counters are scarce and driver follows a best effort approach.
The default rule serves as the primary packet steering rule for a specific PF or VF,
based on its DMAC address which is installed by AF driver as part of its initialization.
Sample command to read hit counters for default rule from debugfs is as follows,
cat /sys/kernel/debug/cn10k/npc/mcam_rules
* - ``nix_maxlf``
- u16
- runtime
- Use to set the maximum number of LFs in NIX hardware block. This would be useful
to increase the availability of default resources allocated to enabled LFs like
MCAM entries for example.
The ``octeontx2 PF`` driver implements the following driver-specific parameters.
.. list-table:: Driver-specific parameters implemented
:widths: 5 5 5 85
* - Name
- Type
- Mode
- Description
* - ``unicast_filter_count``
- u8
- runtime
- Set the maximum number of unicast filters that can be programmed for
the device. This can be used to achieve better device resource
utilization, avoiding over consumption of unused MCAM table entries.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
octeontx2 devlink 지원
1-9이 문서는 `GPL-2.0` 라이선스를 따릅니다.
`octeontx2 AF, PF, VF` 장치 드라이버가 구현한 devlink 기능을 설명합니다.
.. SPDX-License-Identifier: GPL-2.0
=========================
octeontx2 devlink support
=========================
This document describes the devlink features implemented by the ``octeontx2 AF, PF and VF``
device drivers.
PF와 VF의 MCAM 할당
10-28매개변수
`octeontx2 PF 및 VF` 드라이버는 다음 드라이버 전용 매개변수를 구현합니다.
인터페이스의 ntuple 필터가 사용할 match CAM 항목 수를 실행 중에 조정합니다.
Parameters
==========
The ``octeontx2 PF and VF`` drivers implement the following driver-specific parameters.
.. list-table:: Driver-specific parameters implemented
:widths: 5 5 5 85
* - Name
- Type
- Mode
- Description
* - ``mcam_count``
- u16
- runtime
- Select number of match CAM entries to be allocated for an interface.
The same is used for ntuple filters of the interface. Supported by
PF and VF drivers.
AF 스케줄링과 NPC·NIX 자원
29-64`octeontx2 AF` 드라이버는 다음 드라이버 전용 매개변수를 구현합니다.
송신 스케줄링 quantum, NPC MCAM 우선순위·카운터, NIX LF 수를 실행 중에 제어합니다.
debugfs에서 기본 규칙의 hit counter를 읽는 예는 다음과 같습니다.
cat /sys/kernel/debug/cn10k/npc/mcam_rules
The ``octeontx2 AF`` driver implements the following driver-specific parameters.
.. list-table:: Driver-specific parameters implemented
:widths: 5 5 5 85
* - Name
- Type
- Mode
- Description
* - ``dwrr_mtu``
- u32
- runtime
- Use to set the quantum which hardware uses for scheduling among transmit queues.
Hardware uses weighted DWRR algorithm to schedule among all transmit queues.
* - ``npc_mcam_high_zone_percent``
- u8
- runtime
- Use to set the number of high priority zone entries in NPC MCAM that can be allocated
by a user, out of the three priority zone categories high, mid and low.
* - ``npc_def_rule_cntr``
- bool
- runtime
- Use to enable or disable hit counters for the default rules in NPC MCAM.
Its not guaranteed that counters gets enabled and mapped to all the default rules,
since the counters are scarce and driver follows a best effort approach.
The default rule serves as the primary packet steering rule for a specific PF or VF,
based on its DMAC address which is installed by AF driver as part of its initialization.
Sample command to read hit counters for default rule from debugfs is as follows,
cat /sys/kernel/debug/cn10k/npc/mcam_rules
* - ``nix_maxlf``
- u16
- runtime
- Use to set the maximum number of LFs in NIX hardware block. This would be useful
to increase the availability of default resources allocated to enabled LFs like
MCAM entries for example.
PF 유니캐스트 필터 한도
65-79`octeontx2 PF` 드라이버는 다음 드라이버 전용 매개변수를 구현합니다.
사용하지 않는 MCAM 표 항목을 과도하게 소비하지 않도록 유니캐스트 필터 수를 제한합니다.
The ``octeontx2 PF`` driver implements the following driver-specific parameters.
.. list-table:: Driver-specific parameters implemented
:widths: 5 5 5 85
* - Name
- Type
- Mode
- Description
* - ``unicast_filter_count``
- u8
- runtime
- Set the maximum number of unicast filters that can be programmed for
the device. This can be used to achieve better device resource
utilization, avoiding over consumption of unused MCAM table entries.
요약·해설
octeontx2.rst:1-79`octeontx2` devlink 매개변수는 PF·VF의 ntuple MCAM 할당, AF의 송신 DWRR quantum과 NPC 우선순위·카운터, NIX LF 한도, PF 유니캐스트 필터 수를 실행 중에 조정합니다. 희소한 MCAM과 카운터를 실제 인터페이스 수요에 맞게 배분하는 것이 핵심입니다.