]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): Catch up with in-flight netmap rx before destroying queues.
authorNavdeep Parhar <np@FreeBSD.org>
Sat, 21 Nov 2020 03:27:32 +0000 (03:27 +0000)
committerNavdeep Parhar <np@FreeBSD.org>
Wed, 20 Oct 2021 18:24:03 +0000 (11:24 -0700)
commitba2a30ed753cafa9b1a12a1cc5ec290a780422b6
tree8c170e338a442ac34a9e40395be5e6f375c89f7f
parent2f022558ce3d00eb53fd235dd87db780acd9bc25
cxgbe(4): Catch up with in-flight netmap rx before destroying queues.

The netmap application using the driver is responsible for replenishing
the receive freelists and they may be totally depleted when the
application exits.  Packets in flight, if any, might block the pipeline
in case there aren't enough buffers left in the freelist.  Avoid this by
filling up the freelists with a driver allocated buffer.

Sponsored by: Chelsio Communications

(cherry picked from commit b3718e2d7ebfe7fc0bb57bd0906aacc28dd755b2)
sys/dev/cxgbe/adapter.h
sys/dev/cxgbe/t4_netmap.c