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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to