summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-04-20 14:54:59 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-04-20 14:54:59 +0000
commit001b3d12570bfa08c409e5bc9e1a8a299473cb9e (patch)
tree50eeb8ea2de2313ede82fbf9e0faa59d3ae8b3c8
parent04fd41f74716b91800841032f488fd4e886632d8 (diff)
Don't ask for ipv6 checksum offloading as we aren't ready for it.
Due to the messy context setup code this was breaking ipv6 forwarding when ipv4 offloading was enabled. All checksum offloading remains disabled for now. Debugged with and ok claudio@
-rw-r--r--sys/dev/pci/if_ix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index 3fb1c3e5009..6d3e6afe1aa 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.41 2010/03/22 17:20:27 jsg Exp $ */
+/* $OpenBSD: if_ix.c,v 1.42 2010/04/20 14:54:58 jsg Exp $ */
/******************************************************************************
@@ -1951,7 +1951,9 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, struct mbuf *mp)
struct ixgbe_tx_buf *tx_buffer;
uint32_t vlan_macip_lens = 0, type_tucmd_mlhl = 0;
struct ip *ip;
+#ifdef notyet
struct ip6_hdr *ip6;
+#endif
uint8_t ipproto = 0;
int ehdrlen, ip_hlen = 0;
uint16_t etype;
@@ -2017,6 +2019,7 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, struct mbuf *mp)
if (mp->m_pkthdr.csum_flags & M_IPV4_CSUM_OUT)
type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4;
break;
+#ifdef notyet
case ETHERTYPE_IPV6:
ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
ip_hlen = sizeof(struct ip6_hdr);
@@ -2026,6 +2029,7 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, struct mbuf *mp)
if (mp->m_pkthdr.csum_flags & M_IPV4_CSUM_OUT)
type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV6;
break;
+#endif
default:
offload = FALSE;
break;