svn commit: r283203 - stable/10/sys/dev/sfxge

Andrew Rybchenko arybchik at FreeBSD.org
Thu May 21 08:59:04 UTC 2015


Author: arybchik
Date: Thu May 21 08:59:03 2015
New Revision: 283203
URL: https://svnweb.freebsd.org/changeset/base/283203

Log:
  MFC: r282899
  
  sfxge: add local variable with Rx descriptor flags
  
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/sfxge_rx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/sfxge_rx.c
==============================================================================
--- stable/10/sys/dev/sfxge/sfxge_rx.c	Thu May 21 08:55:06 2015	(r283202)
+++ stable/10/sys/dev/sfxge/sfxge_rx.c	Thu May 21 08:59:03 2015	(r283203)
@@ -322,16 +322,17 @@ static void
 sfxge_rx_deliver(struct sfxge_softc *sc, struct sfxge_rx_sw_desc *rx_desc)
 {
 	struct mbuf *m = rx_desc->mbuf;
+	int flags = rx_desc->flags;
 	int csum_flags;
 
 	/* Convert checksum flags */
-	csum_flags = (rx_desc->flags & EFX_CKSUM_IPV4) ?
+	csum_flags = (flags & EFX_CKSUM_IPV4) ?
 		(CSUM_IP_CHECKED | CSUM_IP_VALID) : 0;
-	if (rx_desc->flags & EFX_CKSUM_TCPUDP)
+	if (flags & EFX_CKSUM_TCPUDP)
 		csum_flags |= CSUM_DATA_VALID | CSUM_PSEUDO_HDR;
 
 	/* The hash covers a 4-tuple for TCP only */
-	if (rx_desc->flags & EFX_PKT_TCP) {
+	if (flags & EFX_PKT_TCP) {
 		m->m_pkthdr.flowid = EFX_RX_HASH_VALUE(EFX_RX_HASHALG_TOEPLITZ,
 						       mtod(m, uint8_t *));
 		M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE);


More information about the svn-src-stable mailing list