ipg: remove commented out code

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Cc: Sorbica Shieh <sorbica@icplus.com.tw>
Cc: Jesse Huang <jesse@icplus.com.tw>
This commit is contained in:
Pekka Enberg 2007-11-30 09:54:33 +02:00 committed by David S. Miller
parent 1662e4b7af
commit 6d3b2cb92b
2 changed files with 7 additions and 31 deletions

View File

@ -1483,35 +1483,13 @@ static int ipg_nic_rx(struct net_device *dev)
/* Set the buffer's protocol field to Ethernet. */ /* Set the buffer's protocol field to Ethernet. */
skb->protocol = eth_type_trans(skb, dev); skb->protocol = eth_type_trans(skb, dev);
/* If the frame contains an IP/TCP/UDP frame, /* The IPG encountered an error with (or
* determine if upper layer must check IP/TCP/UDP * there were no) IP/TCP/UDP checksums.
* checksums. * This may or may not indicate an invalid
* * IP/TCP/UDP frame was received. Let the
* NOTE: DO NOT RELY ON THE TCP/UDP CHECKSUM * upper layer decide.
* VERIFICATION FOR SILICON REVISIONS B3
* AND EARLIER!
*
if ((le64_to_cpu(rxfd->rfs &
(IPG_RFS_TCPDETECTED | IPG_RFS_UDPDETECTED |
IPG_RFS_IPDETECTED))) &&
!(le64_to_cpu(rxfd->rfs &
(IPG_RFS_TCPERROR | IPG_RFS_UDPERROR |
IPG_RFS_IPERROR)))) {
* Indicate IP checksums were performed
* by the IPG.
*
skb->ip_summed = CHECKSUM_UNNECESSARY;
} else
*/ */
{ skb->ip_summed = CHECKSUM_NONE;
/* The IPG encountered an error with (or
* there were no) IP/TCP/UDP checksums.
* This may or may not indicate an invalid
* IP/TCP/UDP frame was received. Let the
* upper layer decide.
*/
skb->ip_summed = CHECKSUM_NONE;
}
/* Hand off frame for higher layer processing. /* Hand off frame for higher layer processing.
* The function netif_rx() releases the sk_buff * The function netif_rx() releases the sk_buff

View File

@ -23,7 +23,6 @@
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/version.h> #include <linux/version.h>
#include <asm/bitops.h> #include <asm/bitops.h>
/*#include <asm/spinlock.h>*/
/* /*
* Constants * Constants
@ -733,8 +732,7 @@ enum ipg_regs {
* Miscellaneous macros. * Miscellaneous macros.
*/ */
/* Marco for printing debug statements. /* Marco for printing debug statements. */
# define IPG_DDEBUG_MSG(args...) printk(KERN_DEBUG "IPG: " ## args) */
#ifdef IPG_DEBUG #ifdef IPG_DEBUG
# define IPG_DEBUG_MSG(args...) # define IPG_DEBUG_MSG(args...)
# define IPG_DDEBUG_MSG(args...) printk(KERN_DEBUG "IPG: " args) # define IPG_DDEBUG_MSG(args...) printk(KERN_DEBUG "IPG: " args)