]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix Tx offloads for fragmented pkt headers in ENA
authormw <mw@FreeBSD.org>
Thu, 30 May 2019 13:40:51 +0000 (13:40 +0000)
committermw <mw@FreeBSD.org>
Thu, 30 May 2019 13:40:51 +0000 (13:40 +0000)
commita30fcea62e494b4b86305f4d7b4ebb99e4a43f2c
tree66e32f67fe04500925b3b0bdfc1137df8403fe94
parent4f7ecf80dd1bc90545850464c2ca44be9bf93c96
Fix Tx offloads for fragmented pkt headers in ENA

If the headers of the packets are split into multiple segments of the
mbuf chain, the previous version of ena_tx_csum which was assuming,
that all segments will lay in the first mbuf, will eventually fail to
map the headers properties to meta descriptor.

That will cause Tx checksum offload to do not work and was leading to
memory corruption. It could even cause the crash of the system.

Submitted by:  Michal Krawczyk <mk@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Amazon, Inc.
sys/dev/ena/ena.c