Here is a diff to enable the checksum offload support for jme(4).

Tested with..
jme0 at pci4 dev 0 function 0 "JMicron JMC250" rev 0x11


Index: if_jme.c
===================================================================
RCS file: /home/cvs/src/sys/dev/pci/if_jme.c,v
retrieving revision 1.28
diff -u -p -r1.28 if_jme.c
--- if_jme.c    22 Oct 2012 09:19:17 -0000      1.28
+++ if_jme.c    4 Nov 2012 06:40:12 -0000
@@ -614,12 +614,8 @@ jme_attach(struct device *parent, struct
        IFQ_SET_READY(&ifp->if_snd);
        strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ);
 
-       ifp->if_capabilities = IFCAP_VLAN_MTU;
-
-#ifdef JME_CHECKSUM
-       ifp->if_capabilities |= IFCAP_CSUM_IPv4 | IFCAP_CSUM_TCPv4 |
-                               IFCAP_CSUM_UDPv4;
-#endif
+       ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_CSUM_IPv4 |
+           IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4;
 
 #if NVLAN > 0
        ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to