HomeFreeBSD

Make draining a sendqueue more robust.

Description

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.

MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS312527: Add runtime support for modifying the SQ and RQ completion event
Branches
Unknown
Tags
Unknown