diff options
author | np <np@FreeBSD.org> | 2015-10-30 01:18:07 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2015-10-30 01:18:07 +0000 |
commit | 949e84b266cc7b3ae7f1c83e09223981fe6a0f0b (patch) | |
tree | 81d009bb72ad4a3403d0a269f309b9c4aaaf4cc9 /sys/dev/cxgbe | |
parent | 2e85b00467edc593503fb6ee01981901f19adaf4 (diff) | |
download | FreeBSD-src-949e84b266cc7b3ae7f1c83e09223981fe6a0f0b.zip FreeBSD-src-949e84b266cc7b3ae7f1c83e09223981fe6a0f0b.tar.gz |
cxgbe/tom: decide whether to shove segments or not only if there is
payload to transmit.
MFC after: 1 week
Diffstat (limited to 'sys/dev/cxgbe')
-rw-r--r-- | sys/dev/cxgbe/tom/t4_cpl_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/tom/t4_cpl_io.c b/sys/dev/cxgbe/tom/t4_cpl_io.c index eb972d0..efd683b 100644 --- a/sys/dev/cxgbe/tom/t4_cpl_io.c +++ b/sys/dev/cxgbe/tom/t4_cpl_io.c @@ -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 */ |