]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336403:
authorhselasky <hselasky@FreeBSD.org>
Thu, 2 Aug 2018 08:47:24 +0000 (08:47 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 2 Aug 2018 08:47:24 +0000 (08:47 +0000)
commit7ecc3f37676fce623006ef2e4d11bebfe97ebbce
tree0fcbb1d592fd33c3851f77ec50509c6dd8a32dbf
parentaa51d3529b364876c3e8100ee3afea3137924788
MFC r336403:
Add context numbers for HW elements in mlx5en(4).

To access the data, set sysctl dev.mce.N.conf.debug_stats to 1.
This enables the sysctl node dev.mce.N.hw_ctx_debug.  Its content is
the mapping of each channel' number to used receive queue and associated
completion queue, set of the transmit queues numbers and corresponding
completion queues.

Trimmed example output:
channel 30 rq 188 cq 1085
channel 30 tc 0 sq 187 cq 1084
channel 31 rq 191 cq 1087
channel 31 tc 0 sq 190 cq 1086

Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_en/en.h
sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
sys/dev/mlx5/mlx5_en/mlx5_en_main.c