Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20e777a2 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik
Browse files

[PATCH] skge: bad checksums on big-endian platforms



Skge driver always causes  bad checksums on big-endian.
The checksum in the receive control block was being swapped
when it doesn't need to be.

Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent e988bcdb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2716,8 +2716,7 @@ static int skge_poll(struct net_device *dev, int *budget)
		if (control & BMU_OWN)
			break;

		skb = skge_rx_get(skge, e, control, rd->status,
				  le16_to_cpu(rd->csum2));
		skb = skge_rx_get(skge, e, control, rd->status, rd->csum2);
		if (likely(skb)) {
			dev->last_rx = jiffies;
			netif_receive_skb(skb);