Lines Matching refs:pcptr
224 struct ipvl_pcpu_stats *pcptr; in ipvlan_start_xmit() local
226 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_start_xmit()
228 u64_stats_update_begin(&pcptr->syncp); in ipvlan_start_xmit()
229 u64_stats_inc(&pcptr->tx_pkts); in ipvlan_start_xmit()
230 u64_stats_add(&pcptr->tx_bytes, skblen); in ipvlan_start_xmit()
231 u64_stats_update_end(&pcptr->syncp); in ipvlan_start_xmit()
295 struct ipvl_pcpu_stats *pcptr; in ipvlan_get_stats64() local
302 pcptr = per_cpu_ptr(ipvlan->pcpu_stats, idx); in ipvlan_get_stats64()
304 strt = u64_stats_fetch_begin(&pcptr->syncp); in ipvlan_get_stats64()
305 rx_pkts = u64_stats_read(&pcptr->rx_pkts); in ipvlan_get_stats64()
306 rx_bytes = u64_stats_read(&pcptr->rx_bytes); in ipvlan_get_stats64()
307 rx_mcast = u64_stats_read(&pcptr->rx_mcast); in ipvlan_get_stats64()
308 tx_pkts = u64_stats_read(&pcptr->tx_pkts); in ipvlan_get_stats64()
309 tx_bytes = u64_stats_read(&pcptr->tx_bytes); in ipvlan_get_stats64()
310 } while (u64_stats_fetch_retry(&pcptr->syncp, in ipvlan_get_stats64()
320 rx_errs += READ_ONCE(pcptr->rx_errs); in ipvlan_get_stats64()
321 tx_drps += READ_ONCE(pcptr->tx_drps); in ipvlan_get_stats64()