summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2010-01-09 05:30:20 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2010-01-09 05:30:20 +0000
commitd8862837d00b64dd7d286b0984d8ba350b999488 (patch)
tree5dc571bb365d95abec2112d02b46dad79d06511e /sys
parentd2782fe7b87832bcc450bd448323f0870474b077 (diff)
Fix the IP ckecksum offloading logic that disables and breakes offloading
if the packet is neither TCP nor UDP because of an erroneous "default" case. No functional change in the default build because IP checksum offloading is currently disabled in ix(4). ok jsg@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_ix.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index 756c51a4692..deef029f47e 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.30 2009/08/13 14:24:47 jasper Exp $ */
+/* $OpenBSD: if_ix.c,v 1.31 2010/01/09 05:30:19 reyk Exp $ */
/******************************************************************************
@@ -1925,9 +1925,6 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, struct mbuf *mp)
if (mp->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT)
type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_L4T_UDP;
break;
- default:
- offload = FALSE;
- break;
}
}