]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ensure the received IP header gets 32-bits aligned.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 14 Apr 2016 14:10:40 +0000 (14:10 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 14 Apr 2016 14:10:40 +0000 (14:10 +0000)
commitb03aadaffc87deff373e509486fe8eb6a173ee58
tree0336f3697a458788645cddca7675e3985a15b3cd
parent617e1ff301d5f426b3fea725d9f90cde2b1dc100
Ensure the received IP header gets 32-bits aligned.

The FreeBSD's TCP/IP stack assumes that the IP-header is 32-bits aligned
when decoding it. Else unaligned 32-bit memory access can happen, which
not all processor architectures support.

Sponsored by: Mellanox Technologies
MFC after: 1 week
sys/ofed/drivers/net/mlx4/en_rx.c
sys/ofed/drivers/net/mlx4/mlx4_en.h