summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2018-03-26 21:03:33 +0000
committerhselasky <hselasky@FreeBSD.org>2018-03-26 21:03:33 +0000
commitc13ebd3912c502d563c09cbd783d449a57211957 (patch)
tree0a2650f983415e04730b654e43ca85549f2afee6 /sys/cam
parent2f448c4e181ba811f497129792af64e2f84358ff (diff)
downloadFreeBSD-src-c13ebd3912c502d563c09cbd783d449a57211957.zip
FreeBSD-src-c13ebd3912c502d563c09cbd783d449a57211957.tar.gz
MFC r330658:
Fix mlx5en(4) driver to properly call m_defrag(). When the mlx5en(4) driver was converted to using BUSDMA(9) the call to m_defrag() was moved after the part of the TX routine that strips the header from the mbuf chain. Before it called m_defrag it first trimmed off the now-empty mbufs from the start of the chain. This has the side effect of also removing the head of the chain that has M_PKTHDR set. m_defrag() will not defrag a chain that does not have M_PKTHDR set, thus it was effectively never defragging the mbuf chains. As it turns out, trimming the mbufs in this fashion is unnecessary since the call to bus_dmamap_load_mbuf_sg doesn't map empty mbufs anyway, so remove it. Differential Revision: https://reviews.freebsd.org/D12050 Submitted by: mjoras@ Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/cam')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud