HomeFreeBSD

enetc: Wait for pending transmissions before disabling TX queues

Description

enetc: Wait for pending transmissions before disabling TX queues

According to the RM it's not safe to disable a TX ring while it is busy
transmitting frames.
In order to be safe wait until the ring is empty. (cidx==pidx)
Use this opportunity to remove a set-but-unused variable.

Obtained from: Semihalf
Sponsored by: Alstom Group

Details

Provenance
mindal_semihalf.comAuthored on Jan 27 2022, 10:25 AM
wmaCommitted on Jan 31 2022, 7:57 AM
Parents
rGa6bda3e1ef4d: enetc: Simply TX ring credits counting logic
Branches
Unknown
Tags
Unknown