Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Remove the obsolte u64_stats_fetch_*_irq() users (drivers).

Now that the 32bit UP oddity is gone and 32bit uses always a sequence
count, there is no need for the fetch_irq() variants anymore.

Convert to the regular interface.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Thomas Gleixner and committed by
Jakub Kicinski
068c38ad 196dd92a

+274 -274
+6 -6
drivers/net/ethernet/alacritech/slic.h
··· 288 288 u64_stats_update_end(&(st)->syncp); \ 289 289 } while (0) 290 290 291 - #define SLIC_GET_STATS_COUNTER(newst, st, counter) \ 292 - { \ 293 - unsigned int start; \ 291 + #define SLIC_GET_STATS_COUNTER(newst, st, counter) \ 292 + { \ 293 + unsigned int start; \ 294 294 do { \ 295 - start = u64_stats_fetch_begin_irq(&(st)->syncp); \ 296 - newst = (st)->counter; \ 297 - } while (u64_stats_fetch_retry_irq(&(st)->syncp, start)); \ 295 + start = u64_stats_fetch_begin(&(st)->syncp); \ 296 + newst = (st)->counter; \ 297 + } while (u64_stats_fetch_retry(&(st)->syncp, start)); \ 298 298 } 299 299 300 300 struct slic_upr {
+2 -2
drivers/net/ethernet/amazon/ena/ena_ethtool.c
··· 118 118 unsigned int start; 119 119 120 120 do { 121 - start = u64_stats_fetch_begin_irq(syncp); 121 + start = u64_stats_fetch_begin(syncp); 122 122 *(dst) = *src; 123 - } while (u64_stats_fetch_retry_irq(syncp, start)); 123 + } while (u64_stats_fetch_retry(syncp, start)); 124 124 } 125 125 126 126 static void ena_queue_stats(struct ena_adapter *adapter, u64 **data)
+6 -6
drivers/net/ethernet/amazon/ena/ena_netdev.c
··· 3268 3268 tx_ring = &adapter->tx_ring[i]; 3269 3269 3270 3270 do { 3271 - start = u64_stats_fetch_begin_irq(&tx_ring->syncp); 3271 + start = u64_stats_fetch_begin(&tx_ring->syncp); 3272 3272 packets = tx_ring->tx_stats.cnt; 3273 3273 bytes = tx_ring->tx_stats.bytes; 3274 - } while (u64_stats_fetch_retry_irq(&tx_ring->syncp, start)); 3274 + } while (u64_stats_fetch_retry(&tx_ring->syncp, start)); 3275 3275 3276 3276 stats->tx_packets += packets; 3277 3277 stats->tx_bytes += bytes; ··· 3279 3279 rx_ring = &adapter->rx_ring[i]; 3280 3280 3281 3281 do { 3282 - start = u64_stats_fetch_begin_irq(&rx_ring->syncp); 3282 + start = u64_stats_fetch_begin(&rx_ring->syncp); 3283 3283 packets = rx_ring->rx_stats.cnt; 3284 3284 bytes = rx_ring->rx_stats.bytes; 3285 - } while (u64_stats_fetch_retry_irq(&rx_ring->syncp, start)); 3285 + } while (u64_stats_fetch_retry(&rx_ring->syncp, start)); 3286 3286 3287 3287 stats->rx_packets += packets; 3288 3288 stats->rx_bytes += bytes; 3289 3289 } 3290 3290 3291 3291 do { 3292 - start = u64_stats_fetch_begin_irq(&adapter->syncp); 3292 + start = u64_stats_fetch_begin(&adapter->syncp); 3293 3293 rx_drops = adapter->dev_stats.rx_drops; 3294 3294 tx_drops = adapter->dev_stats.tx_drops; 3295 - } while (u64_stats_fetch_retry_irq(&adapter->syncp, start)); 3295 + } while (u64_stats_fetch_retry(&adapter->syncp, start)); 3296 3296 3297 3297 stats->rx_dropped = rx_drops; 3298 3298 stats->tx_dropped = tx_drops;
+4 -4
drivers/net/ethernet/aquantia/atlantic/aq_ring.c
··· 934 934 /* This data should mimic aq_ethtool_queue_rx_stat_names structure */ 935 935 do { 936 936 count = 0; 937 - start = u64_stats_fetch_begin_irq(&self->stats.rx.syncp); 937 + start = u64_stats_fetch_begin(&self->stats.rx.syncp); 938 938 data[count] = self->stats.rx.packets; 939 939 data[++count] = self->stats.rx.jumbo_packets; 940 940 data[++count] = self->stats.rx.lro_packets; ··· 951 951 data[++count] = self->stats.rx.xdp_tx; 952 952 data[++count] = self->stats.rx.xdp_invalid; 953 953 data[++count] = self->stats.rx.xdp_redirect; 954 - } while (u64_stats_fetch_retry_irq(&self->stats.rx.syncp, start)); 954 + } while (u64_stats_fetch_retry(&self->stats.rx.syncp, start)); 955 955 } else { 956 956 /* This data should mimic aq_ethtool_queue_tx_stat_names structure */ 957 957 do { 958 958 count = 0; 959 - start = u64_stats_fetch_begin_irq(&self->stats.tx.syncp); 959 + start = u64_stats_fetch_begin(&self->stats.tx.syncp); 960 960 data[count] = self->stats.tx.packets; 961 961 data[++count] = self->stats.tx.queue_restarts; 962 - } while (u64_stats_fetch_retry_irq(&self->stats.tx.syncp, start)); 962 + } while (u64_stats_fetch_retry(&self->stats.tx.syncp, start)); 963 963 } 964 964 965 965 return ++count;
+2 -2
drivers/net/ethernet/asix/ax88796c_main.c
··· 662 662 s = per_cpu_ptr(ax_local->stats, cpu); 663 663 664 664 do { 665 - start = u64_stats_fetch_begin_irq(&s->syncp); 665 + start = u64_stats_fetch_begin(&s->syncp); 666 666 rx_packets = u64_stats_read(&s->rx_packets); 667 667 rx_bytes = u64_stats_read(&s->rx_bytes); 668 668 tx_packets = u64_stats_read(&s->tx_packets); 669 669 tx_bytes = u64_stats_read(&s->tx_bytes); 670 - } while (u64_stats_fetch_retry_irq(&s->syncp, start)); 670 + } while (u64_stats_fetch_retry(&s->syncp, start)); 671 671 672 672 stats->rx_packets += rx_packets; 673 673 stats->rx_bytes += rx_bytes;
+4 -4
drivers/net/ethernet/broadcom/b44.c
··· 1680 1680 unsigned int start; 1681 1681 1682 1682 do { 1683 - start = u64_stats_fetch_begin_irq(&hwstat->syncp); 1683 + start = u64_stats_fetch_begin(&hwstat->syncp); 1684 1684 1685 1685 /* Convert HW stats into rtnl_link_stats64 stats. */ 1686 1686 nstat->rx_packets = hwstat->rx_pkts; ··· 1714 1714 /* Carrier lost counter seems to be broken for some devices */ 1715 1715 nstat->tx_carrier_errors = hwstat->tx_carrier_lost; 1716 1716 #endif 1717 - } while (u64_stats_fetch_retry_irq(&hwstat->syncp, start)); 1717 + } while (u64_stats_fetch_retry(&hwstat->syncp, start)); 1718 1718 1719 1719 } 1720 1720 ··· 2082 2082 do { 2083 2083 data_src = &hwstat->tx_good_octets; 2084 2084 data_dst = data; 2085 - start = u64_stats_fetch_begin_irq(&hwstat->syncp); 2085 + start = u64_stats_fetch_begin(&hwstat->syncp); 2086 2086 2087 2087 for (i = 0; i < ARRAY_SIZE(b44_gstrings); i++) 2088 2088 *data_dst++ = *data_src++; 2089 2089 2090 - } while (u64_stats_fetch_retry_irq(&hwstat->syncp, start)); 2090 + } while (u64_stats_fetch_retry(&hwstat->syncp, start)); 2091 2091 } 2092 2092 2093 2093 static void b44_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
+6 -6
drivers/net/ethernet/broadcom/bcmsysport.c
··· 457 457 for (q = 0; q < priv->netdev->num_tx_queues; q++) { 458 458 ring = &priv->tx_rings[q]; 459 459 do { 460 - start = u64_stats_fetch_begin_irq(&priv->syncp); 460 + start = u64_stats_fetch_begin(&priv->syncp); 461 461 bytes = ring->bytes; 462 462 packets = ring->packets; 463 - } while (u64_stats_fetch_retry_irq(&priv->syncp, start)); 463 + } while (u64_stats_fetch_retry(&priv->syncp, start)); 464 464 465 465 *tx_bytes += bytes; 466 466 *tx_packets += packets; ··· 504 504 if (s->stat_sizeof == sizeof(u64) && 505 505 s->type == BCM_SYSPORT_STAT_NETDEV64) { 506 506 do { 507 - start = u64_stats_fetch_begin_irq(syncp); 507 + start = u64_stats_fetch_begin(syncp); 508 508 data[i] = *(u64 *)p; 509 - } while (u64_stats_fetch_retry_irq(syncp, start)); 509 + } while (u64_stats_fetch_retry(syncp, start)); 510 510 } else 511 511 data[i] = *(u32 *)p; 512 512 j++; ··· 1878 1878 &stats->tx_packets); 1879 1879 1880 1880 do { 1881 - start = u64_stats_fetch_begin_irq(&priv->syncp); 1881 + start = u64_stats_fetch_begin(&priv->syncp); 1882 1882 stats->rx_packets = stats64->rx_packets; 1883 1883 stats->rx_bytes = stats64->rx_bytes; 1884 - } while (u64_stats_fetch_retry_irq(&priv->syncp, start)); 1884 + } while (u64_stats_fetch_retry(&priv->syncp, start)); 1885 1885 } 1886 1886 1887 1887 static void bcm_sysport_netif_start(struct net_device *dev)
+12 -12
drivers/net/ethernet/cortina/gemini.c
··· 1919 1919 1920 1920 /* Racing with RX NAPI */ 1921 1921 do { 1922 - start = u64_stats_fetch_begin_irq(&port->rx_stats_syncp); 1922 + start = u64_stats_fetch_begin(&port->rx_stats_syncp); 1923 1923 1924 1924 stats->rx_packets = port->stats.rx_packets; 1925 1925 stats->rx_bytes = port->stats.rx_bytes; ··· 1931 1931 stats->rx_crc_errors = port->stats.rx_crc_errors; 1932 1932 stats->rx_frame_errors = port->stats.rx_frame_errors; 1933 1933 1934 - } while (u64_stats_fetch_retry_irq(&port->rx_stats_syncp, start)); 1934 + } while (u64_stats_fetch_retry(&port->rx_stats_syncp, start)); 1935 1935 1936 1936 /* Racing with MIB and TX completion interrupts */ 1937 1937 do { 1938 - start = u64_stats_fetch_begin_irq(&port->ir_stats_syncp); 1938 + start = u64_stats_fetch_begin(&port->ir_stats_syncp); 1939 1939 1940 1940 stats->tx_errors = port->stats.tx_errors; 1941 1941 stats->tx_packets = port->stats.tx_packets; ··· 1945 1945 stats->rx_missed_errors = port->stats.rx_missed_errors; 1946 1946 stats->rx_fifo_errors = port->stats.rx_fifo_errors; 1947 1947 1948 - } while (u64_stats_fetch_retry_irq(&port->ir_stats_syncp, start)); 1948 + } while (u64_stats_fetch_retry(&port->ir_stats_syncp, start)); 1949 1949 1950 1950 /* Racing with hard_start_xmit */ 1951 1951 do { 1952 - start = u64_stats_fetch_begin_irq(&port->tx_stats_syncp); 1952 + start = u64_stats_fetch_begin(&port->tx_stats_syncp); 1953 1953 1954 1954 stats->tx_dropped = port->stats.tx_dropped; 1955 1955 1956 - } while (u64_stats_fetch_retry_irq(&port->tx_stats_syncp, start)); 1956 + } while (u64_stats_fetch_retry(&port->tx_stats_syncp, start)); 1957 1957 1958 1958 stats->rx_dropped += stats->rx_missed_errors; 1959 1959 } ··· 2031 2031 /* Racing with MIB interrupt */ 2032 2032 do { 2033 2033 p = values; 2034 - start = u64_stats_fetch_begin_irq(&port->ir_stats_syncp); 2034 + start = u64_stats_fetch_begin(&port->ir_stats_syncp); 2035 2035 2036 2036 for (i = 0; i < RX_STATS_NUM; i++) 2037 2037 *p++ = port->hw_stats[i]; 2038 2038 2039 - } while (u64_stats_fetch_retry_irq(&port->ir_stats_syncp, start)); 2039 + } while (u64_stats_fetch_retry(&port->ir_stats_syncp, start)); 2040 2040 values = p; 2041 2041 2042 2042 /* Racing with RX NAPI */ 2043 2043 do { 2044 2044 p = values; 2045 - start = u64_stats_fetch_begin_irq(&port->rx_stats_syncp); 2045 + start = u64_stats_fetch_begin(&port->rx_stats_syncp); 2046 2046 2047 2047 for (i = 0; i < RX_STATUS_NUM; i++) 2048 2048 *p++ = port->rx_stats[i]; ··· 2050 2050 *p++ = port->rx_csum_stats[i]; 2051 2051 *p++ = port->rx_napi_exits; 2052 2052 2053 - } while (u64_stats_fetch_retry_irq(&port->rx_stats_syncp, start)); 2053 + } while (u64_stats_fetch_retry(&port->rx_stats_syncp, start)); 2054 2054 values = p; 2055 2055 2056 2056 /* Racing with TX start_xmit */ 2057 2057 do { 2058 2058 p = values; 2059 - start = u64_stats_fetch_begin_irq(&port->tx_stats_syncp); 2059 + start = u64_stats_fetch_begin(&port->tx_stats_syncp); 2060 2060 2061 2061 for (i = 0; i < TX_MAX_FRAGS; i++) { 2062 2062 *values++ = port->tx_frag_stats[i]; ··· 2065 2065 *values++ = port->tx_frags_linearized; 2066 2066 *values++ = port->tx_hw_csummed; 2067 2067 2068 - } while (u64_stats_fetch_retry_irq(&port->tx_stats_syncp, start)); 2068 + } while (u64_stats_fetch_retry(&port->tx_stats_syncp, start)); 2069 2069 } 2070 2070 2071 2071 static int gmac_get_ksettings(struct net_device *netdev,
+6 -6
drivers/net/ethernet/emulex/benet/be_ethtool.c
··· 389 389 struct be_rx_stats *stats = rx_stats(rxo); 390 390 391 391 do { 392 - start = u64_stats_fetch_begin_irq(&stats->sync); 392 + start = u64_stats_fetch_begin(&stats->sync); 393 393 data[base] = stats->rx_bytes; 394 394 data[base + 1] = stats->rx_pkts; 395 - } while (u64_stats_fetch_retry_irq(&stats->sync, start)); 395 + } while (u64_stats_fetch_retry(&stats->sync, start)); 396 396 397 397 for (i = 2; i < ETHTOOL_RXSTATS_NUM; i++) { 398 398 p = (u8 *)stats + et_rx_stats[i].offset; ··· 405 405 struct be_tx_stats *stats = tx_stats(txo); 406 406 407 407 do { 408 - start = u64_stats_fetch_begin_irq(&stats->sync_compl); 408 + start = u64_stats_fetch_begin(&stats->sync_compl); 409 409 data[base] = stats->tx_compl; 410 - } while (u64_stats_fetch_retry_irq(&stats->sync_compl, start)); 410 + } while (u64_stats_fetch_retry(&stats->sync_compl, start)); 411 411 412 412 do { 413 - start = u64_stats_fetch_begin_irq(&stats->sync); 413 + start = u64_stats_fetch_begin(&stats->sync); 414 414 for (i = 1; i < ETHTOOL_TXSTATS_NUM; i++) { 415 415 p = (u8 *)stats + et_tx_stats[i].offset; 416 416 data[base + i] = 417 417 (et_tx_stats[i].size == sizeof(u64)) ? 418 418 *(u64 *)p : *(u32 *)p; 419 419 } 420 - } while (u64_stats_fetch_retry_irq(&stats->sync, start)); 420 + } while (u64_stats_fetch_retry(&stats->sync, start)); 421 421 base += ETHTOOL_TXSTATS_NUM; 422 422 } 423 423 }
+8 -8
drivers/net/ethernet/emulex/benet/be_main.c
··· 665 665 const struct be_rx_stats *rx_stats = rx_stats(rxo); 666 666 667 667 do { 668 - start = u64_stats_fetch_begin_irq(&rx_stats->sync); 668 + start = u64_stats_fetch_begin(&rx_stats->sync); 669 669 pkts = rx_stats(rxo)->rx_pkts; 670 670 bytes = rx_stats(rxo)->rx_bytes; 671 - } while (u64_stats_fetch_retry_irq(&rx_stats->sync, start)); 671 + } while (u64_stats_fetch_retry(&rx_stats->sync, start)); 672 672 stats->rx_packets += pkts; 673 673 stats->rx_bytes += bytes; 674 674 stats->multicast += rx_stats(rxo)->rx_mcast_pkts; ··· 680 680 const struct be_tx_stats *tx_stats = tx_stats(txo); 681 681 682 682 do { 683 - start = u64_stats_fetch_begin_irq(&tx_stats->sync); 683 + start = u64_stats_fetch_begin(&tx_stats->sync); 684 684 pkts = tx_stats(txo)->tx_pkts; 685 685 bytes = tx_stats(txo)->tx_bytes; 686 - } while (u64_stats_fetch_retry_irq(&tx_stats->sync, start)); 686 + } while (u64_stats_fetch_retry(&tx_stats->sync, start)); 687 687 stats->tx_packets += pkts; 688 688 stats->tx_bytes += bytes; 689 689 } ··· 2155 2155 2156 2156 for_all_rx_queues_on_eq(adapter, eqo, rxo, i) { 2157 2157 do { 2158 - start = u64_stats_fetch_begin_irq(&rxo->stats.sync); 2158 + start = u64_stats_fetch_begin(&rxo->stats.sync); 2159 2159 rx_pkts += rxo->stats.rx_pkts; 2160 - } while (u64_stats_fetch_retry_irq(&rxo->stats.sync, start)); 2160 + } while (u64_stats_fetch_retry(&rxo->stats.sync, start)); 2161 2161 } 2162 2162 2163 2163 for_all_tx_queues_on_eq(adapter, eqo, txo, i) { 2164 2164 do { 2165 - start = u64_stats_fetch_begin_irq(&txo->stats.sync); 2165 + start = u64_stats_fetch_begin(&txo->stats.sync); 2166 2166 tx_pkts += txo->stats.tx_reqs; 2167 - } while (u64_stats_fetch_retry_irq(&txo->stats.sync, start)); 2167 + } while (u64_stats_fetch_retry(&txo->stats.sync, start)); 2168 2168 } 2169 2169 2170 2170 /* Skip, if wrapped around or first calculation */
+2 -2
drivers/net/ethernet/fungible/funeth/funeth_txrx.h
··· 206 206 207 207 #define FUN_QSTAT_READ(q, seq, stats_copy) \ 208 208 do { \ 209 - seq = u64_stats_fetch_begin_irq(&(q)->syncp); \ 209 + seq = u64_stats_fetch_begin(&(q)->syncp); \ 210 210 stats_copy = (q)->stats; \ 211 - } while (u64_stats_fetch_retry_irq(&(q)->syncp, (seq))) 211 + } while (u64_stats_fetch_retry(&(q)->syncp, (seq))) 212 212 213 213 #define FUN_INT_NAME_LEN (IFNAMSIZ + 16) 214 214
+8 -8
drivers/net/ethernet/google/gve/gve_ethtool.c
··· 177 177 struct gve_rx_ring *rx = &priv->rx[ring]; 178 178 179 179 start = 180 - u64_stats_fetch_begin_irq(&priv->rx[ring].statss); 180 + u64_stats_fetch_begin(&priv->rx[ring].statss); 181 181 tmp_rx_pkts = rx->rpackets; 182 182 tmp_rx_bytes = rx->rbytes; 183 183 tmp_rx_skb_alloc_fail = rx->rx_skb_alloc_fail; 184 184 tmp_rx_buf_alloc_fail = rx->rx_buf_alloc_fail; 185 185 tmp_rx_desc_err_dropped_pkt = 186 186 rx->rx_desc_err_dropped_pkt; 187 - } while (u64_stats_fetch_retry_irq(&priv->rx[ring].statss, 187 + } while (u64_stats_fetch_retry(&priv->rx[ring].statss, 188 188 start)); 189 189 rx_pkts += tmp_rx_pkts; 190 190 rx_bytes += tmp_rx_bytes; ··· 198 198 if (priv->tx) { 199 199 do { 200 200 start = 201 - u64_stats_fetch_begin_irq(&priv->tx[ring].statss); 201 + u64_stats_fetch_begin(&priv->tx[ring].statss); 202 202 tmp_tx_pkts = priv->tx[ring].pkt_done; 203 203 tmp_tx_bytes = priv->tx[ring].bytes_done; 204 - } while (u64_stats_fetch_retry_irq(&priv->tx[ring].statss, 204 + } while (u64_stats_fetch_retry(&priv->tx[ring].statss, 205 205 start)); 206 206 tx_pkts += tmp_tx_pkts; 207 207 tx_bytes += tmp_tx_bytes; ··· 259 259 data[i++] = rx->fill_cnt - rx->cnt; 260 260 do { 261 261 start = 262 - u64_stats_fetch_begin_irq(&priv->rx[ring].statss); 262 + u64_stats_fetch_begin(&priv->rx[ring].statss); 263 263 tmp_rx_bytes = rx->rbytes; 264 264 tmp_rx_skb_alloc_fail = rx->rx_skb_alloc_fail; 265 265 tmp_rx_buf_alloc_fail = rx->rx_buf_alloc_fail; 266 266 tmp_rx_desc_err_dropped_pkt = 267 267 rx->rx_desc_err_dropped_pkt; 268 - } while (u64_stats_fetch_retry_irq(&priv->rx[ring].statss, 268 + } while (u64_stats_fetch_retry(&priv->rx[ring].statss, 269 269 start)); 270 270 data[i++] = tmp_rx_bytes; 271 271 data[i++] = rx->rx_cont_packet_cnt; ··· 331 331 } 332 332 do { 333 333 start = 334 - u64_stats_fetch_begin_irq(&priv->tx[ring].statss); 334 + u64_stats_fetch_begin(&priv->tx[ring].statss); 335 335 tmp_tx_bytes = tx->bytes_done; 336 - } while (u64_stats_fetch_retry_irq(&priv->tx[ring].statss, 336 + } while (u64_stats_fetch_retry(&priv->tx[ring].statss, 337 337 start)); 338 338 data[i++] = tmp_tx_bytes; 339 339 data[i++] = tx->wake_queue;
+6 -6
drivers/net/ethernet/google/gve/gve_main.c
··· 51 51 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { 52 52 do { 53 53 start = 54 - u64_stats_fetch_begin_irq(&priv->rx[ring].statss); 54 + u64_stats_fetch_begin(&priv->rx[ring].statss); 55 55 packets = priv->rx[ring].rpackets; 56 56 bytes = priv->rx[ring].rbytes; 57 - } while (u64_stats_fetch_retry_irq(&priv->rx[ring].statss, 57 + } while (u64_stats_fetch_retry(&priv->rx[ring].statss, 58 58 start)); 59 59 s->rx_packets += packets; 60 60 s->rx_bytes += bytes; ··· 64 64 for (ring = 0; ring < priv->tx_cfg.num_queues; ring++) { 65 65 do { 66 66 start = 67 - u64_stats_fetch_begin_irq(&priv->tx[ring].statss); 67 + u64_stats_fetch_begin(&priv->tx[ring].statss); 68 68 packets = priv->tx[ring].pkt_done; 69 69 bytes = priv->tx[ring].bytes_done; 70 - } while (u64_stats_fetch_retry_irq(&priv->tx[ring].statss, 70 + } while (u64_stats_fetch_retry(&priv->tx[ring].statss, 71 71 start)); 72 72 s->tx_packets += packets; 73 73 s->tx_bytes += bytes; ··· 1273 1273 } 1274 1274 1275 1275 do { 1276 - start = u64_stats_fetch_begin_irq(&priv->tx[idx].statss); 1276 + start = u64_stats_fetch_begin(&priv->tx[idx].statss); 1277 1277 tx_bytes = priv->tx[idx].bytes_done; 1278 - } while (u64_stats_fetch_retry_irq(&priv->tx[idx].statss, start)); 1278 + } while (u64_stats_fetch_retry(&priv->tx[idx].statss, start)); 1279 1279 stats[stats_idx++] = (struct stats) { 1280 1280 .stat_name = cpu_to_be32(TX_WAKE_CNT), 1281 1281 .value = cpu_to_be64(priv->tx[idx].wake_queue),
+2 -2
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
··· 2486 2486 unsigned int start; 2487 2487 2488 2488 do { 2489 - start = u64_stats_fetch_begin_irq(&ring->syncp); 2489 + start = u64_stats_fetch_begin(&ring->syncp); 2490 2490 if (is_tx) { 2491 2491 stats->tx_bytes += ring->stats.tx_bytes; 2492 2492 stats->tx_packets += ring->stats.tx_pkts; ··· 2520 2520 stats->multicast += ring->stats.rx_multicast; 2521 2521 stats->rx_length_errors += ring->stats.err_pkt_len; 2522 2522 } 2523 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 2523 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 2524 2524 } 2525 2525 2526 2526 static void hns3_nic_get_stats64(struct net_device *netdev,
+2 -2
drivers/net/ethernet/huawei/hinic/hinic_rx.c
··· 74 74 unsigned int start; 75 75 76 76 do { 77 - start = u64_stats_fetch_begin_irq(&rxq_stats->syncp); 77 + start = u64_stats_fetch_begin(&rxq_stats->syncp); 78 78 stats->pkts = rxq_stats->pkts; 79 79 stats->bytes = rxq_stats->bytes; 80 80 stats->errors = rxq_stats->csum_errors + 81 81 rxq_stats->other_errors; 82 82 stats->csum_errors = rxq_stats->csum_errors; 83 83 stats->other_errors = rxq_stats->other_errors; 84 - } while (u64_stats_fetch_retry_irq(&rxq_stats->syncp, start)); 84 + } while (u64_stats_fetch_retry(&rxq_stats->syncp, start)); 85 85 } 86 86 87 87 /**
+2 -2
drivers/net/ethernet/huawei/hinic/hinic_tx.c
··· 99 99 unsigned int start; 100 100 101 101 do { 102 - start = u64_stats_fetch_begin_irq(&txq_stats->syncp); 102 + start = u64_stats_fetch_begin(&txq_stats->syncp); 103 103 stats->pkts = txq_stats->pkts; 104 104 stats->bytes = txq_stats->bytes; 105 105 stats->tx_busy = txq_stats->tx_busy; 106 106 stats->tx_wake = txq_stats->tx_wake; 107 107 stats->tx_dropped = txq_stats->tx_dropped; 108 108 stats->big_frags_pkts = txq_stats->big_frags_pkts; 109 - } while (u64_stats_fetch_retry_irq(&txq_stats->syncp, start)); 109 + } while (u64_stats_fetch_retry(&txq_stats->syncp, start)); 110 110 } 111 111 112 112 /**
+4 -4
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
··· 1229 1229 continue; 1230 1230 1231 1231 do { 1232 - start = u64_stats_fetch_begin_irq(&ring->syncp); 1232 + start = u64_stats_fetch_begin(&ring->syncp); 1233 1233 packets = ring->stats.packets; 1234 1234 bytes = ring->stats.bytes; 1235 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 1235 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 1236 1236 1237 1237 stats->rx_packets += packets; 1238 1238 stats->rx_bytes += bytes; ··· 1245 1245 continue; 1246 1246 1247 1247 do { 1248 - start = u64_stats_fetch_begin_irq(&ring->syncp); 1248 + start = u64_stats_fetch_begin(&ring->syncp); 1249 1249 packets = ring->stats.packets; 1250 1250 bytes = ring->stats.bytes; 1251 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 1251 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 1252 1252 1253 1253 stats->tx_packets += packets; 1254 1254 stats->tx_bytes += bytes;
+4 -4
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
··· 154 154 * @ring: the ring to copy 155 155 * 156 156 * Queue statistics must be copied while protected by 157 - * u64_stats_fetch_begin_irq, so we can't directly use i40e_add_ethtool_stats. 157 + * u64_stats_fetch_begin, so we can't directly use i40e_add_ethtool_stats. 158 158 * Assumes that queue stats are defined in i40e_gstrings_queue_stats. If the 159 159 * ring pointer is null, zero out the queue stat values and update the data 160 160 * pointer. Otherwise safely copy the stats from the ring into the supplied ··· 172 172 173 173 /* To avoid invalid statistics values, ensure that we keep retrying 174 174 * the copy until we get a consistent value according to 175 - * u64_stats_fetch_retry_irq. But first, make sure our ring is 175 + * u64_stats_fetch_retry. But first, make sure our ring is 176 176 * non-null before attempting to access its syncp. 177 177 */ 178 178 do { 179 - start = !ring ? 0 : u64_stats_fetch_begin_irq(&ring->syncp); 179 + start = !ring ? 0 : u64_stats_fetch_begin(&ring->syncp); 180 180 for (i = 0; i < size; i++) { 181 181 i40e_add_one_ethtool_stat(&(*data)[i], ring, 182 182 &stats[i]); 183 183 } 184 - } while (ring && u64_stats_fetch_retry_irq(&ring->syncp, start)); 184 + } while (ring && u64_stats_fetch_retry(&ring->syncp, start)); 185 185 186 186 /* Once we successfully copy the stats in, update the data pointer */ 187 187 *data += size;
+10 -10
drivers/net/ethernet/intel/i40e/i40e_main.c
··· 419 419 unsigned int start; 420 420 421 421 do { 422 - start = u64_stats_fetch_begin_irq(&ring->syncp); 422 + start = u64_stats_fetch_begin(&ring->syncp); 423 423 packets = ring->stats.packets; 424 424 bytes = ring->stats.bytes; 425 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 425 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 426 426 427 427 stats->tx_packets += packets; 428 428 stats->tx_bytes += bytes; ··· 472 472 if (!ring) 473 473 continue; 474 474 do { 475 - start = u64_stats_fetch_begin_irq(&ring->syncp); 475 + start = u64_stats_fetch_begin(&ring->syncp); 476 476 packets = ring->stats.packets; 477 477 bytes = ring->stats.bytes; 478 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 478 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 479 479 480 480 stats->rx_packets += packets; 481 481 stats->rx_bytes += bytes; ··· 897 897 continue; 898 898 899 899 do { 900 - start = u64_stats_fetch_begin_irq(&p->syncp); 900 + start = u64_stats_fetch_begin(&p->syncp); 901 901 packets = p->stats.packets; 902 902 bytes = p->stats.bytes; 903 - } while (u64_stats_fetch_retry_irq(&p->syncp, start)); 903 + } while (u64_stats_fetch_retry(&p->syncp, start)); 904 904 tx_b += bytes; 905 905 tx_p += packets; 906 906 tx_restart += p->tx_stats.restart_queue; ··· 915 915 continue; 916 916 917 917 do { 918 - start = u64_stats_fetch_begin_irq(&p->syncp); 918 + start = u64_stats_fetch_begin(&p->syncp); 919 919 packets = p->stats.packets; 920 920 bytes = p->stats.bytes; 921 - } while (u64_stats_fetch_retry_irq(&p->syncp, start)); 921 + } while (u64_stats_fetch_retry(&p->syncp, start)); 922 922 rx_b += bytes; 923 923 rx_p += packets; 924 924 rx_buf += p->rx_stats.alloc_buff_failed; ··· 935 935 continue; 936 936 937 937 do { 938 - start = u64_stats_fetch_begin_irq(&p->syncp); 938 + start = u64_stats_fetch_begin(&p->syncp); 939 939 packets = p->stats.packets; 940 940 bytes = p->stats.bytes; 941 - } while (u64_stats_fetch_retry_irq(&p->syncp, start)); 941 + } while (u64_stats_fetch_retry(&p->syncp, start)); 942 942 tx_b += bytes; 943 943 tx_p += packets; 944 944 tx_restart += p->tx_stats.restart_queue;
+4 -4
drivers/net/ethernet/intel/iavf/iavf_ethtool.c
··· 147 147 * @ring: the ring to copy 148 148 * 149 149 * Queue statistics must be copied while protected by 150 - * u64_stats_fetch_begin_irq, so we can't directly use iavf_add_ethtool_stats. 150 + * u64_stats_fetch_begin, so we can't directly use iavf_add_ethtool_stats. 151 151 * Assumes that queue stats are defined in iavf_gstrings_queue_stats. If the 152 152 * ring pointer is null, zero out the queue stat values and update the data 153 153 * pointer. Otherwise safely copy the stats from the ring into the supplied ··· 165 165 166 166 /* To avoid invalid statistics values, ensure that we keep retrying 167 167 * the copy until we get a consistent value according to 168 - * u64_stats_fetch_retry_irq. But first, make sure our ring is 168 + * u64_stats_fetch_retry. But first, make sure our ring is 169 169 * non-null before attempting to access its syncp. 170 170 */ 171 171 do { 172 - start = !ring ? 0 : u64_stats_fetch_begin_irq(&ring->syncp); 172 + start = !ring ? 0 : u64_stats_fetch_begin(&ring->syncp); 173 173 for (i = 0; i < size; i++) 174 174 iavf_add_one_ethtool_stat(&(*data)[i], ring, &stats[i]); 175 - } while (ring && u64_stats_fetch_retry_irq(&ring->syncp, start)); 175 + } while (ring && u64_stats_fetch_retry(&ring->syncp, start)); 176 176 177 177 /* Once we successfully copy the stats in, update the data pointer */ 178 178 *data += size;
+2 -2
drivers/net/ethernet/intel/ice/ice_main.c
··· 6370 6370 unsigned int start; 6371 6371 6372 6372 do { 6373 - start = u64_stats_fetch_begin_irq(syncp); 6373 + start = u64_stats_fetch_begin(syncp); 6374 6374 *pkts = stats.pkts; 6375 6375 *bytes = stats.bytes; 6376 - } while (u64_stats_fetch_retry_irq(syncp, start)); 6376 + } while (u64_stats_fetch_retry(syncp, start)); 6377 6377 } 6378 6378 6379 6379 /**
+6 -6
drivers/net/ethernet/intel/igb/igb_ethtool.c
··· 2311 2311 2312 2312 ring = adapter->tx_ring[j]; 2313 2313 do { 2314 - start = u64_stats_fetch_begin_irq(&ring->tx_syncp); 2314 + start = u64_stats_fetch_begin(&ring->tx_syncp); 2315 2315 data[i] = ring->tx_stats.packets; 2316 2316 data[i+1] = ring->tx_stats.bytes; 2317 2317 data[i+2] = ring->tx_stats.restart_queue; 2318 - } while (u64_stats_fetch_retry_irq(&ring->tx_syncp, start)); 2318 + } while (u64_stats_fetch_retry(&ring->tx_syncp, start)); 2319 2319 do { 2320 - start = u64_stats_fetch_begin_irq(&ring->tx_syncp2); 2320 + start = u64_stats_fetch_begin(&ring->tx_syncp2); 2321 2321 restart2 = ring->tx_stats.restart_queue2; 2322 - } while (u64_stats_fetch_retry_irq(&ring->tx_syncp2, start)); 2322 + } while (u64_stats_fetch_retry(&ring->tx_syncp2, start)); 2323 2323 data[i+2] += restart2; 2324 2324 2325 2325 i += IGB_TX_QUEUE_STATS_LEN; ··· 2327 2327 for (j = 0; j < adapter->num_rx_queues; j++) { 2328 2328 ring = adapter->rx_ring[j]; 2329 2329 do { 2330 - start = u64_stats_fetch_begin_irq(&ring->rx_syncp); 2330 + start = u64_stats_fetch_begin(&ring->rx_syncp); 2331 2331 data[i] = ring->rx_stats.packets; 2332 2332 data[i+1] = ring->rx_stats.bytes; 2333 2333 data[i+2] = ring->rx_stats.drops; 2334 2334 data[i+3] = ring->rx_stats.csum_err; 2335 2335 data[i+4] = ring->rx_stats.alloc_failed; 2336 - } while (u64_stats_fetch_retry_irq(&ring->rx_syncp, start)); 2336 + } while (u64_stats_fetch_retry(&ring->rx_syncp, start)); 2337 2337 i += IGB_RX_QUEUE_STATS_LEN; 2338 2338 } 2339 2339 spin_unlock(&adapter->stats64_lock);
+4 -4
drivers/net/ethernet/intel/igb/igb_main.c
··· 6632 6632 } 6633 6633 6634 6634 do { 6635 - start = u64_stats_fetch_begin_irq(&ring->rx_syncp); 6635 + start = u64_stats_fetch_begin(&ring->rx_syncp); 6636 6636 _bytes = ring->rx_stats.bytes; 6637 6637 _packets = ring->rx_stats.packets; 6638 - } while (u64_stats_fetch_retry_irq(&ring->rx_syncp, start)); 6638 + } while (u64_stats_fetch_retry(&ring->rx_syncp, start)); 6639 6639 bytes += _bytes; 6640 6640 packets += _packets; 6641 6641 } ··· 6648 6648 for (i = 0; i < adapter->num_tx_queues; i++) { 6649 6649 struct igb_ring *ring = adapter->tx_ring[i]; 6650 6650 do { 6651 - start = u64_stats_fetch_begin_irq(&ring->tx_syncp); 6651 + start = u64_stats_fetch_begin(&ring->tx_syncp); 6652 6652 _bytes = ring->tx_stats.bytes; 6653 6653 _packets = ring->tx_stats.packets; 6654 - } while (u64_stats_fetch_retry_irq(&ring->tx_syncp, start)); 6654 + } while (u64_stats_fetch_retry(&ring->tx_syncp, start)); 6655 6655 bytes += _bytes; 6656 6656 packets += _packets; 6657 6657 }
+6 -6
drivers/net/ethernet/intel/igc/igc_ethtool.c
··· 839 839 840 840 ring = adapter->tx_ring[j]; 841 841 do { 842 - start = u64_stats_fetch_begin_irq(&ring->tx_syncp); 842 + start = u64_stats_fetch_begin(&ring->tx_syncp); 843 843 data[i] = ring->tx_stats.packets; 844 844 data[i + 1] = ring->tx_stats.bytes; 845 845 data[i + 2] = ring->tx_stats.restart_queue; 846 - } while (u64_stats_fetch_retry_irq(&ring->tx_syncp, start)); 846 + } while (u64_stats_fetch_retry(&ring->tx_syncp, start)); 847 847 do { 848 - start = u64_stats_fetch_begin_irq(&ring->tx_syncp2); 848 + start = u64_stats_fetch_begin(&ring->tx_syncp2); 849 849 restart2 = ring->tx_stats.restart_queue2; 850 - } while (u64_stats_fetch_retry_irq(&ring->tx_syncp2, start)); 850 + } while (u64_stats_fetch_retry(&ring->tx_syncp2, start)); 851 851 data[i + 2] += restart2; 852 852 853 853 i += IGC_TX_QUEUE_STATS_LEN; ··· 855 855 for (j = 0; j < adapter->num_rx_queues; j++) { 856 856 ring = adapter->rx_ring[j]; 857 857 do { 858 - start = u64_stats_fetch_begin_irq(&ring->rx_syncp); 858 + start = u64_stats_fetch_begin(&ring->rx_syncp); 859 859 data[i] = ring->rx_stats.packets; 860 860 data[i + 1] = ring->rx_stats.bytes; 861 861 data[i + 2] = ring->rx_stats.drops; 862 862 data[i + 3] = ring->rx_stats.csum_err; 863 863 data[i + 4] = ring->rx_stats.alloc_failed; 864 - } while (u64_stats_fetch_retry_irq(&ring->rx_syncp, start)); 864 + } while (u64_stats_fetch_retry(&ring->rx_syncp, start)); 865 865 i += IGC_RX_QUEUE_STATS_LEN; 866 866 } 867 867 spin_unlock(&adapter->stats64_lock);
+4 -4
drivers/net/ethernet/intel/igc/igc_main.c
··· 4682 4682 } 4683 4683 4684 4684 do { 4685 - start = u64_stats_fetch_begin_irq(&ring->rx_syncp); 4685 + start = u64_stats_fetch_begin(&ring->rx_syncp); 4686 4686 _bytes = ring->rx_stats.bytes; 4687 4687 _packets = ring->rx_stats.packets; 4688 - } while (u64_stats_fetch_retry_irq(&ring->rx_syncp, start)); 4688 + } while (u64_stats_fetch_retry(&ring->rx_syncp, start)); 4689 4689 bytes += _bytes; 4690 4690 packets += _packets; 4691 4691 } ··· 4699 4699 struct igc_ring *ring = adapter->tx_ring[i]; 4700 4700 4701 4701 do { 4702 - start = u64_stats_fetch_begin_irq(&ring->tx_syncp); 4702 + start = u64_stats_fetch_begin(&ring->tx_syncp); 4703 4703 _bytes = ring->tx_stats.bytes; 4704 4704 _packets = ring->tx_stats.packets; 4705 - } while (u64_stats_fetch_retry_irq(&ring->tx_syncp, start)); 4705 + } while (u64_stats_fetch_retry(&ring->tx_syncp, start)); 4706 4706 bytes += _bytes; 4707 4707 packets += _packets; 4708 4708 }
+4 -4
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
··· 1335 1335 } 1336 1336 1337 1337 do { 1338 - start = u64_stats_fetch_begin_irq(&ring->syncp); 1338 + start = u64_stats_fetch_begin(&ring->syncp); 1339 1339 data[i] = ring->stats.packets; 1340 1340 data[i+1] = ring->stats.bytes; 1341 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 1341 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 1342 1342 i += 2; 1343 1343 } 1344 1344 for (j = 0; j < IXGBE_NUM_RX_QUEUES; j++) { ··· 1351 1351 } 1352 1352 1353 1353 do { 1354 - start = u64_stats_fetch_begin_irq(&ring->syncp); 1354 + start = u64_stats_fetch_begin(&ring->syncp); 1355 1355 data[i] = ring->stats.packets; 1356 1356 data[i+1] = ring->stats.bytes; 1357 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 1357 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 1358 1358 i += 2; 1359 1359 } 1360 1360
+4 -4
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
··· 9041 9041 9042 9042 if (ring) { 9043 9043 do { 9044 - start = u64_stats_fetch_begin_irq(&ring->syncp); 9044 + start = u64_stats_fetch_begin(&ring->syncp); 9045 9045 packets = ring->stats.packets; 9046 9046 bytes = ring->stats.bytes; 9047 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 9047 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 9048 9048 stats->tx_packets += packets; 9049 9049 stats->tx_bytes += bytes; 9050 9050 } ··· 9064 9064 9065 9065 if (ring) { 9066 9066 do { 9067 - start = u64_stats_fetch_begin_irq(&ring->syncp); 9067 + start = u64_stats_fetch_begin(&ring->syncp); 9068 9068 packets = ring->stats.packets; 9069 9069 bytes = ring->stats.bytes; 9070 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 9070 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 9071 9071 stats->rx_packets += packets; 9072 9072 stats->rx_bytes += bytes; 9073 9073 }
+6 -6
drivers/net/ethernet/intel/ixgbevf/ethtool.c
··· 458 458 } 459 459 460 460 do { 461 - start = u64_stats_fetch_begin_irq(&ring->syncp); 461 + start = u64_stats_fetch_begin(&ring->syncp); 462 462 data[i] = ring->stats.packets; 463 463 data[i + 1] = ring->stats.bytes; 464 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 464 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 465 465 i += 2; 466 466 } 467 467 ··· 475 475 } 476 476 477 477 do { 478 - start = u64_stats_fetch_begin_irq(&ring->syncp); 478 + start = u64_stats_fetch_begin(&ring->syncp); 479 479 data[i] = ring->stats.packets; 480 480 data[i + 1] = ring->stats.bytes; 481 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 481 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 482 482 i += 2; 483 483 } 484 484 ··· 492 492 } 493 493 494 494 do { 495 - start = u64_stats_fetch_begin_irq(&ring->syncp); 495 + start = u64_stats_fetch_begin(&ring->syncp); 496 496 data[i] = ring->stats.packets; 497 497 data[i + 1] = ring->stats.bytes; 498 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 498 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 499 499 i += 2; 500 500 } 501 501 }
+4 -4
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
··· 4350 4350 4351 4351 if (ring) { 4352 4352 do { 4353 - start = u64_stats_fetch_begin_irq(&ring->syncp); 4353 + start = u64_stats_fetch_begin(&ring->syncp); 4354 4354 bytes = ring->stats.bytes; 4355 4355 packets = ring->stats.packets; 4356 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 4356 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 4357 4357 stats->tx_bytes += bytes; 4358 4358 stats->tx_packets += packets; 4359 4359 } ··· 4376 4376 for (i = 0; i < adapter->num_rx_queues; i++) { 4377 4377 ring = adapter->rx_ring[i]; 4378 4378 do { 4379 - start = u64_stats_fetch_begin_irq(&ring->syncp); 4379 + start = u64_stats_fetch_begin(&ring->syncp); 4380 4380 bytes = ring->stats.bytes; 4381 4381 packets = ring->stats.packets; 4382 - } while (u64_stats_fetch_retry_irq(&ring->syncp, start)); 4382 + } while (u64_stats_fetch_retry(&ring->syncp, start)); 4383 4383 stats->rx_bytes += bytes; 4384 4384 stats->rx_packets += packets; 4385 4385 }
+4 -4
drivers/net/ethernet/marvell/mvneta.c
··· 813 813 814 814 cpu_stats = per_cpu_ptr(pp->stats, cpu); 815 815 do { 816 - start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); 816 + start = u64_stats_fetch_begin(&cpu_stats->syncp); 817 817 rx_packets = cpu_stats->es.ps.rx_packets; 818 818 rx_bytes = cpu_stats->es.ps.rx_bytes; 819 819 rx_dropped = cpu_stats->rx_dropped; 820 820 rx_errors = cpu_stats->rx_errors; 821 821 tx_packets = cpu_stats->es.ps.tx_packets; 822 822 tx_bytes = cpu_stats->es.ps.tx_bytes; 823 - } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); 823 + } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); 824 824 825 825 stats->rx_packets += rx_packets; 826 826 stats->rx_bytes += rx_bytes; ··· 4762 4762 4763 4763 stats = per_cpu_ptr(pp->stats, cpu); 4764 4764 do { 4765 - start = u64_stats_fetch_begin_irq(&stats->syncp); 4765 + start = u64_stats_fetch_begin(&stats->syncp); 4766 4766 skb_alloc_error = stats->es.skb_alloc_error; 4767 4767 refill_error = stats->es.refill_error; 4768 4768 xdp_redirect = stats->es.ps.xdp_redirect; ··· 4772 4772 xdp_xmit_err = stats->es.ps.xdp_xmit_err; 4773 4773 xdp_tx = stats->es.ps.xdp_tx; 4774 4774 xdp_tx_err = stats->es.ps.xdp_tx_err; 4775 - } while (u64_stats_fetch_retry_irq(&stats->syncp, start)); 4775 + } while (u64_stats_fetch_retry(&stats->syncp, start)); 4776 4776 4777 4777 es->skb_alloc_error += skb_alloc_error; 4778 4778 es->refill_error += refill_error;
+4 -4
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
··· 2008 2008 2009 2009 cpu_stats = per_cpu_ptr(port->stats, cpu); 2010 2010 do { 2011 - start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); 2011 + start = u64_stats_fetch_begin(&cpu_stats->syncp); 2012 2012 xdp_redirect = cpu_stats->xdp_redirect; 2013 2013 xdp_pass = cpu_stats->xdp_pass; 2014 2014 xdp_drop = cpu_stats->xdp_drop; ··· 2016 2016 xdp_xmit_err = cpu_stats->xdp_xmit_err; 2017 2017 xdp_tx = cpu_stats->xdp_tx; 2018 2018 xdp_tx_err = cpu_stats->xdp_tx_err; 2019 - } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); 2019 + } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); 2020 2020 2021 2021 xdp_stats->xdp_redirect += xdp_redirect; 2022 2022 xdp_stats->xdp_pass += xdp_pass; ··· 5115 5115 5116 5116 cpu_stats = per_cpu_ptr(port->stats, cpu); 5117 5117 do { 5118 - start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); 5118 + start = u64_stats_fetch_begin(&cpu_stats->syncp); 5119 5119 rx_packets = cpu_stats->rx_packets; 5120 5120 rx_bytes = cpu_stats->rx_bytes; 5121 5121 tx_packets = cpu_stats->tx_packets; 5122 5122 tx_bytes = cpu_stats->tx_bytes; 5123 - } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); 5123 + } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); 5124 5124 5125 5125 stats->rx_packets += rx_packets; 5126 5126 stats->rx_bytes += rx_bytes;
+4 -4
drivers/net/ethernet/marvell/sky2.c
··· 3894 3894 u64 _bytes, _packets; 3895 3895 3896 3896 do { 3897 - start = u64_stats_fetch_begin_irq(&sky2->rx_stats.syncp); 3897 + start = u64_stats_fetch_begin(&sky2->rx_stats.syncp); 3898 3898 _bytes = sky2->rx_stats.bytes; 3899 3899 _packets = sky2->rx_stats.packets; 3900 - } while (u64_stats_fetch_retry_irq(&sky2->rx_stats.syncp, start)); 3900 + } while (u64_stats_fetch_retry(&sky2->rx_stats.syncp, start)); 3901 3901 3902 3902 stats->rx_packets = _packets; 3903 3903 stats->rx_bytes = _bytes; 3904 3904 3905 3905 do { 3906 - start = u64_stats_fetch_begin_irq(&sky2->tx_stats.syncp); 3906 + start = u64_stats_fetch_begin(&sky2->tx_stats.syncp); 3907 3907 _bytes = sky2->tx_stats.bytes; 3908 3908 _packets = sky2->tx_stats.packets; 3909 - } while (u64_stats_fetch_retry_irq(&sky2->tx_stats.syncp, start)); 3909 + } while (u64_stats_fetch_retry(&sky2->tx_stats.syncp, start)); 3910 3910 3911 3911 stats->tx_packets = _packets; 3912 3912 stats->tx_bytes = _bytes;
+4 -4
drivers/net/ethernet/mediatek/mtk_eth_soc.c
··· 865 865 } 866 866 867 867 do { 868 - start = u64_stats_fetch_begin_irq(&hw_stats->syncp); 868 + start = u64_stats_fetch_begin(&hw_stats->syncp); 869 869 storage->rx_packets = hw_stats->rx_packets; 870 870 storage->tx_packets = hw_stats->tx_packets; 871 871 storage->rx_bytes = hw_stats->rx_bytes; ··· 877 877 storage->rx_crc_errors = hw_stats->rx_fcs_errors; 878 878 storage->rx_errors = hw_stats->rx_checksum_errors; 879 879 storage->tx_aborted_errors = hw_stats->tx_skip; 880 - } while (u64_stats_fetch_retry_irq(&hw_stats->syncp, start)); 880 + } while (u64_stats_fetch_retry(&hw_stats->syncp, start)); 881 881 882 882 storage->tx_errors = dev->stats.tx_errors; 883 883 storage->rx_dropped = dev->stats.rx_dropped; ··· 3684 3684 3685 3685 do { 3686 3686 data_dst = data; 3687 - start = u64_stats_fetch_begin_irq(&hwstats->syncp); 3687 + start = u64_stats_fetch_begin(&hwstats->syncp); 3688 3688 3689 3689 for (i = 0; i < ARRAY_SIZE(mtk_ethtool_stats); i++) 3690 3690 *data_dst++ = *(data_src + mtk_ethtool_stats[i].offset); 3691 3691 if (mtk_page_pool_enabled(mac->hw)) 3692 3692 mtk_ethtool_pp_stats(mac->hw, data_dst); 3693 - } while (u64_stats_fetch_retry_irq(&hwstats->syncp, start)); 3693 + } while (u64_stats_fetch_retry(&hwstats->syncp, start)); 3694 3694 } 3695 3695 3696 3696 static int mtk_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
+2 -2
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
··· 827 827 for_each_possible_cpu(i) { 828 828 p = per_cpu_ptr(mlxsw_sp_port->pcpu_stats, i); 829 829 do { 830 - start = u64_stats_fetch_begin_irq(&p->syncp); 830 + start = u64_stats_fetch_begin(&p->syncp); 831 831 rx_packets = p->rx_packets; 832 832 rx_bytes = p->rx_bytes; 833 833 tx_packets = p->tx_packets; 834 834 tx_bytes = p->tx_bytes; 835 - } while (u64_stats_fetch_retry_irq(&p->syncp, start)); 835 + } while (u64_stats_fetch_retry(&p->syncp, start)); 836 836 837 837 stats->rx_packets += rx_packets; 838 838 stats->rx_bytes += rx_bytes;
+4 -4
drivers/net/ethernet/microsoft/mana/mana_en.c
··· 315 315 rx_stats = &apc->rxqs[q]->stats; 316 316 317 317 do { 318 - start = u64_stats_fetch_begin_irq(&rx_stats->syncp); 318 + start = u64_stats_fetch_begin(&rx_stats->syncp); 319 319 packets = rx_stats->packets; 320 320 bytes = rx_stats->bytes; 321 - } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); 321 + } while (u64_stats_fetch_retry(&rx_stats->syncp, start)); 322 322 323 323 st->rx_packets += packets; 324 324 st->rx_bytes += bytes; ··· 328 328 tx_stats = &apc->tx_qp[q].txq.stats; 329 329 330 330 do { 331 - start = u64_stats_fetch_begin_irq(&tx_stats->syncp); 331 + start = u64_stats_fetch_begin(&tx_stats->syncp); 332 332 packets = tx_stats->packets; 333 333 bytes = tx_stats->bytes; 334 - } while (u64_stats_fetch_retry_irq(&tx_stats->syncp, start)); 334 + } while (u64_stats_fetch_retry(&tx_stats->syncp, start)); 335 335 336 336 st->tx_packets += packets; 337 337 st->tx_bytes += bytes;
+4 -4
drivers/net/ethernet/microsoft/mana/mana_ethtool.c
··· 90 90 rx_stats = &apc->rxqs[q]->stats; 91 91 92 92 do { 93 - start = u64_stats_fetch_begin_irq(&rx_stats->syncp); 93 + start = u64_stats_fetch_begin(&rx_stats->syncp); 94 94 packets = rx_stats->packets; 95 95 bytes = rx_stats->bytes; 96 96 xdp_drop = rx_stats->xdp_drop; 97 97 xdp_tx = rx_stats->xdp_tx; 98 98 xdp_redirect = rx_stats->xdp_redirect; 99 - } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); 99 + } while (u64_stats_fetch_retry(&rx_stats->syncp, start)); 100 100 101 101 data[i++] = packets; 102 102 data[i++] = bytes; ··· 109 109 tx_stats = &apc->tx_qp[q].txq.stats; 110 110 111 111 do { 112 - start = u64_stats_fetch_begin_irq(&tx_stats->syncp); 112 + start = u64_stats_fetch_begin(&tx_stats->syncp); 113 113 packets = tx_stats->packets; 114 114 bytes = tx_stats->bytes; 115 115 xdp_xmit = tx_stats->xdp_xmit; 116 - } while (u64_stats_fetch_retry_irq(&tx_stats->syncp, start)); 116 + } while (u64_stats_fetch_retry(&tx_stats->syncp, start)); 117 117 118 118 data[i++] = packets; 119 119 data[i++] = bytes;
+4 -4
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
··· 1631 1631 unsigned int start; 1632 1632 1633 1633 do { 1634 - start = u64_stats_fetch_begin_irq(&r_vec->rx_sync); 1634 + start = u64_stats_fetch_begin(&r_vec->rx_sync); 1635 1635 data[0] = r_vec->rx_pkts; 1636 1636 data[1] = r_vec->rx_bytes; 1637 1637 data[2] = r_vec->rx_drops; 1638 - } while (u64_stats_fetch_retry_irq(&r_vec->rx_sync, start)); 1638 + } while (u64_stats_fetch_retry(&r_vec->rx_sync, start)); 1639 1639 stats->rx_packets += data[0]; 1640 1640 stats->rx_bytes += data[1]; 1641 1641 stats->rx_dropped += data[2]; 1642 1642 1643 1643 do { 1644 - start = u64_stats_fetch_begin_irq(&r_vec->tx_sync); 1644 + start = u64_stats_fetch_begin(&r_vec->tx_sync); 1645 1645 data[0] = r_vec->tx_pkts; 1646 1646 data[1] = r_vec->tx_bytes; 1647 1647 data[2] = r_vec->tx_errors; 1648 - } while (u64_stats_fetch_retry_irq(&r_vec->tx_sync, start)); 1648 + } while (u64_stats_fetch_retry(&r_vec->tx_sync, start)); 1649 1649 stats->tx_packets += data[0]; 1650 1650 stats->tx_bytes += data[1]; 1651 1651 stats->tx_errors += data[2];
+4 -4
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
··· 686 686 unsigned int start; 687 687 688 688 do { 689 - start = u64_stats_fetch_begin_irq(&nn->r_vecs[i].rx_sync); 689 + start = u64_stats_fetch_begin(&nn->r_vecs[i].rx_sync); 690 690 data[0] = nn->r_vecs[i].rx_pkts; 691 691 tmp[0] = nn->r_vecs[i].hw_csum_rx_ok; 692 692 tmp[1] = nn->r_vecs[i].hw_csum_rx_inner_ok; ··· 694 694 tmp[3] = nn->r_vecs[i].hw_csum_rx_error; 695 695 tmp[4] = nn->r_vecs[i].rx_replace_buf_alloc_fail; 696 696 tmp[5] = nn->r_vecs[i].hw_tls_rx; 697 - } while (u64_stats_fetch_retry_irq(&nn->r_vecs[i].rx_sync, start)); 697 + } while (u64_stats_fetch_retry(&nn->r_vecs[i].rx_sync, start)); 698 698 699 699 do { 700 - start = u64_stats_fetch_begin_irq(&nn->r_vecs[i].tx_sync); 700 + start = u64_stats_fetch_begin(&nn->r_vecs[i].tx_sync); 701 701 data[1] = nn->r_vecs[i].tx_pkts; 702 702 data[2] = nn->r_vecs[i].tx_busy; 703 703 tmp[6] = nn->r_vecs[i].hw_csum_tx; ··· 707 707 tmp[10] = nn->r_vecs[i].hw_tls_tx; 708 708 tmp[11] = nn->r_vecs[i].tls_tx_fallback; 709 709 tmp[12] = nn->r_vecs[i].tls_tx_no_fallback; 710 - } while (u64_stats_fetch_retry_irq(&nn->r_vecs[i].tx_sync, start)); 710 + } while (u64_stats_fetch_retry(&nn->r_vecs[i].tx_sync, start)); 711 711 712 712 data += NN_RVEC_PER_Q_STATS; 713 713
+2 -2
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c
··· 134 134 135 135 repr_stats = per_cpu_ptr(repr->stats, i); 136 136 do { 137 - start = u64_stats_fetch_begin_irq(&repr_stats->syncp); 137 + start = u64_stats_fetch_begin(&repr_stats->syncp); 138 138 tbytes = repr_stats->tx_bytes; 139 139 tpkts = repr_stats->tx_packets; 140 140 tdrops = repr_stats->tx_drops; 141 141 rbytes = repr_stats->rx_bytes; 142 142 rpkts = repr_stats->rx_packets; 143 - } while (u64_stats_fetch_retry_irq(&repr_stats->syncp, start)); 143 + } while (u64_stats_fetch_retry(&repr_stats->syncp, start)); 144 144 145 145 stats->tx_bytes += tbytes; 146 146 stats->tx_packets += tpkts;
+4 -4
drivers/net/ethernet/nvidia/forcedeth.c
··· 1734 1734 u64 tx_packets, tx_bytes, tx_dropped; 1735 1735 1736 1736 do { 1737 - syncp_start = u64_stats_fetch_begin_irq(&np->swstats_rx_syncp); 1737 + syncp_start = u64_stats_fetch_begin(&np->swstats_rx_syncp); 1738 1738 rx_packets = src->stat_rx_packets; 1739 1739 rx_bytes = src->stat_rx_bytes; 1740 1740 rx_dropped = src->stat_rx_dropped; 1741 1741 rx_missed_errors = src->stat_rx_missed_errors; 1742 - } while (u64_stats_fetch_retry_irq(&np->swstats_rx_syncp, syncp_start)); 1742 + } while (u64_stats_fetch_retry(&np->swstats_rx_syncp, syncp_start)); 1743 1743 1744 1744 storage->rx_packets += rx_packets; 1745 1745 storage->rx_bytes += rx_bytes; ··· 1747 1747 storage->rx_missed_errors += rx_missed_errors; 1748 1748 1749 1749 do { 1750 - syncp_start = u64_stats_fetch_begin_irq(&np->swstats_tx_syncp); 1750 + syncp_start = u64_stats_fetch_begin(&np->swstats_tx_syncp); 1751 1751 tx_packets = src->stat_tx_packets; 1752 1752 tx_bytes = src->stat_tx_bytes; 1753 1753 tx_dropped = src->stat_tx_dropped; 1754 - } while (u64_stats_fetch_retry_irq(&np->swstats_tx_syncp, syncp_start)); 1754 + } while (u64_stats_fetch_retry(&np->swstats_tx_syncp, syncp_start)); 1755 1755 1756 1756 storage->tx_packets += tx_packets; 1757 1757 storage->tx_bytes += tx_bytes;
+2 -2
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
··· 135 135 pcpu_ptr = per_cpu_ptr(priv->pcpu_stats, cpu); 136 136 137 137 do { 138 - start = u64_stats_fetch_begin_irq(&pcpu_ptr->syncp); 138 + start = u64_stats_fetch_begin(&pcpu_ptr->syncp); 139 139 snapshot = pcpu_ptr->stats; /* struct assignment */ 140 - } while (u64_stats_fetch_retry_irq(&pcpu_ptr->syncp, start)); 140 + } while (u64_stats_fetch_retry(&pcpu_ptr->syncp, start)); 141 141 142 142 total_stats.rx_pkts += snapshot.rx_pkts; 143 143 total_stats.rx_bytes += snapshot.rx_bytes;
+4 -4
drivers/net/ethernet/realtek/8139too.c
··· 2532 2532 netdev_stats_to_stats64(stats, &dev->stats); 2533 2533 2534 2534 do { 2535 - start = u64_stats_fetch_begin_irq(&tp->rx_stats.syncp); 2535 + start = u64_stats_fetch_begin(&tp->rx_stats.syncp); 2536 2536 stats->rx_packets = tp->rx_stats.packets; 2537 2537 stats->rx_bytes = tp->rx_stats.bytes; 2538 - } while (u64_stats_fetch_retry_irq(&tp->rx_stats.syncp, start)); 2538 + } while (u64_stats_fetch_retry(&tp->rx_stats.syncp, start)); 2539 2539 2540 2540 do { 2541 - start = u64_stats_fetch_begin_irq(&tp->tx_stats.syncp); 2541 + start = u64_stats_fetch_begin(&tp->tx_stats.syncp); 2542 2542 stats->tx_packets = tp->tx_stats.packets; 2543 2543 stats->tx_bytes = tp->tx_stats.bytes; 2544 - } while (u64_stats_fetch_retry_irq(&tp->tx_stats.syncp, start)); 2544 + } while (u64_stats_fetch_retry(&tp->tx_stats.syncp, start)); 2545 2545 } 2546 2546 2547 2547 /* Set or clear the multicast filter for this adaptor.
+4 -4
drivers/net/ethernet/socionext/sni_ave.c
··· 1508 1508 unsigned int start; 1509 1509 1510 1510 do { 1511 - start = u64_stats_fetch_begin_irq(&priv->stats_rx.syncp); 1511 + start = u64_stats_fetch_begin(&priv->stats_rx.syncp); 1512 1512 stats->rx_packets = priv->stats_rx.packets; 1513 1513 stats->rx_bytes = priv->stats_rx.bytes; 1514 - } while (u64_stats_fetch_retry_irq(&priv->stats_rx.syncp, start)); 1514 + } while (u64_stats_fetch_retry(&priv->stats_rx.syncp, start)); 1515 1515 1516 1516 do { 1517 - start = u64_stats_fetch_begin_irq(&priv->stats_tx.syncp); 1517 + start = u64_stats_fetch_begin(&priv->stats_tx.syncp); 1518 1518 stats->tx_packets = priv->stats_tx.packets; 1519 1519 stats->tx_bytes = priv->stats_tx.bytes; 1520 - } while (u64_stats_fetch_retry_irq(&priv->stats_tx.syncp, start)); 1520 + } while (u64_stats_fetch_retry(&priv->stats_tx.syncp, start)); 1521 1521 1522 1522 stats->rx_errors = priv->stats_rx.errors; 1523 1523 stats->tx_errors = priv->stats_tx.errors;
+2 -2
drivers/net/ethernet/ti/am65-cpsw-nuss.c
··· 1362 1362 1363 1363 cpu_stats = per_cpu_ptr(ndev_priv->stats, cpu); 1364 1364 do { 1365 - start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); 1365 + start = u64_stats_fetch_begin(&cpu_stats->syncp); 1366 1366 rx_packets = cpu_stats->rx_packets; 1367 1367 rx_bytes = cpu_stats->rx_bytes; 1368 1368 tx_packets = cpu_stats->tx_packets; 1369 1369 tx_bytes = cpu_stats->tx_bytes; 1370 - } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); 1370 + } while (u64_stats_fetch_retry(&cpu_stats->syncp, start)); 1371 1371 1372 1372 stats->rx_packets += rx_packets; 1373 1373 stats->rx_bytes += rx_bytes;
+4 -4
drivers/net/ethernet/ti/netcp_core.c
··· 1916 1916 unsigned int start; 1917 1917 1918 1918 do { 1919 - start = u64_stats_fetch_begin_irq(&p->syncp_rx); 1919 + start = u64_stats_fetch_begin(&p->syncp_rx); 1920 1920 rxpackets = p->rx_packets; 1921 1921 rxbytes = p->rx_bytes; 1922 - } while (u64_stats_fetch_retry_irq(&p->syncp_rx, start)); 1922 + } while (u64_stats_fetch_retry(&p->syncp_rx, start)); 1923 1923 1924 1924 do { 1925 - start = u64_stats_fetch_begin_irq(&p->syncp_tx); 1925 + start = u64_stats_fetch_begin(&p->syncp_tx); 1926 1926 txpackets = p->tx_packets; 1927 1927 txbytes = p->tx_bytes; 1928 - } while (u64_stats_fetch_retry_irq(&p->syncp_tx, start)); 1928 + } while (u64_stats_fetch_retry(&p->syncp_tx, start)); 1929 1929 1930 1930 stats->rx_packets = rxpackets; 1931 1931 stats->rx_bytes = rxbytes;
+4 -4
drivers/net/ethernet/via/via-rhine.c
··· 2217 2217 netdev_stats_to_stats64(stats, &dev->stats); 2218 2218 2219 2219 do { 2220 - start = u64_stats_fetch_begin_irq(&rp->rx_stats.syncp); 2220 + start = u64_stats_fetch_begin(&rp->rx_stats.syncp); 2221 2221 stats->rx_packets = rp->rx_stats.packets; 2222 2222 stats->rx_bytes = rp->rx_stats.bytes; 2223 - } while (u64_stats_fetch_retry_irq(&rp->rx_stats.syncp, start)); 2223 + } while (u64_stats_fetch_retry(&rp->rx_stats.syncp, start)); 2224 2224 2225 2225 do { 2226 - start = u64_stats_fetch_begin_irq(&rp->tx_stats.syncp); 2226 + start = u64_stats_fetch_begin(&rp->tx_stats.syncp); 2227 2227 stats->tx_packets = rp->tx_stats.packets; 2228 2228 stats->tx_bytes = rp->tx_stats.bytes; 2229 - } while (u64_stats_fetch_retry_irq(&rp->tx_stats.syncp, start)); 2229 + } while (u64_stats_fetch_retry(&rp->tx_stats.syncp, start)); 2230 2230 } 2231 2231 2232 2232 static void rhine_set_rx_mode(struct net_device *dev)
+4 -4
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
··· 1305 1305 netdev_stats_to_stats64(stats, &dev->stats); 1306 1306 1307 1307 do { 1308 - start = u64_stats_fetch_begin_irq(&lp->rx_stat_sync); 1308 + start = u64_stats_fetch_begin(&lp->rx_stat_sync); 1309 1309 stats->rx_packets = u64_stats_read(&lp->rx_packets); 1310 1310 stats->rx_bytes = u64_stats_read(&lp->rx_bytes); 1311 - } while (u64_stats_fetch_retry_irq(&lp->rx_stat_sync, start)); 1311 + } while (u64_stats_fetch_retry(&lp->rx_stat_sync, start)); 1312 1312 1313 1313 do { 1314 - start = u64_stats_fetch_begin_irq(&lp->tx_stat_sync); 1314 + start = u64_stats_fetch_begin(&lp->tx_stat_sync); 1315 1315 stats->tx_packets = u64_stats_read(&lp->tx_packets); 1316 1316 stats->tx_bytes = u64_stats_read(&lp->tx_bytes); 1317 - } while (u64_stats_fetch_retry_irq(&lp->tx_stat_sync, start)); 1317 + } while (u64_stats_fetch_retry(&lp->tx_stat_sync, start)); 1318 1318 } 1319 1319 1320 1320 static const struct net_device_ops axienet_netdev_ops = {
+16 -16
drivers/net/hyperv/netvsc_drv.c
··· 1264 1264 unsigned int start; 1265 1265 1266 1266 do { 1267 - start = u64_stats_fetch_begin_irq(&stats->syncp); 1267 + start = u64_stats_fetch_begin(&stats->syncp); 1268 1268 rx_packets = stats->rx_packets; 1269 1269 tx_packets = stats->tx_packets; 1270 1270 rx_bytes = stats->rx_bytes; 1271 1271 tx_bytes = stats->tx_bytes; 1272 - } while (u64_stats_fetch_retry_irq(&stats->syncp, start)); 1272 + } while (u64_stats_fetch_retry(&stats->syncp, start)); 1273 1273 1274 1274 tot->rx_packets += rx_packets; 1275 1275 tot->tx_packets += tx_packets; ··· 1294 1294 unsigned int start; 1295 1295 1296 1296 do { 1297 - start = u64_stats_fetch_begin_irq(&stats->syncp); 1297 + start = u64_stats_fetch_begin(&stats->syncp); 1298 1298 this_tot->vf_rx_packets = stats->rx_packets; 1299 1299 this_tot->vf_tx_packets = stats->tx_packets; 1300 1300 this_tot->vf_rx_bytes = stats->rx_bytes; 1301 1301 this_tot->vf_tx_bytes = stats->tx_bytes; 1302 - } while (u64_stats_fetch_retry_irq(&stats->syncp, start)); 1302 + } while (u64_stats_fetch_retry(&stats->syncp, start)); 1303 1303 this_tot->rx_packets = this_tot->vf_rx_packets; 1304 1304 this_tot->tx_packets = this_tot->vf_tx_packets; 1305 1305 this_tot->rx_bytes = this_tot->vf_rx_bytes; ··· 1318 1318 1319 1319 tx_stats = &nvchan->tx_stats; 1320 1320 do { 1321 - start = u64_stats_fetch_begin_irq(&tx_stats->syncp); 1321 + start = u64_stats_fetch_begin(&tx_stats->syncp); 1322 1322 packets = tx_stats->packets; 1323 1323 bytes = tx_stats->bytes; 1324 - } while (u64_stats_fetch_retry_irq(&tx_stats->syncp, start)); 1324 + } while (u64_stats_fetch_retry(&tx_stats->syncp, start)); 1325 1325 1326 1326 this_tot->tx_bytes += bytes; 1327 1327 this_tot->tx_packets += packets; 1328 1328 1329 1329 rx_stats = &nvchan->rx_stats; 1330 1330 do { 1331 - start = u64_stats_fetch_begin_irq(&rx_stats->syncp); 1331 + start = u64_stats_fetch_begin(&rx_stats->syncp); 1332 1332 packets = rx_stats->packets; 1333 1333 bytes = rx_stats->bytes; 1334 - } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); 1334 + } while (u64_stats_fetch_retry(&rx_stats->syncp, start)); 1335 1335 1336 1336 this_tot->rx_bytes += bytes; 1337 1337 this_tot->rx_packets += packets; ··· 1370 1370 1371 1371 tx_stats = &nvchan->tx_stats; 1372 1372 do { 1373 - start = u64_stats_fetch_begin_irq(&tx_stats->syncp); 1373 + start = u64_stats_fetch_begin(&tx_stats->syncp); 1374 1374 packets = tx_stats->packets; 1375 1375 bytes = tx_stats->bytes; 1376 - } while (u64_stats_fetch_retry_irq(&tx_stats->syncp, start)); 1376 + } while (u64_stats_fetch_retry(&tx_stats->syncp, start)); 1377 1377 1378 1378 t->tx_bytes += bytes; 1379 1379 t->tx_packets += packets; 1380 1380 1381 1381 rx_stats = &nvchan->rx_stats; 1382 1382 do { 1383 - start = u64_stats_fetch_begin_irq(&rx_stats->syncp); 1383 + start = u64_stats_fetch_begin(&rx_stats->syncp); 1384 1384 packets = rx_stats->packets; 1385 1385 bytes = rx_stats->bytes; 1386 1386 multicast = rx_stats->multicast + rx_stats->broadcast; 1387 - } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); 1387 + } while (u64_stats_fetch_retry(&rx_stats->syncp, start)); 1388 1388 1389 1389 t->rx_bytes += bytes; 1390 1390 t->rx_packets += packets; ··· 1527 1527 tx_stats = &nvdev->chan_table[j].tx_stats; 1528 1528 1529 1529 do { 1530 - start = u64_stats_fetch_begin_irq(&tx_stats->syncp); 1530 + start = u64_stats_fetch_begin(&tx_stats->syncp); 1531 1531 packets = tx_stats->packets; 1532 1532 bytes = tx_stats->bytes; 1533 1533 xdp_xmit = tx_stats->xdp_xmit; 1534 - } while (u64_stats_fetch_retry_irq(&tx_stats->syncp, start)); 1534 + } while (u64_stats_fetch_retry(&tx_stats->syncp, start)); 1535 1535 data[i++] = packets; 1536 1536 data[i++] = bytes; 1537 1537 data[i++] = xdp_xmit; 1538 1538 1539 1539 rx_stats = &nvdev->chan_table[j].rx_stats; 1540 1540 do { 1541 - start = u64_stats_fetch_begin_irq(&rx_stats->syncp); 1541 + start = u64_stats_fetch_begin(&rx_stats->syncp); 1542 1542 packets = rx_stats->packets; 1543 1543 bytes = rx_stats->bytes; 1544 1544 xdp_drop = rx_stats->xdp_drop; 1545 1545 xdp_redirect = rx_stats->xdp_redirect; 1546 1546 xdp_tx = rx_stats->xdp_tx; 1547 - } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); 1547 + } while (u64_stats_fetch_retry(&rx_stats->syncp, start)); 1548 1548 data[i++] = packets; 1549 1549 data[i++] = bytes; 1550 1550 data[i++] = xdp_drop;
+6 -6
drivers/net/ifb.c
··· 162 162 163 163 for (i = 0; i < dev->num_tx_queues; i++,txp++) { 164 164 do { 165 - start = u64_stats_fetch_begin_irq(&txp->rx_stats.sync); 165 + start = u64_stats_fetch_begin(&txp->rx_stats.sync); 166 166 packets = txp->rx_stats.packets; 167 167 bytes = txp->rx_stats.bytes; 168 - } while (u64_stats_fetch_retry_irq(&txp->rx_stats.sync, start)); 168 + } while (u64_stats_fetch_retry(&txp->rx_stats.sync, start)); 169 169 stats->rx_packets += packets; 170 170 stats->rx_bytes += bytes; 171 171 172 172 do { 173 - start = u64_stats_fetch_begin_irq(&txp->tx_stats.sync); 173 + start = u64_stats_fetch_begin(&txp->tx_stats.sync); 174 174 packets = txp->tx_stats.packets; 175 175 bytes = txp->tx_stats.bytes; 176 - } while (u64_stats_fetch_retry_irq(&txp->tx_stats.sync, start)); 176 + } while (u64_stats_fetch_retry(&txp->tx_stats.sync, start)); 177 177 stats->tx_packets += packets; 178 178 stats->tx_bytes += bytes; 179 179 } ··· 245 245 int j; 246 246 247 247 do { 248 - start = u64_stats_fetch_begin_irq(&q_stats->sync); 248 + start = u64_stats_fetch_begin(&q_stats->sync); 249 249 for (j = 0; j < IFB_Q_STATS_LEN; j++) { 250 250 offset = ifb_q_stats_desc[j].offset; 251 251 (*data)[j] = *(u64 *)(stats_base + offset); 252 252 } 253 - } while (u64_stats_fetch_retry_irq(&q_stats->sync, start)); 253 + } while (u64_stats_fetch_retry(&q_stats->sync, start)); 254 254 255 255 *data += IFB_Q_STATS_LEN; 256 256 }
+2 -2
drivers/net/ipvlan/ipvlan_main.c
··· 299 299 for_each_possible_cpu(idx) { 300 300 pcptr = per_cpu_ptr(ipvlan->pcpu_stats, idx); 301 301 do { 302 - strt= u64_stats_fetch_begin_irq(&pcptr->syncp); 302 + strt = u64_stats_fetch_begin(&pcptr->syncp); 303 303 rx_pkts = u64_stats_read(&pcptr->rx_pkts); 304 304 rx_bytes = u64_stats_read(&pcptr->rx_bytes); 305 305 rx_mcast = u64_stats_read(&pcptr->rx_mcast); 306 306 tx_pkts = u64_stats_read(&pcptr->tx_pkts); 307 307 tx_bytes = u64_stats_read(&pcptr->tx_bytes); 308 - } while (u64_stats_fetch_retry_irq(&pcptr->syncp, 308 + } while (u64_stats_fetch_retry(&pcptr->syncp, 309 309 strt)); 310 310 311 311 s->rx_packets += rx_pkts;
+2 -2
drivers/net/loopback.c
··· 106 106 107 107 lb_stats = per_cpu_ptr(dev->lstats, i); 108 108 do { 109 - start = u64_stats_fetch_begin_irq(&lb_stats->syncp); 109 + start = u64_stats_fetch_begin(&lb_stats->syncp); 110 110 tpackets = u64_stats_read(&lb_stats->packets); 111 111 tbytes = u64_stats_read(&lb_stats->bytes); 112 - } while (u64_stats_fetch_retry_irq(&lb_stats->syncp, start)); 112 + } while (u64_stats_fetch_retry(&lb_stats->syncp, start)); 113 113 *bytes += tbytes; 114 114 *packets += tpackets; 115 115 }
+6 -6
drivers/net/macsec.c
··· 2795 2795 2796 2796 stats = per_cpu_ptr(rx_sc->stats, cpu); 2797 2797 do { 2798 - start = u64_stats_fetch_begin_irq(&stats->syncp); 2798 + start = u64_stats_fetch_begin(&stats->syncp); 2799 2799 memcpy(&tmp, &stats->stats, sizeof(tmp)); 2800 - } while (u64_stats_fetch_retry_irq(&stats->syncp, start)); 2800 + } while (u64_stats_fetch_retry(&stats->syncp, start)); 2801 2801 2802 2802 sum->InOctetsValidated += tmp.InOctetsValidated; 2803 2803 sum->InOctetsDecrypted += tmp.InOctetsDecrypted; ··· 2876 2876 2877 2877 stats = per_cpu_ptr(macsec_priv(dev)->secy.tx_sc.stats, cpu); 2878 2878 do { 2879 - start = u64_stats_fetch_begin_irq(&stats->syncp); 2879 + start = u64_stats_fetch_begin(&stats->syncp); 2880 2880 memcpy(&tmp, &stats->stats, sizeof(tmp)); 2881 - } while (u64_stats_fetch_retry_irq(&stats->syncp, start)); 2881 + } while (u64_stats_fetch_retry(&stats->syncp, start)); 2882 2882 2883 2883 sum->OutPktsProtected += tmp.OutPktsProtected; 2884 2884 sum->OutPktsEncrypted += tmp.OutPktsEncrypted; ··· 2932 2932 2933 2933 stats = per_cpu_ptr(macsec_priv(dev)->stats, cpu); 2934 2934 do { 2935 - start = u64_stats_fetch_begin_irq(&stats->syncp); 2935 + start = u64_stats_fetch_begin(&stats->syncp); 2936 2936 memcpy(&tmp, &stats->stats, sizeof(tmp)); 2937 - } while (u64_stats_fetch_retry_irq(&stats->syncp, start)); 2937 + } while (u64_stats_fetch_retry(&stats->syncp, start)); 2938 2938 2939 2939 sum->OutPktsUntagged += tmp.OutPktsUntagged; 2940 2940 sum->InPktsUntagged += tmp.InPktsUntagged;
+2 -2
drivers/net/macvlan.c
··· 948 948 for_each_possible_cpu(i) { 949 949 p = per_cpu_ptr(vlan->pcpu_stats, i); 950 950 do { 951 - start = u64_stats_fetch_begin_irq(&p->syncp); 951 + start = u64_stats_fetch_begin(&p->syncp); 952 952 rx_packets = u64_stats_read(&p->rx_packets); 953 953 rx_bytes = u64_stats_read(&p->rx_bytes); 954 954 rx_multicast = u64_stats_read(&p->rx_multicast); 955 955 tx_packets = u64_stats_read(&p->tx_packets); 956 956 tx_bytes = u64_stats_read(&p->tx_bytes); 957 - } while (u64_stats_fetch_retry_irq(&p->syncp, start)); 957 + } while (u64_stats_fetch_retry(&p->syncp, start)); 958 958 959 959 stats->rx_packets += rx_packets; 960 960 stats->rx_bytes += rx_bytes;
+4 -4
drivers/net/mhi_net.c
··· 104 104 unsigned int start; 105 105 106 106 do { 107 - start = u64_stats_fetch_begin_irq(&mhi_netdev->stats.rx_syncp); 107 + start = u64_stats_fetch_begin(&mhi_netdev->stats.rx_syncp); 108 108 stats->rx_packets = u64_stats_read(&mhi_netdev->stats.rx_packets); 109 109 stats->rx_bytes = u64_stats_read(&mhi_netdev->stats.rx_bytes); 110 110 stats->rx_errors = u64_stats_read(&mhi_netdev->stats.rx_errors); 111 - } while (u64_stats_fetch_retry_irq(&mhi_netdev->stats.rx_syncp, start)); 111 + } while (u64_stats_fetch_retry(&mhi_netdev->stats.rx_syncp, start)); 112 112 113 113 do { 114 - start = u64_stats_fetch_begin_irq(&mhi_netdev->stats.tx_syncp); 114 + start = u64_stats_fetch_begin(&mhi_netdev->stats.tx_syncp); 115 115 stats->tx_packets = u64_stats_read(&mhi_netdev->stats.tx_packets); 116 116 stats->tx_bytes = u64_stats_read(&mhi_netdev->stats.tx_bytes); 117 117 stats->tx_errors = u64_stats_read(&mhi_netdev->stats.tx_errors); 118 118 stats->tx_dropped = u64_stats_read(&mhi_netdev->stats.tx_dropped); 119 - } while (u64_stats_fetch_retry_irq(&mhi_netdev->stats.tx_syncp, start)); 119 + } while (u64_stats_fetch_retry(&mhi_netdev->stats.tx_syncp, start)); 120 120 } 121 121 122 122 static const struct net_device_ops mhi_netdev_ops = {
+2 -2
drivers/net/netdevsim/netdev.c
··· 67 67 unsigned int start; 68 68 69 69 do { 70 - start = u64_stats_fetch_begin_irq(&ns->syncp); 70 + start = u64_stats_fetch_begin(&ns->syncp); 71 71 stats->tx_bytes = ns->tx_bytes; 72 72 stats->tx_packets = ns->tx_packets; 73 - } while (u64_stats_fetch_retry_irq(&ns->syncp, start)); 73 + } while (u64_stats_fetch_retry(&ns->syncp, start)); 74 74 } 75 75 76 76 static int
+2 -2
drivers/net/team/team.c
··· 1865 1865 for_each_possible_cpu(i) { 1866 1866 p = per_cpu_ptr(team->pcpu_stats, i); 1867 1867 do { 1868 - start = u64_stats_fetch_begin_irq(&p->syncp); 1868 + start = u64_stats_fetch_begin(&p->syncp); 1869 1869 rx_packets = u64_stats_read(&p->rx_packets); 1870 1870 rx_bytes = u64_stats_read(&p->rx_bytes); 1871 1871 rx_multicast = u64_stats_read(&p->rx_multicast); 1872 1872 tx_packets = u64_stats_read(&p->tx_packets); 1873 1873 tx_bytes = u64_stats_read(&p->tx_bytes); 1874 - } while (u64_stats_fetch_retry_irq(&p->syncp, start)); 1874 + } while (u64_stats_fetch_retry(&p->syncp, start)); 1875 1875 1876 1876 stats->rx_packets += rx_packets; 1877 1877 stats->rx_bytes += rx_bytes;
+2 -2
drivers/net/team/team_mode_loadbalance.c
··· 466 466 struct lb_stats tmp; 467 467 468 468 do { 469 - start = u64_stats_fetch_begin_irq(syncp); 469 + start = u64_stats_fetch_begin(syncp); 470 470 tmp.tx_bytes = cpu_stats->tx_bytes; 471 - } while (u64_stats_fetch_retry_irq(syncp, start)); 471 + } while (u64_stats_fetch_retry(syncp, start)); 472 472 acc_stats->tx_bytes += tmp.tx_bytes; 473 473 } 474 474
+6 -6
drivers/net/veth.c
··· 182 182 size_t offset; 183 183 184 184 do { 185 - start = u64_stats_fetch_begin_irq(&rq_stats->syncp); 185 + start = u64_stats_fetch_begin(&rq_stats->syncp); 186 186 for (j = 0; j < VETH_RQ_STATS_LEN; j++) { 187 187 offset = veth_rq_stats_desc[j].offset; 188 188 data[idx + j] = *(u64 *)(stats_base + offset); 189 189 } 190 - } while (u64_stats_fetch_retry_irq(&rq_stats->syncp, start)); 190 + } while (u64_stats_fetch_retry(&rq_stats->syncp, start)); 191 191 idx += VETH_RQ_STATS_LEN; 192 192 } 193 193 ··· 203 203 204 204 tx_idx += (i % dev->real_num_tx_queues) * VETH_TQ_STATS_LEN; 205 205 do { 206 - start = u64_stats_fetch_begin_irq(&rq_stats->syncp); 206 + start = u64_stats_fetch_begin(&rq_stats->syncp); 207 207 for (j = 0; j < VETH_TQ_STATS_LEN; j++) { 208 208 offset = veth_tq_stats_desc[j].offset; 209 209 data[tx_idx + j] += *(u64 *)(base + offset); 210 210 } 211 - } while (u64_stats_fetch_retry_irq(&rq_stats->syncp, start)); 211 + } while (u64_stats_fetch_retry(&rq_stats->syncp, start)); 212 212 } 213 213 } 214 214 ··· 379 379 unsigned int start; 380 380 381 381 do { 382 - start = u64_stats_fetch_begin_irq(&stats->syncp); 382 + start = u64_stats_fetch_begin(&stats->syncp); 383 383 peer_tq_xdp_xmit_err = stats->vs.peer_tq_xdp_xmit_err; 384 384 xdp_tx_err = stats->vs.xdp_tx_err; 385 385 packets = stats->vs.xdp_packets; 386 386 bytes = stats->vs.xdp_bytes; 387 387 drops = stats->vs.rx_drops; 388 - } while (u64_stats_fetch_retry_irq(&stats->syncp, start)); 388 + } while (u64_stats_fetch_retry(&stats->syncp, start)); 389 389 result->peer_tq_xdp_xmit_err += peer_tq_xdp_xmit_err; 390 390 result->xdp_tx_err += xdp_tx_err; 391 391 result->xdp_packets += packets;
+8 -8
drivers/net/virtio_net.c
··· 2069 2069 struct send_queue *sq = &vi->sq[i]; 2070 2070 2071 2071 do { 2072 - start = u64_stats_fetch_begin_irq(&sq->stats.syncp); 2072 + start = u64_stats_fetch_begin(&sq->stats.syncp); 2073 2073 tpackets = sq->stats.packets; 2074 2074 tbytes = sq->stats.bytes; 2075 2075 terrors = sq->stats.tx_timeouts; 2076 - } while (u64_stats_fetch_retry_irq(&sq->stats.syncp, start)); 2076 + } while (u64_stats_fetch_retry(&sq->stats.syncp, start)); 2077 2077 2078 2078 do { 2079 - start = u64_stats_fetch_begin_irq(&rq->stats.syncp); 2079 + start = u64_stats_fetch_begin(&rq->stats.syncp); 2080 2080 rpackets = rq->stats.packets; 2081 2081 rbytes = rq->stats.bytes; 2082 2082 rdrops = rq->stats.drops; 2083 - } while (u64_stats_fetch_retry_irq(&rq->stats.syncp, start)); 2083 + } while (u64_stats_fetch_retry(&rq->stats.syncp, start)); 2084 2084 2085 2085 tot->rx_packets += rpackets; 2086 2086 tot->tx_packets += tpackets; ··· 2691 2691 2692 2692 stats_base = (u8 *)&rq->stats; 2693 2693 do { 2694 - start = u64_stats_fetch_begin_irq(&rq->stats.syncp); 2694 + start = u64_stats_fetch_begin(&rq->stats.syncp); 2695 2695 for (j = 0; j < VIRTNET_RQ_STATS_LEN; j++) { 2696 2696 offset = virtnet_rq_stats_desc[j].offset; 2697 2697 data[idx + j] = *(u64 *)(stats_base + offset); 2698 2698 } 2699 - } while (u64_stats_fetch_retry_irq(&rq->stats.syncp, start)); 2699 + } while (u64_stats_fetch_retry(&rq->stats.syncp, start)); 2700 2700 idx += VIRTNET_RQ_STATS_LEN; 2701 2701 } 2702 2702 ··· 2705 2705 2706 2706 stats_base = (u8 *)&sq->stats; 2707 2707 do { 2708 - start = u64_stats_fetch_begin_irq(&sq->stats.syncp); 2708 + start = u64_stats_fetch_begin(&sq->stats.syncp); 2709 2709 for (j = 0; j < VIRTNET_SQ_STATS_LEN; j++) { 2710 2710 offset = virtnet_sq_stats_desc[j].offset; 2711 2711 data[idx + j] = *(u64 *)(stats_base + offset); 2712 2712 } 2713 - } while (u64_stats_fetch_retry_irq(&sq->stats.syncp, start)); 2713 + } while (u64_stats_fetch_retry(&sq->stats.syncp, start)); 2714 2714 idx += VIRTNET_SQ_STATS_LEN; 2715 2715 } 2716 2716 }
+2 -2
drivers/net/vrf.c
··· 159 159 160 160 dstats = per_cpu_ptr(dev->dstats, i); 161 161 do { 162 - start = u64_stats_fetch_begin_irq(&dstats->syncp); 162 + start = u64_stats_fetch_begin(&dstats->syncp); 163 163 tbytes = dstats->tx_bytes; 164 164 tpkts = dstats->tx_pkts; 165 165 tdrops = dstats->tx_drps; 166 166 rbytes = dstats->rx_bytes; 167 167 rpkts = dstats->rx_pkts; 168 - } while (u64_stats_fetch_retry_irq(&dstats->syncp, start)); 168 + } while (u64_stats_fetch_retry(&dstats->syncp, start)); 169 169 stats->tx_bytes += tbytes; 170 170 stats->tx_packets += tpkts; 171 171 stats->tx_dropped += tdrops;
+2 -2
drivers/net/vxlan/vxlan_vnifilter.c
··· 129 129 130 130 pstats = per_cpu_ptr(vninode->stats, i); 131 131 do { 132 - start = u64_stats_fetch_begin_irq(&pstats->syncp); 132 + start = u64_stats_fetch_begin(&pstats->syncp); 133 133 memcpy(&temp, &pstats->stats, sizeof(temp)); 134 - } while (u64_stats_fetch_retry_irq(&pstats->syncp, start)); 134 + } while (u64_stats_fetch_retry(&pstats->syncp, start)); 135 135 136 136 dest->rx_packets += temp.rx_packets; 137 137 dest->rx_bytes += temp.rx_bytes;
+4 -4
drivers/net/wwan/mhi_wwan_mbim.c
··· 456 456 unsigned int start; 457 457 458 458 do { 459 - start = u64_stats_fetch_begin_irq(&link->rx_syncp); 459 + start = u64_stats_fetch_begin(&link->rx_syncp); 460 460 stats->rx_packets = u64_stats_read(&link->rx_packets); 461 461 stats->rx_bytes = u64_stats_read(&link->rx_bytes); 462 462 stats->rx_errors = u64_stats_read(&link->rx_errors); 463 - } while (u64_stats_fetch_retry_irq(&link->rx_syncp, start)); 463 + } while (u64_stats_fetch_retry(&link->rx_syncp, start)); 464 464 465 465 do { 466 - start = u64_stats_fetch_begin_irq(&link->tx_syncp); 466 + start = u64_stats_fetch_begin(&link->tx_syncp); 467 467 stats->tx_packets = u64_stats_read(&link->tx_packets); 468 468 stats->tx_bytes = u64_stats_read(&link->tx_bytes); 469 469 stats->tx_errors = u64_stats_read(&link->tx_errors); 470 470 stats->tx_dropped = u64_stats_read(&link->tx_dropped); 471 - } while (u64_stats_fetch_retry_irq(&link->tx_syncp, start)); 471 + } while (u64_stats_fetch_retry(&link->tx_syncp, start)); 472 472 } 473 473 474 474 static void mhi_mbim_ul_callback(struct mhi_device *mhi_dev,
+4 -4
drivers/net/xen-netfront.c
··· 1392 1392 unsigned int start; 1393 1393 1394 1394 do { 1395 - start = u64_stats_fetch_begin_irq(&tx_stats->syncp); 1395 + start = u64_stats_fetch_begin(&tx_stats->syncp); 1396 1396 tx_packets = tx_stats->packets; 1397 1397 tx_bytes = tx_stats->bytes; 1398 - } while (u64_stats_fetch_retry_irq(&tx_stats->syncp, start)); 1398 + } while (u64_stats_fetch_retry(&tx_stats->syncp, start)); 1399 1399 1400 1400 do { 1401 - start = u64_stats_fetch_begin_irq(&rx_stats->syncp); 1401 + start = u64_stats_fetch_begin(&rx_stats->syncp); 1402 1402 rx_packets = rx_stats->packets; 1403 1403 rx_bytes = rx_stats->bytes; 1404 - } while (u64_stats_fetch_retry_irq(&rx_stats->syncp, start)); 1404 + } while (u64_stats_fetch_retry(&rx_stats->syncp, start)); 1405 1405 1406 1406 tot->rx_packets += rx_packets; 1407 1407 tot->tx_packets += tx_packets;