HomeFreeBSD

MFC r312528:

Description

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

Details

Provenance
hselaskyAuthored on
Parents
rS321997: MFC r312528:
Branches
Unknown
Tags
Unknown