]> 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>
Sat, 21 Nov 2020 03:27:32 +0000 (03:27 +0000)
commitb3718e2d7ebfe7fc0bb57bd0906aacc28dd755b2
tree7dff74728b974c41de2c521c74b016cfbf31e7b8
parent9a201fad1d84ff2c722a8cfde30272980c5021d8
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.

MFC after: 1 week
Sponsored by: Chelsio Communications
sys/dev/cxgbe/adapter.h
sys/dev/cxgbe/t4_netmap.c