diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-06-05 06:05:07 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-06-05 06:05:07 +0000 |
commit | 8dd666b3ff29afc3fb42caa7e0d109416665b3f8 (patch) | |
tree | 7a14f19170ea7ba62eca9d62fcb23bd28eb9b06c /sys/dev/pci/if_jme.c | |
parent | 2342d7e9296ec02608fc4c012538072cb78aae14 (diff) |
enable IPv6 receive TCP/UDP checksum offload; from Brad
Diffstat (limited to 'sys/dev/pci/if_jme.c')
-rw-r--r-- | sys/dev/pci/if_jme.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/if_jme.c b/sys/dev/pci/if_jme.c index ba8d7f18473..08ef0fee257 100644 --- a/sys/dev/pci/if_jme.c +++ b/sys/dev/pci/if_jme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_jme.c,v 1.18 2009/03/29 21:53:52 sthen Exp $ */ +/* $OpenBSD: if_jme.c,v 1.19 2009/06/05 06:05:06 naddy Exp $ */ /*- * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org> * All rights reserved. @@ -1689,9 +1689,11 @@ jme_rxpkt(struct jme_softc *sc) m->m_data += JME_RX_PAD_BYTES; /* Set checksum information. */ - if (flags & JME_RD_IPV4) { - if (flags & JME_RD_IPCSUM) - m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK; + if (flags & (JME_RD_IPV4|JME_RD_IPV6)) { + if ((flags & JME_RD_IPV4) && + (flags & JME_RD_IPCSUM)) + m->m_pkthdr.csum_flags |= + M_IPV4_CSUM_IN_OK; if ((flags & JME_RD_MORE_FRAG) == 0 && ((flags & (JME_RD_TCP | JME_RD_TCPCSUM)) == (JME_RD_TCP | JME_RD_TCPCSUM) || |