nm_tx_pending
int pending = nm_tx_pending(ring);
while (!targ->cancel && nm_tx_pending(txring)) {
while (!targ->cancel && nm_tx_pending(ring)) {