Debian Codegraph @

src/xdp_metadata.h

raw symbols SCIP
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /*
3 * Copyright (C) Intel Corporation
4 * Author Faizal Abdul Rahim <[email protected]>
5 */
6
7 #ifndef XDP_METADATA_H
8 #define XDP_METADATA_H
9
10 #ifndef BIT
11 #define BIT(nr) (1 << (nr))
12 #endif
13
14 enum xdp_meta_field {
15 XDP_META_FIELD_TS = BIT(0),
16 };
17
18 struct xdp_meta {
19 union {
20 __u64 rx_hw_timestamp;
21 __s32 rx_hw_timestamp_err;
22 };
23 __u64 rx_sw_timestamp;
24 enum xdp_meta_field hint_valid;
25 };
26
27 #endif /* XDP_METADATA_H */