Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2018 20:16:19 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339267 - head/sys/dev/e1000
Message-ID:  <201810092016.w99KGJX0097037@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Tue Oct  9 20:16:19 2018
New Revision: 339267
URL: https://svnweb.freebsd.org/changeset/base/339267

Log:
  Use mbuf defines to construct csum offload masks rather than literals
  
  Reviewed by:	erj
  Approved by:	re (rgrimes)
  Sponsored by:	Limelight Networks
  Differential Revision:	https://reviews.freebsd.org/D17442

Modified:
  head/sys/dev/e1000/if_em.h

Modified: head/sys/dev/e1000/if_em.h
==============================================================================
--- head/sys/dev/e1000/if_em.h	Tue Oct  9 19:46:27 2018	(r339266)
+++ head/sys/dev/e1000/if_em.h	Tue Oct  9 20:16:19 2018	(r339267)
@@ -341,8 +341,11 @@
 #define EM_MSIX_LINK		0x01000000 /* For 82574 use */
 #define ETH_ZLEN		60
 #define ETH_ADDR_LEN		6
-#define EM_CSUM_OFFLOAD		7	/* Offload bits in mbuf flag */
-#define IGB_CSUM_OFFLOAD	0x0E0F	/* Offload bits in mbuf flag */
+#define EM_CSUM_OFFLOAD		(CSUM_IP | CSUM_IP_UDP | CSUM_IP_TCP) /* Offload bits in mbuf flag */
+#define IGB_CSUM_OFFLOAD	(CSUM_IP | CSUM_IP_UDP | CSUM_IP_TCP | \
+				 CSUM_IP_SCTP | CSUM_IP6_UDP | CSUM_IP6_TCP | \
+				 CSUM_IP6_SCTP)	/* Offload bits in mbuf flag */
+
 
 #define IGB_PKTTYPE_MASK	0x0000FFF0
 #define IGB_DMCTLX_DCFLUSH_DIS	0x80000000  /* Disable DMA Coalesce Flush */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810092016.w99KGJX0097037>