netdev
[Top] [All Lists]

[PATCH] r8169 tx checksuming on by default

To: Francois Romieu <romieu@xxxxxxxxxxxxx>
Subject: [PATCH] r8169 tx checksuming on by default
From: Jon Mason <jdmason@xxxxxxxxxx>
Date: Thu, 28 Oct 2004 17:00:46 -0500
Cc: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
In-reply-to: <20041028074827.GA3572@electric-eye.fr.zoreil.com>
Organization: IBM
References: <41802CA8.8070900@candelatech.com> <20041028074827.GA3572@electric-eye.fr.zoreil.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.6.2
The tx checksumming and scatter-gather in r8169 runs well.  Below is a trivial 
patch to turn them on by default.  


--- r8169.c.orig        2004-10-28 15:02:07.000000000 -0500
+++ r8169.c     2004-10-28 15:21:03.000000000 -0500
@@ -1337,6 +1337,8 @@ rtl8169_init_one(struct pci_dev *pdev, c
        dev->poll_controller = rtl8169_netpoll;
 #endif

+       dev->features |= NETIF_F_IP_CSUM | NETIF_F_SG;
+
        tp->intr_mask = 0xffff;
        tp->pci_dev = pdev;
        tp->mmio_addr = ioaddr;


-- 
Jon Mason
jdmason@xxxxxxxxxx

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