Logo of The Linux Kernel

The Linux Kernel

6.17.0-rc7

快速搜尋

Contents

  • Development process
  • 提交補釘
  • 行為守則
  • 維護者手冊
  • All development-process docs
  • 核心 API
  • Driver APIs
  • 子系統
    • Core subsystems
    • Human interfaces
    • Networking interfaces
      • Networking
      • NetLabel
      • InfiniBand
      • ISDN
      • MHI
    • Storage interfaces
    • Other subsystems
  • Locking
  • Licensing rules
  • 撰寫文件
  • 開發工具
  • 測試指南
  • Hacking guide
  • Tracing
  • Fault injection
  • Livepatching
  • Rust
  • Administration
  • 建置系統
  • 回報議題
  • 使用者空間工具
  • 使用者空間 API
  • 韌體
  • 韌體與裝置樹
  • CPU 架構
  • 未排序的文件

本頁

  • 顯示原始碼

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.

Driver-specific parameters implemented¶

Name

Type

Mode

描述

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.

Driver-specific parameters implemented¶

Name

Type

Mode

描述

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.

Driver-specific parameters implemented¶

Name

Type

Mode

描述

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.

©The kernel development community. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source