projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a0704
)
skge: fix checksum byte order
author
Stephen Hemminger
<
[email protected]
>
Fri, 20 Sep 2019 16:18:26 +0000
(18:18 +0200)
committer
David S. Miller
<
[email protected]
>
Tue, 24 Sep 2019 14:53:19 +0000
(16:53 +0200)
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 <
[email protected]
>
Signed-off-by: Stephen Hemminger <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/marvell/skge.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/marvell/skge.c
b/drivers/net/ethernet/marvell/skge.c
index 0a2ec387a482f66df3ecd61ce3daba829a53a8bc..095f6c71b4fa1dc61476be81f49c1b5c11a5c19b 100644
(file)
--- 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;
}