diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2019-09-20 18:18:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-24 16:53:19 +0200 |
commit | 5aafeb74b5bb65b34cc87c7623f9fa163a34fa3b (patch) | |
tree | f048c2befac66edd4f590bcd64b795cc35671a84 /drivers/net | |
parent | 02a07046834e64970f3bcd87a422ac2b0adb80de (diff) | |
download | linux-5aafeb74b5bb65b34cc87c7623f9fa163a34fa3b.tar.bz2 |
skge: fix checksum byte order
Running old skge driver on PowerPC causes checksum errors
because hardware reported 1's complement checksum is in little-endian
byte order.
Reported-by: Benoit <benoit.sansoni@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/marvell/skge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c index 0a2ec387a482..095f6c71b4fa 100644 --- a/drivers/net/ethernet/marvell/skge.c +++ b/drivers/net/ethernet/marvell/skge.c @@ -3108,7 +3108,7 @@ static struct sk_buff *skge_rx_get(struct net_device *dev, skb_put(skb, len); if (dev->features & NETIF_F_RXCSUM) { - skb->csum = csum; + skb->csum = le16_to_cpu(csum); skb->ip_summed = CHECKSUM_COMPLETE; } |