drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / include / uapi / linux / ioam6_iptunnel.h
blob8aef21e4a8c14dc89cd87e0eeb5e46de60651388
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 /*
3 * IPv6 IOAM Lightweight Tunnel API
5 * Author:
6 * Justin Iurman <justin.iurman@uliege.be>
7 */
9 #ifndef _UAPI_LINUX_IOAM6_IPTUNNEL_H
10 #define _UAPI_LINUX_IOAM6_IPTUNNEL_H
12 /* Encap modes:
13 * - inline: direct insertion
14 * - encap: ip6ip6 encapsulation
15 * - auto: inline for local packets, encap for in-transit packets
17 enum {
18 __IOAM6_IPTUNNEL_MODE_MIN,
20 IOAM6_IPTUNNEL_MODE_INLINE,
21 IOAM6_IPTUNNEL_MODE_ENCAP,
22 IOAM6_IPTUNNEL_MODE_AUTO,
24 __IOAM6_IPTUNNEL_MODE_MAX,
27 #define IOAM6_IPTUNNEL_MODE_MIN (__IOAM6_IPTUNNEL_MODE_MIN + 1)
28 #define IOAM6_IPTUNNEL_MODE_MAX (__IOAM6_IPTUNNEL_MODE_MAX - 1)
30 enum {
31 IOAM6_IPTUNNEL_UNSPEC,
33 /* Encap mode */
34 IOAM6_IPTUNNEL_MODE, /* u8 */
36 /* Tunnel dst address.
37 * For encap,auto modes.
39 IOAM6_IPTUNNEL_DST, /* struct in6_addr */
41 /* IOAM Trace Header */
42 IOAM6_IPTUNNEL_TRACE, /* struct ioam6_trace_hdr */
44 /* Insertion frequency:
45 * "k over n" packets (0 < k <= n)
46 * [0.0001% ... 100%]
48 #define IOAM6_IPTUNNEL_FREQ_MIN 1
49 #define IOAM6_IPTUNNEL_FREQ_MAX 1000000
50 IOAM6_IPTUNNEL_FREQ_K, /* u32 */
51 IOAM6_IPTUNNEL_FREQ_N, /* u32 */
53 /* Tunnel src address.
54 * For encap,auto modes.
55 * Optional (automatic if not provided).
57 IOAM6_IPTUNNEL_SRC, /* struct in6_addr */
59 __IOAM6_IPTUNNEL_MAX,
62 #define IOAM6_IPTUNNEL_MAX (__IOAM6_IPTUNNEL_MAX - 1)
64 #endif /* _UAPI_LINUX_IOAM6_IPTUNNEL_H */