ip_tunnels, bpf: define IP_TUNNEL_OPTS_MAX and use it
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 16 Mar 2016 00:42:51 +0000 (01:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2016 23:38:46 +0000 (19:38 -0400)
commitfca5fdf67de9e092fda23c9eb059ba968e7b5267
tree06aa42e0d7679a15e223a05acd202d2897252bb1
parent808c1b697c3c4dd2a7132882424c390b0d0acfb9
ip_tunnels, bpf: define IP_TUNNEL_OPTS_MAX and use it

eBPF defines this as BPF_TUNLEN_MAX and OVS just uses the hard-coded
value inside struct sw_flow_key. Thus, add and use IP_TUNNEL_OPTS_MAX
for this, which makes the code a bit more generic and allows to remove
BPF_TUNLEN_MAX from eBPF code.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/core/filter.c
net/ipv4/ip_tunnel_core.c
net/openvswitch/flow.h