]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): Fix bug in the calculation of the number of physically
authornp <np@FreeBSD.org>
Mon, 24 Oct 2016 19:09:56 +0000 (19:09 +0000)
committernp <np@FreeBSD.org>
Mon, 24 Oct 2016 19:09:56 +0000 (19:09 +0000)
commit9a985129dad464b825577f875bad822ecdf4c6f8
treeedc40eadff1ad3f47352432eeaf3fc36627690a3
parent03c2e26593992ec2ca13b880aa347ca3f1babbc0
cxgbe(4): Fix bug in the calculation of the number of physically
contiguous regions in an mbuf chain.

If the payload of an mbuf ends at a page boundary count_mbuf_nsegs would
incorrectly consider the next mbuf's payload physically contiguous based
solely on a KVA comparison.

MFC after: 1 week
Sponsored by: Chelsio Communications
sys/dev/cxgbe/t4_sge.c