* Get an atomic copy of a packets and bytes counters. */
| 63 | * Get an atomic copy of a packets and bytes counters. |
| 64 | */ |
| 65 | static inline void |
| 66 | sfc_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 | } |
no outgoing calls
no test coverage detected