Debian Codegraph @

drivers/net/ovpn-dco/stats.c

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-2.0
2 /* OpenVPN data channel accelerator
3 *
4 * Copyright (C) 2020- OpenVPN, Inc.
5 *
6 * Author: James Yonan <[email protected]>
7 * Antonio Quartulli <[email protected]>
8 */
9
10 #include "main.h"
11 #include "stats.h"
12
13 void ovpn_peer_stats_init(struct ovpn_peer_stats *ps)
14 {
15 atomic64_set(&ps->rx.bytes, 0);
16 atomic_set(&ps->rx.packets, 0);
17
18 atomic64_set(&ps->tx.bytes, 0);
19 atomic_set(&ps->tx.packets, 0);
20 }