mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
cxgbe/tom: decide whether to shove segments or not only if there is
payload to transmit. MFC after: 1 week
This commit is contained in:
parent
069cc8a45f
commit
baa7d0bf9d
1 changed files with 1 additions and 1 deletions
|
|
@ -675,7 +675,6 @@ t4_push_frames(struct adapter *sc, struct toepcb *toep, int drop)
|
|||
}
|
||||
}
|
||||
|
||||
shove = m == NULL && !(tp->t_flags & TF_MORETOCOME);
|
||||
space = sbspace(sb);
|
||||
|
||||
if (space <= sb->sb_hiwat * 3 / 8 &&
|
||||
|
|
@ -712,6 +711,7 @@ t4_push_frames(struct adapter *sc, struct toepcb *toep, int drop)
|
|||
if (__predict_false(toep->flags & TPF_FIN_SENT))
|
||||
panic("%s: excess tx.", __func__);
|
||||
|
||||
shove = m == NULL && !(tp->t_flags & TF_MORETOCOME);
|
||||
if (plen <= max_imm) {
|
||||
|
||||
/* Immediate data tx */
|
||||
|
|
|
|||
Loading…
Reference in a new issue