Lines Matching refs:lif

171 #define MAX_Q(lif)   ((lif)->netdev->real_num_tx_queues)  argument
173 static void ionic_add_lif_txq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_txq_stats() argument
176 struct ionic_tx_stats *txstats = &lif->txqstats[q_num]; in ionic_add_lif_txq_stats()
189 static void ionic_add_lif_rxq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_rxq_stats() argument
192 struct ionic_rx_stats *rxstats = &lif->rxqstats[q_num]; in ionic_add_lif_rxq_stats()
208 static void ionic_get_lif_stats(struct ionic_lif *lif, in ionic_get_lif_stats() argument
216 for (q_num = 0; q_num < MAX_Q(lif); q_num++) { in ionic_get_lif_stats()
217 ionic_add_lif_txq_stats(lif, q_num, stats); in ionic_get_lif_stats()
218 ionic_add_lif_rxq_stats(lif, q_num, stats); in ionic_get_lif_stats()
221 if (lif->hwstamp_txq) in ionic_get_lif_stats()
222 ionic_add_lif_txq_stats(lif, lif->hwstamp_txq->q.index, stats); in ionic_get_lif_stats()
224 if (lif->hwstamp_rxq) in ionic_get_lif_stats()
225 ionic_add_lif_rxq_stats(lif, lif->hwstamp_rxq->q.index, stats); in ionic_get_lif_stats()
227 ionic_get_stats64(lif->netdev, &ns); in ionic_get_lif_stats()
235 static u64 ionic_sw_stats_get_count(struct ionic_lif *lif) in ionic_sw_stats_get_count() argument
237 u64 total = 0, tx_queues = MAX_Q(lif), rx_queues = MAX_Q(lif); in ionic_sw_stats_get_count()
239 if (lif->hwstamp_txq) in ionic_sw_stats_get_count()
242 if (lif->hwstamp_rxq) in ionic_sw_stats_get_count()
254 static void ionic_sw_stats_get_tx_strings(struct ionic_lif *lif, u8 **buf, in ionic_sw_stats_get_tx_strings() argument
264 static void ionic_sw_stats_get_rx_strings(struct ionic_lif *lif, u8 **buf, in ionic_sw_stats_get_rx_strings() argument
274 static void ionic_sw_stats_get_strings(struct ionic_lif *lif, u8 **buf) in ionic_sw_stats_get_strings() argument
284 for (q_num = 0; q_num < MAX_Q(lif); q_num++) in ionic_sw_stats_get_strings()
285 ionic_sw_stats_get_tx_strings(lif, buf, q_num); in ionic_sw_stats_get_strings()
287 if (lif->hwstamp_txq) in ionic_sw_stats_get_strings()
288 ionic_sw_stats_get_tx_strings(lif, buf, lif->hwstamp_txq->q.index); in ionic_sw_stats_get_strings()
290 for (q_num = 0; q_num < MAX_Q(lif); q_num++) in ionic_sw_stats_get_strings()
291 ionic_sw_stats_get_rx_strings(lif, buf, q_num); in ionic_sw_stats_get_strings()
293 if (lif->hwstamp_rxq) in ionic_sw_stats_get_strings()
294 ionic_sw_stats_get_rx_strings(lif, buf, lif->hwstamp_rxq->q.index); in ionic_sw_stats_get_strings()
297 static void ionic_sw_stats_get_txq_values(struct ionic_lif *lif, u64 **buf, in ionic_sw_stats_get_txq_values() argument
303 txstats = &lif->txqstats[q_num]; in ionic_sw_stats_get_txq_values()
311 static void ionic_sw_stats_get_rxq_values(struct ionic_lif *lif, u64 **buf, in ionic_sw_stats_get_rxq_values() argument
317 rxstats = &lif->rxqstats[q_num]; in ionic_sw_stats_get_rxq_values()
325 static void ionic_sw_stats_get_values(struct ionic_lif *lif, u64 **buf) in ionic_sw_stats_get_values() argument
331 ionic_get_lif_stats(lif, &lif_stats); in ionic_sw_stats_get_values()
338 port_stats = &lif->ionic->idev.port_info->stats; in ionic_sw_stats_get_values()
345 for (q_num = 0; q_num < MAX_Q(lif); q_num++) in ionic_sw_stats_get_values()
346 ionic_sw_stats_get_txq_values(lif, buf, q_num); in ionic_sw_stats_get_values()
348 if (lif->hwstamp_txq) in ionic_sw_stats_get_values()
349 ionic_sw_stats_get_txq_values(lif, buf, lif->hwstamp_txq->q.index); in ionic_sw_stats_get_values()
351 for (q_num = 0; q_num < MAX_Q(lif); q_num++) in ionic_sw_stats_get_values()
352 ionic_sw_stats_get_rxq_values(lif, buf, q_num); in ionic_sw_stats_get_values()
354 if (lif->hwstamp_rxq) in ionic_sw_stats_get_values()
355 ionic_sw_stats_get_rxq_values(lif, buf, lif->hwstamp_rxq->q.index); in ionic_sw_stats_get_values()