svn commit: r339267 - head/sys/dev/e1000
Stephen Hurd
shurd at FreeBSD.org
Tue Oct 9 20:16:20 UTC 2018
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 */
More information about the svn-src-all
mailing list