diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/tc_act/tc_tunnel_key.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/uapi/linux/tc_act/tc_tunnel_key.h b/include/uapi/linux/tc_act/tc_tunnel_key.h new file mode 100644 index 000000000000..890106ff16e6 --- /dev/null +++ b/include/uapi/linux/tc_act/tc_tunnel_key.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2016, Amir Vadai <amir@vadai.me> | ||
| 3 | * Copyright (c) 2016, Mellanox Technologies. All rights reserved. | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __LINUX_TC_TUNNEL_KEY_H | ||
| 12 | #define __LINUX_TC_TUNNEL_KEY_H | ||
| 13 | |||
| 14 | #include <linux/pkt_cls.h> | ||
| 15 | |||
| 16 | #define TCA_ACT_TUNNEL_KEY 17 | ||
| 17 | |||
| 18 | #define TCA_TUNNEL_KEY_ACT_SET 1 | ||
| 19 | #define TCA_TUNNEL_KEY_ACT_RELEASE 2 | ||
| 20 | |||
| 21 | struct tc_tunnel_key { | ||
| 22 | tc_gen; | ||
| 23 | int t_action; | ||
| 24 | }; | ||
| 25 | |||
| 26 | enum { | ||
| 27 | TCA_TUNNEL_KEY_UNSPEC, | ||
| 28 | TCA_TUNNEL_KEY_TM, | ||
| 29 | TCA_TUNNEL_KEY_PARMS, | ||
| 30 | TCA_TUNNEL_KEY_ENC_IPV4_SRC, /* be32 */ | ||
| 31 | TCA_TUNNEL_KEY_ENC_IPV4_DST, /* be32 */ | ||
| 32 | TCA_TUNNEL_KEY_ENC_IPV6_SRC, /* struct in6_addr */ | ||
| 33 | TCA_TUNNEL_KEY_ENC_IPV6_DST, /* struct in6_addr */ | ||
| 34 | TCA_TUNNEL_KEY_ENC_KEY_ID, /* be64 */ | ||
| 35 | TCA_TUNNEL_KEY_PAD, | ||
| 36 | __TCA_TUNNEL_KEY_MAX, | ||
| 37 | }; | ||
| 38 | |||
| 39 | #define TCA_TUNNEL_KEY_MAX (__TCA_TUNNEL_KEY_MAX - 1) | ||
| 40 | |||
| 41 | #endif | ||
