mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-03 03:41:49 +00:00
Increment the pending packets more aggressively for TSO
Assume the number of description used is reasonable value to increment this otherwise opaque field by. While here, reduce a minor difference between the legacy and multiqueue transmit paths. MFC after: 1 week
This commit is contained in:
parent
1204e3745a
commit
2a87457c75
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267663
1 changed files with 3 additions and 3 deletions
|
@ -2856,7 +2856,8 @@ vmxnet3_txq_encap(struct vmxnet3_txqueue *txq, struct mbuf **m0)
|
|||
vmxnet3_barrier(sc, VMXNET3_BARRIER_WR);
|
||||
sop->gen ^= 1;
|
||||
|
||||
if (++txq->vxtxq_ts->npending >= txq->vxtxq_ts->intr_threshold) {
|
||||
txq->vxtxq_ts->npending += nsegs;
|
||||
if (txq->vxtxq_ts->npending >= txq->vxtxq_ts->intr_threshold) {
|
||||
txq->vxtxq_ts->npending = 0;
|
||||
vmxnet3_write_bar0(sc, VMXNET3_BAR0_TXH(txq->vxtxq_id),
|
||||
txr->vxtxr_head);
|
||||
|
@ -2973,8 +2974,7 @@ vmxnet3_txq_mq_start_locked(struct vmxnet3_txqueue *txq, struct mbuf *m)
|
|||
break;
|
||||
}
|
||||
|
||||
error = vmxnet3_txq_encap(txq, &m);
|
||||
if (error) {
|
||||
if (vmxnet3_txq_encap(txq, &m) != 0) {
|
||||
if (m != NULL)
|
||||
drbr_putback(ifp, br, m);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue