]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for hardware rate limiting to mlx5en(4).
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 29 May 2018 14:04:57 +0000 (14:04 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 29 May 2018 14:04:57 +0000 (14:04 +0000)
commit38535d6cab17b86db2806866ab9b7a2a30c1ab90
tree2584a59ce27b6eb2b6fff0e6c4bdd910ba0e8b76
parent9c7c97c0fff62c3d801f36bd32bb98d5189c862f
Add support for hardware rate limiting to mlx5en(4).

The hardware rate limiting feature is enabled by the RATELIMIT kernel
option. Please refer to ifconfig(8) and the txrtlmt option and the
SO_MAX_PACING_RATE set socket option for more information. This
feature is compatible with hardware transmit send offload, TSO.

A set of sysctl(8) knobs under dev.mce.<N>.rate_limit are provided to
setup the ratelimit table and also to fine tune various rate limit
related parameters.

Sponsored by: Mellanox Technologies
14 files changed:
share/man/man4/mlx5en.4
sys/conf/files
sys/conf/options
sys/dev/mlx5/driver.h
sys/dev/mlx5/mlx5_core/mlx5_main.c
sys/dev/mlx5/mlx5_core/mlx5_rl.c [new file with mode: 0644]
sys/dev/mlx5/mlx5_en/en.h
sys/dev/mlx5/mlx5_en/en_rl.h [new file with mode: 0644]
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
sys/dev/mlx5/mlx5_en/mlx5_en_rl.c [new file with mode: 0644]
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
sys/modules/mlx5/Makefile
sys/modules/mlx5en/Makefile
sys/modules/mlx5ib/Makefile