]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Extend use of unlikely() in the fast path, in mlx5en(4).
authorhselasky <hselasky@FreeBSD.org>
Thu, 11 Jun 2020 09:38:51 +0000 (09:38 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 11 Jun 2020 09:38:51 +0000 (09:38 +0000)
commitfd5541d271a7ed132d1966986eab6e8f4ed900b2
tree9615300c3685423f9672c0bdc90b6fa504940595
parented351210202d491af72a2b90f84b22d60c6ba00e
Extend use of unlikely() in the fast path, in mlx5en(4).

Typically the TCP/IP headers fit within the first mbuf and should not
trigger any of the error cases. Use unlikely() for these cases.

No functional change.

MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c