Blame SOURCES/0002-skge-fix-checksum-byte-order.patch
|
Kmods SIG |
5c37b1 |
From 5aafeb74b5bb65b34cc87c7623f9fa163a34fa3b Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
5c37b1 |
From: Stephen Hemminger <stephen@networkplumber.org>
|
|
Kmods SIG |
5c37b1 |
Date: Fri, 20 Sep 2019 18:18:26 +0200
|
|
Kmods SIG |
5c37b1 |
Subject: [Backport 5aafeb74b5bb] skge: fix checksum byte order
|
|
Kmods SIG |
5c37b1 |
|
|
Kmods SIG |
5c37b1 |
Running old skge driver on PowerPC causes checksum errors
|
|
Kmods SIG |
5c37b1 |
because hardware reported 1's complement checksum is in little-endian
|
|
Kmods SIG |
5c37b1 |
byte order.
|
|
Kmods SIG |
5c37b1 |
|
|
Kmods SIG |
5c37b1 |
Reported-by: Benoit <benoit.sansoni@gmail.com>
|
|
Kmods SIG |
5c37b1 |
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
|
Kmods SIG |
5c37b1 |
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
Kmods SIG |
5c37b1 |
---
|
|
Kmods SIG |
5c37b1 |
src/skge.c | 2 +-
|
|
Kmods SIG |
5c37b1 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kmods SIG |
5c37b1 |
|
|
Kmods SIG |
5c37b1 |
diff --git a/src/skge.c b/src/skge.c
|
|
Kmods SIG |
5c37b1 |
index 0a2ec387a482f66df3ecd61ce3daba829a53a8bc..095f6c71b4fa1dc61476be81f49c1b5c11a5c19b 100644
|
|
Kmods SIG |
5c37b1 |
--- a/src/skge.c
|
|
Kmods SIG |
5c37b1 |
+++ b/src/skge.c
|
|
Kmods SIG |
5c37b1 |
@@ -3108,7 +3108,7 @@ static struct sk_buff *skge_rx_get(struct net_device *dev,
|
|
Kmods SIG |
5c37b1 |
skb_put(skb, len);
|
|
Kmods SIG |
5c37b1 |
|
|
Kmods SIG |
5c37b1 |
if (dev->features & NETIF_F_RXCSUM) {
|
|
Kmods SIG |
5c37b1 |
- skb->csum = csum;
|
|
Kmods SIG |
5c37b1 |
+ skb->csum = le16_to_cpu(csum);
|
|
Kmods SIG |
5c37b1 |
skb->ip_summed = CHECKSUM_COMPLETE;
|
|
Kmods SIG |
5c37b1 |
}
|
|
Kmods SIG |
5c37b1 |
|
|
Kmods SIG |
5c37b1 |
--
|
|
Kmods SIG |
5c37b1 |
2.31.1
|
|
Kmods SIG |
5c37b1 |
|