repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
WIP FPC-III support
[linux/fpc-iii.git]
/
tools
/
testing
/
selftests
/
bpf
/
netcnt_common.h
blob
81084c1c2c235007bbe5994d436aa769afc97b00
1
// SPDX-License-Identifier: GPL-2.0
2
#ifndef __NETCNT_COMMON_H
3
#define __NETCNT_COMMON_H
4
5
#include <linux/types.h>
6
7
#define MAX_PERCPU_PACKETS 32
8
9
struct
percpu_net_cnt
{
10
__u64 packets
;
11
__u64 bytes
;
12
13
__u64 prev_ts
;
14
15
__u64 prev_packets
;
16
__u64 prev_bytes
;
17
};
18
19
struct
net_cnt
{
20
__u64 packets
;
21
__u64 bytes
;
22
};
23
24
#endif