diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 2007-01-25 17:30:30 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 2007-01-25 17:30:30 +0000 |
| commit | e2bcb489ef11a8045bc2ea8d812a06d3dcdf9aaf (patch) | |
| tree | a6da898a8ac95b77504c3043193a5e7a46b61298 /sys | |
| parent | 63cb891e8b21e878a6761624d24dc139dcf0d153 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/re/if_re.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 98b121fb0814f..6ac6519faa751 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -2071,8 +2071,13 @@ re_encap(sc, m_head, idx) * the mbuf chain has too many fragments so the coalescing code * below can assemble the packet into a single buffer that's * padded out to the mininum frame size. + * + * Note: this appears unnecessary for TCP, and doing it for TCP + * with PCIe adapters seems to result in bad checksums. */ - if (arg.rl_flags && (*m_head)->m_pkthdr.len < RL_MIN_FRAMELEN) + + if (arg.rl_flags && !(arg.rl_flags & RL_TDESC_CMD_TCPCSUM) && + (*m_head)->m_pkthdr.len < RL_MIN_FRAMELEN) error = EFBIG; else error = bus_dmamap_load_mbuf(sc->rl_ldata.rl_mtag, map, |
