Re: [PATCH net] net/mlx4_en: Fix endianness bug in IPV6 csum calculation

2016-05-05 Thread David Miller
From: Tariq Toukan Date: Wed, 4 May 2016 15:00:33 +0300 > From: Daniel Jurgens > > Use htons instead of unconditionally byte swapping nexthdr. On a little > endian systems shifting the byte is correct behavior, but it results in > incorrect csums on big endian architectures. > > Fixes: f8c64

[PATCH net] net/mlx4_en: Fix endianness bug in IPV6 csum calculation

2016-05-04 Thread Tariq Toukan
From: Daniel Jurgens Use htons instead of unconditionally byte swapping nexthdr. On a little endian systems shifting the byte is correct behavior, but it results in incorrect csums on big endian architectures. Fixes: f8c6455bb04b ('net/mlx4_en: Extend checksum offloading by CHECKSUM COMPLETE')