Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2018 15:28:09 +0000 (UTC)
From:      Eric Joyner <erj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341636 - stable/12/sys/dev/ixl
Message-ID:  <201812061528.wB6FS9II089719@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: erj
Date: Thu Dec  6 15:28:09 2018
New Revision: 341636
URL: https://svnweb.freebsd.org/changeset/base/341636

Log:
  MFC r340010
  
  ixl/iavf(4): Update remaining references of "num_queues" to "num_rx_queues"

Modified:
  stable/12/sys/dev/ixl/iavf_vc.c
  stable/12/sys/dev/ixl/if_iavf.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/ixl/iavf_vc.c
==============================================================================
--- stable/12/sys/dev/ixl/iavf_vc.c	Thu Dec  6 13:52:02 2018	(r341635)
+++ stable/12/sys/dev/ixl/iavf_vc.c	Thu Dec  6 15:28:09 2018	(r341636)
@@ -720,10 +720,6 @@ iavf_update_stats_counters(struct iavf_sc *sc, struct 
 	uint64_t tx_discards;
 
 	tx_discards = es->tx_discards;
-#if 0
-	for (int i = 0; i < vsi->num_queues; i++)
-		tx_discards += sc->vsi.queues[i].txr.br->br_drops;
-#endif
 
 	/* Update ifnet stats */
 	IXL_SET_IPACKETS(vsi, es->rx_unicast +
@@ -826,7 +822,7 @@ iavf_config_rss_lut(struct iavf_sc *sc)
 		/*
 		 * Fetch the RSS bucket id for the given indirection entry.
 		 * Cap it at the number of configured buckets (which is
-		 * num_queues.)
+		 * num_rx_queues.)
 		 */
 		que_id = rss_get_indirection_to_bucket(i);
 		que_id = que_id % sc->vsi.num_rx_queues;

Modified: stable/12/sys/dev/ixl/if_iavf.c
==============================================================================
--- stable/12/sys/dev/ixl/if_iavf.c	Thu Dec  6 13:52:02 2018	(r341635)
+++ stable/12/sys/dev/ixl/if_iavf.c	Thu Dec  6 15:28:09 2018	(r341636)
@@ -1947,10 +1947,10 @@ iavf_config_rss_reg(struct iavf_sc *sc)
 		/*
 		 * Fetch the RSS bucket id for the given indirection entry.
 		 * Cap it at the number of configured buckets (which is
-		 * num_queues.)
+		 * num_rx_queues.)
 		 */
 		que_id = rss_get_indirection_to_bucket(i);
-		que_id = que_id % vsi->num_queues;
+		que_id = que_id % vsi->num_rx_queues;
 #else
 		que_id = j;
 #endif



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