[patch] fix 3c59x for current 2.5-bk

Andrew Morton (akpm@digeo.com)
Wed, 16 Oct 2002 18:33:05 -0700


The networking guys have been doing stuff, and the following
patch from Alexey is needed to make the 3c59x ethernet driver
work with udp. It teaches driver to add hardware checksums to
outgoing UDP frames.

--- 2.5.43/drivers/net/3c59x.c~3c59x-udp-csum Wed Oct 16 11:59:43 2002
+++ 2.5.43-akpm/drivers/net/3c59x.c Wed Oct 16 11:59:43 2002
@@ -2052,7 +2052,7 @@ boomerang_start_xmit(struct sk_buff *skb
if (skb->ip_summed != CHECKSUM_HW)
vp->tx_ring[entry].status = cpu_to_le32(skb->len | TxIntrUploaded);
else
- vp->tx_ring[entry].status = cpu_to_le32(skb->len | TxIntrUploaded | AddTCPChksum);
+ vp->tx_ring[entry].status = cpu_to_le32(skb->len | TxIntrUploaded | AddTCPChksum | AddUDPChksum);

if (!skb_shinfo(skb)->nr_frags) {
vp->tx_ring[entry].frag[0].addr = cpu_to_le32(pci_map_single(vp->pdev, skb->data,

.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/