]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r357294:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 1 Dec 2020 13:03:09 +0000 (13:03 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 1 Dec 2020 13:03:09 +0000 (13:03 +0000)
commit3b09cd738df375e948b3e9a67b2ecb3c40902e9e
tree078aaa20a9392d8a09aa80479a473b5543ef5426
parent4268c8c0f697b6b8affa6b379c17eaddde5bca6d
MFC r357294:
Widen EPOCH(9) usage in mlx5en(4).

Make completion event path mostly lockless using EPOCH(9).

Implement a mechanism using EPOCH(9) which allows us to make
the callback path for completion events mostly lockless.

Simplify draining callback events using epoch_wait().

While at it make sure all receive completion callbacks are
covered by the network EPOCH(9), because this is required
when calling if_input() and ether_input() after r357012.

Sponsored by: Mellanox Technologies
sys/dev/mlx5/cq.h
sys/dev/mlx5/driver.h
sys/dev/mlx5/mlx5_core/mlx5_cq.c
sys/dev/mlx5/mlx5_en/mlx5_en_main.c