]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netmap: bridge: fix transmission in busy-wait mode
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Tue, 30 Mar 2021 06:24:56 +0000 (06:24 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Wed, 7 Apr 2021 21:05:28 +0000 (21:05 +0000)
commit3f70c3d58f9330039707037b1242ca13ac390cad
tree41aa2e32be0ce0b33c46bbcdb98a7208e395ef44
parent06d8a9c86adfecd16f55053f852f37ceadd26257
netmap: bridge: fix transmission in busy-wait mode

In busy-wait mode (BUSYWAIT defined), NIOCTXSYNC should be
performed after packets have been moved to the TX ring
(rather than before).
Before the change, moved packets may stall for an indefinite
time in the TX ring.

MFC after: 1 week

(cherry picked from commit 51cc31088bf4d23a6ad0bfe8851adaa049d750fc)
tools/tools/netmap/bridge.c