netdev
[Top] [All Lists]

[1/9][PATCH 2.6] Nuke HAS_IP_COPYSUM

To: Jeff Garzik <jgarzik@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>
Subject: [1/9][PATCH 2.6] Nuke HAS_IP_COPYSUM
From: Roger Luethi <rl@xxxxxxxxxxx>
Date: Wed, 2 Jun 2004 13:57:54 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20040602115703.GA16079@k3.hellgate.ch>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
HAS_IP_COPYSUM has been utterly meaningless for a long time.

Signed-off-by: Roger Luethi <rl@xxxxxxxxxxx>

--- orig/drivers/net/via-rhine.c
+++ mod/drivers/net/via-rhine.c
@@ -1563,15 +1563,10 @@
                                   eth_copy_and_sum is memcpy for all archs so
                                   this is kind of pointless right now
                                   ... or? */
-#if HAS_IP_COPYSUM             /* Call copy + cksum if available. */
                                eth_copy_and_sum(skb,
                                                 rp->rx_skbuff[entry]->tail,
                                                 pkt_len, 0);
                                skb_put(skb, pkt_len);
-#else
-                               memcpy(skb_put(skb, pkt_len),
-                                      rp->rx_skbuff[entry]->tail, pkt_len);
-#endif
                                pci_dma_sync_single_for_device(rp->pdev,
                                                               
rp->rx_skbuff_dma[entry],
                                                               rp->rx_buf_sz,




<Prev in Thread] Current Thread [Next in Thread>