if_igb.c (254264) | if_igb.c (254804) |
---|---|
1/****************************************************************************** 2 3 Copyright (c) 2001-2013, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 16 unchanged lines hidden (view full) --- 25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 POSSIBILITY OF SUCH DAMAGE. 31 32******************************************************************************/ | 1/****************************************************************************** 2 3 Copyright (c) 2001-2013, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 16 unchanged lines hidden (view full) --- 25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 POSSIBILITY OF SUCH DAMAGE. 31 32******************************************************************************/ |
33/*$FreeBSD: head/sys/dev/e1000/if_igb.c 254264 2013-08-13 00:25:39Z jfv $*/ | 33/*$FreeBSD: head/sys/dev/e1000/if_igb.c 254804 2013-08-24 19:51:18Z andre $*/ |
34 35 36#include "opt_inet.h" 37#include "opt_inet6.h" 38 39#ifdef HAVE_KERNEL_OPTION_HEADERS 40#include "opt_device_polling.h" 41#include "opt_altq.h" --- 4934 unchanged lines hidden (view full) --- 4976 /* IP Checksum Good */ 4977 mp->m_pkthdr.csum_flags = CSUM_IP_CHECKED; 4978 mp->m_pkthdr.csum_flags |= CSUM_IP_VALID; 4979 } else 4980 mp->m_pkthdr.csum_flags = 0; 4981 } 4982 4983 if (status & (E1000_RXD_STAT_TCPCS | E1000_RXD_STAT_UDPCS)) { | 34 35 36#include "opt_inet.h" 37#include "opt_inet6.h" 38 39#ifdef HAVE_KERNEL_OPTION_HEADERS 40#include "opt_device_polling.h" 41#include "opt_altq.h" --- 4934 unchanged lines hidden (view full) --- 4976 /* IP Checksum Good */ 4977 mp->m_pkthdr.csum_flags = CSUM_IP_CHECKED; 4978 mp->m_pkthdr.csum_flags |= CSUM_IP_VALID; 4979 } else 4980 mp->m_pkthdr.csum_flags = 0; 4981 } 4982 4983 if (status & (E1000_RXD_STAT_TCPCS | E1000_RXD_STAT_UDPCS)) { |
4984 u16 type = (CSUM_DATA_VALID | CSUM_PSEUDO_HDR); | 4984 u64 type = (CSUM_DATA_VALID | CSUM_PSEUDO_HDR); |
4985#if __FreeBSD_version >= 800000 4986 if (sctp) /* reassign */ 4987 type = CSUM_SCTP_VALID; 4988#endif 4989 /* Did it pass? */ 4990 if (!(errors & E1000_RXD_ERR_TCPE)) { 4991 mp->m_pkthdr.csum_flags |= type; 4992 if (sctp == 0) --- 1067 unchanged lines hidden --- | 4985#if __FreeBSD_version >= 800000 4986 if (sctp) /* reassign */ 4987 type = CSUM_SCTP_VALID; 4988#endif 4989 /* Did it pass? */ 4990 if (!(errors & E1000_RXD_ERR_TCPE)) { 4991 mp->m_pkthdr.csum_flags |= type; 4992 if (sctp == 0) --- 1067 unchanged lines hidden --- |