]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): Catch up with in-flight netmap rx before destroying queues.
authornp <np@FreeBSD.org>
Sat, 21 Nov 2020 03:27:32 +0000 (03:27 +0000)
committernp <np@FreeBSD.org>
Sat, 21 Nov 2020 03:27:32 +0000 (03:27 +0000)
commit8e8b8691b17c7bb1cfe6e40f15f94f94ec509da9
tree7dff74728b974c41de2c521c74b016cfbf31e7b8
parentdd05efc4c17bb3b280e744b0cd37977d685a6b76
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