diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-01-20 22:00:26 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@kernel.org> | 2008-01-20 22:00:26 +0200 |
commit | cffb92d239bd8a236fea210f09a791aae222a50a (patch) | |
tree | 1a91e0f076554d173ecfbf2494149b4b72e643d3 /net/unix/sysctl_net_unix.c | |
parent | 52f6ca5fd3ee8658e72a901bce6d91eaa7940c6b (diff) |
[CASSINI]: Fix endianness bug.
[ Upstream commit: e5e025401f6e926c1d9dc3f3f2813cf98a2d8708 ]
Here's proposed fix for RX checksum handling in cassini; it affects
little-endian working with half-duplex gigabit, but obviously needs
testing on big-endian too.
The problem is, we need to convert checksum to fixed-endian *before*
correcting for (unstripped) FCS. On big-endian it won't matter
(conversion is no-op), on little-endian it will, but only if FCS is
not stripped by hardware; i.e. in half-duplex gigabit mode when
->crc_size is set.
cassini.c part is that fix, cassini.h one consists of trivial
endianness annotations. With that applied the sucker is endian-clean,
according to sparse.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions