diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-11-13 19:13:09 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-11-13 19:13:09 +0000 |
commit | 047faa3cd1f85cf41de30c119f95674f682d3099 (patch) | |
tree | 2ba1b8d2b3ec8ddad3e66aea13c128aa9abc5922 /sys/dev/pci/if_oce.c | |
parent | 759c3b4fc78486fe20df3c4aabf542d42b425bb3 (diff) |
enable hardware tx checksum offloading as oce doesn't
seem to require an initialized pseudo-header checksum
Diffstat (limited to 'sys/dev/pci/if_oce.c')
-rw-r--r-- | sys/dev/pci/if_oce.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_oce.c b/sys/dev/pci/if_oce.c index 9bfdf578ea9..4ec4703eab5 100644 --- a/sys/dev/pci/if_oce.c +++ b/sys/dev/pci/if_oce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_oce.c,v 1.58 2012/11/13 17:52:11 mikeb Exp $ */ +/* $OpenBSD: if_oce.c,v 1.59 2012/11/13 19:13:08 mikeb Exp $ */ /* * Copyright (c) 2012 Mike Belopuhov @@ -835,7 +835,8 @@ oce_attach_ifp(struct oce_softc *sc) /* oce splits jumbos into 2k chunks... */ m_clsetwms(ifp, MCLBYTES, 8, sc->sc_rx_ring_size); - ifp->if_capabilities = IFCAP_VLAN_MTU; + ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_CSUM_IPv4 | + IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4; #if NVLAN > 0 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING; |