diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-11-27 16:10:24 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-11-27 16:10:24 +0000 |
commit | 21e5243295b3a7089fb28c5f6f613d48ecee5f5f (patch) | |
tree | 518c673585bef1e5302252b42675f6b1a8c456e9 /sys/dev/pci/if_ix.c | |
parent | d589bc8371e534b4b76cb969bd6d0ef5e8b691c6 (diff) |
Checksum fix from reyk (rev1.31) that was lost during update:
Fix the IP ckecksum offloading logic that disables and breaks 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).
Tested on 82598 and 82599 (though checksums are still disabled by default).
ok claudio
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r-- | sys/dev/pci/if_ix.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index fdcd8174cb3..d405870d956 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.54 2011/06/18 21:19:44 claudio Exp $ */ +/* $OpenBSD: if_ix.c,v 1.55 2011/11/27 16:10:23 mikeb Exp $ */ /****************************************************************************** @@ -2284,9 +2284,6 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, struct mbuf *mp) if (mp->m_pkthdr.csum_flags & M_UDP_CSUM_OUT) type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_L4T_UDP; break; - default: - offload = FALSE; - break; } /* Now copy bits into descriptor */ |