]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r312536:
authorhselasky <hselasky@FreeBSD.org>
Thu, 3 Aug 2017 14:03:48 +0000 (14:03 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 3 Aug 2017 14:03:48 +0000 (14:03 +0000)
commitbd042f7c9c50893f35cc1bf38095ab7981b14cc1
tree48ae6c958274701eb1b387c38147e22322e8573e
parentc7978fcde7e3265091fc2318366be1b1e576d1c1
MFC r312536:
Allow transmit packet bufring in software to be disabled.

- Add new sysctl node to control the transmit packet bufring.

- Add optimised version of the transmit routine which output packets
directly to the DMA ring instead of using bufring in case the transmit
lock is congested. This can reduce the number of taskswitches which in
turn influence the overall system CPU usage, depending on the
workload.

- Add " TX" suffix to debug name for transmit mutexes to silence some
witness warnings about aquiring duplicate locks having same name.

Sponsored by: Mellanox Technologies
Suggested by: gallatin @
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
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c