]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r312528:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 3 Aug 2017 14:01:25 +0000 (14:01 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 3 Aug 2017 14:01:25 +0000 (14:01 +0000)
commit5bf12bb13c4b734aac563932161ea5b3d92d349f
tree3a2e59d8a9b37c4cdb4ae421dca2060f8a9e456d
parent5375944aa486dd94e74afd1f9d08c5445aa1b04a
MFC r312528:
Make draining a sendqueue more robust.

Add own state variable to track if a sendqueue is stopped or not.
This will prevent traffic from entering the sendqueue while it is
being destroyed.

Update drain function to wait for traffic to be transmitted before
returning when the link state is active.

Add extra checks in transmit path for stopped SQ's.

While at it:
- Use likely() for a mbuf pointer check.
- Remove redundant IFF_DRV_RUNNING check.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@321998 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mlx5/mlx5_en/en.h
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c