ip_tunnels: convert the mode field of ip_tunnel_info to flags
The mode field holds a single bit of information only (whether the ip_tunnel_info struct is for rx or tx). Change the mode field to bit flags. This allows more mode flags to be added. Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Alexei Starovoitov <ast@plumgrid.com> Acked-by: Thomas Graf <tgraf@suug.ch> Acked-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f6d3c19274
commit
46fa062ad6
@@ -50,13 +50,8 @@ struct ip_tunnel_key {
|
||||
__be16 tp_dst;
|
||||
};
|
||||
|
||||
/* Indicates whether the tunnel info structure represents receive
|
||||
* or transmit tunnel parameters.
|
||||
*/
|
||||
enum {
|
||||
IP_TUNNEL_INFO_RX,
|
||||
IP_TUNNEL_INFO_TX,
|
||||
};
|
||||
/* Flags for ip_tunnel_info mode. */
|
||||
#define IP_TUNNEL_INFO_TX 0x01 /* represents tx tunnel parameters */
|
||||
|
||||
struct ip_tunnel_info {
|
||||
struct ip_tunnel_key key;
|
||||
|
Reference in New Issue
Block a user