freebsd-skq/sys/dev/cxgb
Alexander Motin 9dc7c250b8 cxgb(4): Remove assumption of physically contiguous mbufs.
Investigation of iSCSI target data corruption reports brought me to
discovery that cxgb(4) expects mbufs to be physically contiguous, that
is not true after I've started using m_extaddref() in software iSCSI
for large zero-copy transmissions.  In case of fragmented memory the
driver transmitted garbage from pages following the first one due to
simple use of pmap_kextract() for the first pointer instead of proper
bus_dmamap_load_mbuf_sg().  Seems like it was done as some optimization
many years ago, and at very least it is wrong in a world of IOMMUs.

This patch just removes that optimization, plus limits packet coalescing
for mbufs crossing page boundary, also depending on assumption of one
segment per packet.

MFC after:	3 days
Sponsored by:	iXsystems, Inc.
Reviewed by:	mmacy, np
Differential revision:	https://reviews.freebsd.org/D28428
2021-01-31 12:55:06 -05:00
..
common
sys cxgb(4): Remove assumption of physically contiguous mbufs. 2021-01-31 12:55:06 -05:00
bin2h.pl
cxgb_adapter.h
cxgb_include.h
cxgb_ioctl.h
cxgb_main.c Avoid trying to toggle TSO twice 2020-06-15 16:35:27 +00:00
cxgb_offload.h
cxgb_osdep.h Remove conditional code for FreeBSD 8 and earlier frmo cxgb. 2020-03-01 18:17:56 +00:00
cxgb_sge.c cxgb(4): Remove assumption of physically contiguous mbufs. 2021-01-31 12:55:06 -05:00
cxgb_t3fw.c
cxgb_t3fw.h
t3b_protocol_sram.h
t3b_tp_eeprom.h
t3c_protocol_sram.h
t3c_tp_eeprom.h