ixgbevf: move ring specific stats into ring specific structure
This patch moves hot-path specific statistics into the ring structure. This allows us to drop the adapter structure in some functions and should help with performance. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Este cometimento está contido em:

cometido por
David S. Miller

ascendente
05d063aa86
cometimento
095e2617ce
@@ -411,15 +411,15 @@ static void ixgbevf_get_ethtool_stats(struct net_device *netdev,
|
||||
tx_yields = 0, tx_cleaned = 0, tx_missed = 0;
|
||||
|
||||
for (i = 0; i < adapter->num_rx_queues; i++) {
|
||||
rx_yields += adapter->rx_ring[i]->bp_yields;
|
||||
rx_cleaned += adapter->rx_ring[i]->bp_cleaned;
|
||||
rx_yields += adapter->rx_ring[i]->bp_yields;
|
||||
rx_yields += adapter->rx_ring[i]->stats.yields;
|
||||
rx_cleaned += adapter->rx_ring[i]->stats.cleaned;
|
||||
rx_yields += adapter->rx_ring[i]->stats.yields;
|
||||
}
|
||||
|
||||
for (i = 0; i < adapter->num_tx_queues; i++) {
|
||||
tx_yields += adapter->tx_ring[i]->bp_yields;
|
||||
tx_cleaned += adapter->tx_ring[i]->bp_cleaned;
|
||||
tx_yields += adapter->tx_ring[i]->bp_yields;
|
||||
tx_yields += adapter->tx_ring[i]->stats.yields;
|
||||
tx_cleaned += adapter->tx_ring[i]->stats.cleaned;
|
||||
tx_yields += adapter->tx_ring[i]->stats.yields;
|
||||
}
|
||||
|
||||
adapter->bp_rx_yields = rx_yields;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador