GNU Linux-libre 4.9.309-gnu1
[releases.git] / include / net / tc_act / tc_tunnel_key.h
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 __NET_TC_TUNNEL_KEY_H
12 #define __NET_TC_TUNNEL_KEY_H
13
14 #include <net/act_api.h>
15
16 struct tcf_tunnel_key_params {
17         struct rcu_head         rcu;
18         int                     tcft_action;
19         struct metadata_dst     *tcft_enc_metadata;
20 };
21
22 struct tcf_tunnel_key {
23         struct tc_action              common;
24         struct tcf_tunnel_key_params __rcu *params;
25 };
26
27 #define to_tunnel_key(a) ((struct tcf_tunnel_key *)a)
28
29 #endif /* __NET_TC_TUNNEL_KEY_H */