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 int action; 20 struct metadata_dst *tcft_enc_metadata; 21 }; 22 23 struct tcf_tunnel_key { 24 struct tc_action common; 25 struct tcf_tunnel_key_params __rcu *params; 26 }; 27 28 #define to_tunnel_key(a) ((struct tcf_tunnel_key *)a) 29 30 #endif /* __NET_TC_TUNNEL_KEY_H */ 31