Lines Matching refs:rx_stats

878 	struct netvsc_stats_rx *rx_stats = &nvchan->rx_stats;  in netvsc_recv_callback()  local
891 u64_stats_update_begin(&rx_stats->syncp); in netvsc_recv_callback()
892 rx_stats->xdp_drop++; in netvsc_recv_callback()
893 u64_stats_update_end(&rx_stats->syncp); in netvsc_recv_callback()
913 u64_stats_update_begin(&rx_stats->syncp); in netvsc_recv_callback()
915 rx_stats->xdp_tx++; in netvsc_recv_callback()
917 rx_stats->packets++; in netvsc_recv_callback()
918 rx_stats->bytes += nvchan->rsc.pktlen; in netvsc_recv_callback()
921 ++rx_stats->broadcast; in netvsc_recv_callback()
923 ++rx_stats->multicast; in netvsc_recv_callback()
924 u64_stats_update_end(&rx_stats->syncp); in netvsc_recv_callback()
1313 const struct netvsc_stats_rx *rx_stats; in netvsc_get_pcpu_stats() local
1329 rx_stats = &nvchan->rx_stats; in netvsc_get_pcpu_stats()
1331 start = u64_stats_fetch_begin_irq(&rx_stats->syncp); in netvsc_get_pcpu_stats()
1332 packets = rx_stats->packets; in netvsc_get_pcpu_stats()
1333 bytes = rx_stats->bytes; in netvsc_get_pcpu_stats()
1334 } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); in netvsc_get_pcpu_stats()
1367 const struct netvsc_stats_rx *rx_stats; in netvsc_get_stats64() local
1381 rx_stats = &nvchan->rx_stats; in netvsc_get_stats64()
1383 start = u64_stats_fetch_begin_irq(&rx_stats->syncp); in netvsc_get_stats64()
1384 packets = rx_stats->packets; in netvsc_get_stats64()
1385 bytes = rx_stats->bytes; in netvsc_get_stats64()
1386 multicast = rx_stats->multicast + rx_stats->broadcast; in netvsc_get_stats64()
1387 } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); in netvsc_get_stats64()
1505 const struct netvsc_stats_rx *rx_stats; in netvsc_get_ethtool_stats() local
1539 rx_stats = &nvdev->chan_table[j].rx_stats; in netvsc_get_ethtool_stats()
1541 start = u64_stats_fetch_begin_irq(&rx_stats->syncp); in netvsc_get_ethtool_stats()
1542 packets = rx_stats->packets; in netvsc_get_ethtool_stats()
1543 bytes = rx_stats->bytes; in netvsc_get_ethtool_stats()
1544 xdp_drop = rx_stats->xdp_drop; in netvsc_get_ethtool_stats()
1545 xdp_redirect = rx_stats->xdp_redirect; in netvsc_get_ethtool_stats()
1546 xdp_tx = rx_stats->xdp_tx; in netvsc_get_ethtool_stats()
1547 } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); in netvsc_get_ethtool_stats()