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_ENC_DST_PORT,	/* be16 */
37 	__TCA_TUNNEL_KEY_MAX,
38 };
39 
40 #define TCA_TUNNEL_KEY_MAX (__TCA_TUNNEL_KEY_MAX - 1)
41 
42 #endif
43