Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

devlink: Add documentation for OcteonTx2 AF

Add documentation for the following devlink params
- npc_mcam_high_zone_percent
- npc_def_rule_cntr
- nix_maxlf

Signed-off-by: Linu Cherian <lcherian@marvell.com>
Link: https://patch.msgid.link/20241105125620.2114301-4-lcherian@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Linu Cherian and committed by
Jakub Kicinski
46799a41 70a7434b

+21
+21
Documentation/networking/devlink/octeontx2.rst
··· 40 40 - runtime 41 41 - Use to set the quantum which hardware uses for scheduling among transmit queues. 42 42 Hardware uses weighted DWRR algorithm to schedule among all transmit queues. 43 + * - ``npc_mcam_high_zone_percent`` 44 + - u8 45 + - runtime 46 + - Use to set the number of high priority zone entries in NPC MCAM that can be allocated 47 + by a user, out of the three priority zone categories high, mid and low. 48 + * - ``npc_def_rule_cntr`` 49 + - bool 50 + - runtime 51 + - Use to enable or disable hit counters for the default rules in NPC MCAM. 52 + Its not guaranteed that counters gets enabled and mapped to all the default rules, 53 + since the counters are scarce and driver follows a best effort approach. 54 + The default rule serves as the primary packet steering rule for a specific PF or VF, 55 + based on its DMAC address which is installed by AF driver as part of its initialization. 56 + Sample command to read hit counters for default rule from debugfs is as follows, 57 + cat /sys/kernel/debug/cn10k/npc/mcam_rules 58 + * - ``nix_maxlf`` 59 + - u16 60 + - runtime 61 + - Use to set the maximum number of LFs in NIX hardware block. This would be useful 62 + to increase the availability of default resources allocated to enabled LFs like 63 + MCAM entries for example. 43 64 44 65 The ``octeontx2 PF`` driver implements the following driver-specific parameters. 45 66