MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sfc_pkts_bytes_get

Function sfc_pkts_bytes_get

dpdk/drivers/net/sfc/sfc_stats.h:65–74  ·  view source on GitHub ↗

* Get an atomic copy of a packets and bytes counters. */

Source from the content-addressed store, hash-verified

63 * Get an atomic copy of a packets and bytes counters.
64 */
65static inline void
66sfc_pkts_bytes_get(const union sfc_pkts_bytes *st, union sfc_pkts_bytes *result)
67{
68#if SFC_SW_STATS_ATOMIC
69 result->pkts_bytes.int128 = __atomic_load_n(&st->pkts_bytes.int128,
70 __ATOMIC_RELAXED);
71#else
72 *result = *st;
73#endif
74}
75
76#ifdef __cplusplus
77}

Callers 5

sfc_repr_stats_getFunction · 0.85
sfc_stats_get_dp_rxFunction · 0.85
sfc_stats_get_dp_txFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected