Lines Matching refs:lif

160 #define MAX_Q(lif)   ((lif)->netdev->real_num_tx_queues)  argument
162 static void ionic_add_lif_txq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_txq_stats() argument
165 struct ionic_tx_stats *txstats = &lif->txqstats[q_num]; in ionic_add_lif_txq_stats()
177 static void ionic_add_lif_rxq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_rxq_stats() argument
180 struct ionic_rx_stats *rxstats = &lif->rxqstats[q_num]; in ionic_add_lif_rxq_stats()
191 static void ionic_get_lif_stats(struct ionic_lif *lif, in ionic_get_lif_stats() argument
199 for (q_num = 0; q_num < MAX_Q(lif); q_num++) { in ionic_get_lif_stats()
200 ionic_add_lif_txq_stats(lif, q_num, stats); in ionic_get_lif_stats()
201 ionic_add_lif_rxq_stats(lif, q_num, stats); in ionic_get_lif_stats()
204 if (lif->hwstamp_txq) in ionic_get_lif_stats()
205 ionic_add_lif_txq_stats(lif, lif->hwstamp_txq->q.index, stats); in ionic_get_lif_stats()
207 if (lif->hwstamp_rxq) in ionic_get_lif_stats()
208 ionic_add_lif_rxq_stats(lif, lif->hwstamp_rxq->q.index, stats); in ionic_get_lif_stats()
210 ionic_get_stats64(lif->netdev, &ns); in ionic_get_lif_stats()
218 static u64 ionic_sw_stats_get_count(struct ionic_lif *lif) in ionic_sw_stats_get_count() argument
220 u64 total = 0, tx_queues = MAX_Q(lif), rx_queues = MAX_Q(lif); in ionic_sw_stats_get_count()
222 if (lif->hwstamp_txq) in ionic_sw_stats_get_count()
225 if (lif->hwstamp_rxq) in ionic_sw_stats_get_count()
237 static void ionic_sw_stats_get_tx_strings(struct ionic_lif *lif, u8 **buf, in ionic_sw_stats_get_tx_strings() argument
247 static void ionic_sw_stats_get_rx_strings(struct ionic_lif *lif, u8 **buf, in ionic_sw_stats_get_rx_strings() argument
257 static void ionic_sw_stats_get_strings(struct ionic_lif *lif, u8 **buf) in ionic_sw_stats_get_strings() argument
267 for (q_num = 0; q_num < MAX_Q(lif); q_num++) in ionic_sw_stats_get_strings()
268 ionic_sw_stats_get_tx_strings(lif, buf, q_num); in ionic_sw_stats_get_strings()
270 if (lif->hwstamp_txq) in ionic_sw_stats_get_strings()
271 ionic_sw_stats_get_tx_strings(lif, buf, lif->hwstamp_txq->q.index); in ionic_sw_stats_get_strings()
273 for (q_num = 0; q_num < MAX_Q(lif); q_num++) in ionic_sw_stats_get_strings()
274 ionic_sw_stats_get_rx_strings(lif, buf, q_num); in ionic_sw_stats_get_strings()
276 if (lif->hwstamp_rxq) in ionic_sw_stats_get_strings()
277 ionic_sw_stats_get_rx_strings(lif, buf, lif->hwstamp_rxq->q.index); in ionic_sw_stats_get_strings()
280 static void ionic_sw_stats_get_txq_values(struct ionic_lif *lif, u64 **buf, in ionic_sw_stats_get_txq_values() argument
286 txstats = &lif->txqstats[q_num]; in ionic_sw_stats_get_txq_values()
294 static void ionic_sw_stats_get_rxq_values(struct ionic_lif *lif, u64 **buf, in ionic_sw_stats_get_rxq_values() argument
300 rxstats = &lif->rxqstats[q_num]; in ionic_sw_stats_get_rxq_values()
308 static void ionic_sw_stats_get_values(struct ionic_lif *lif, u64 **buf) in ionic_sw_stats_get_values() argument
314 ionic_get_lif_stats(lif, &lif_stats); in ionic_sw_stats_get_values()
321 port_stats = &lif->ionic->idev.port_info->stats; in ionic_sw_stats_get_values()
328 for (q_num = 0; q_num < MAX_Q(lif); q_num++) in ionic_sw_stats_get_values()
329 ionic_sw_stats_get_txq_values(lif, buf, q_num); in ionic_sw_stats_get_values()
331 if (lif->hwstamp_txq) in ionic_sw_stats_get_values()
332 ionic_sw_stats_get_txq_values(lif, buf, lif->hwstamp_txq->q.index); in ionic_sw_stats_get_values()
334 for (q_num = 0; q_num < MAX_Q(lif); q_num++) in ionic_sw_stats_get_values()
335 ionic_sw_stats_get_rxq_values(lif, buf, q_num); in ionic_sw_stats_get_values()
337 if (lif->hwstamp_rxq) in ionic_sw_stats_get_values()
338 ionic_sw_stats_get_rxq_values(lif, buf, lif->hwstamp_rxq->q.index); in ionic_sw_stats_get_values()