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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290175
@ -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 New Issue
Block a user