bpf: fix bpf_skb_set_tunnel_key() helper
authorAlexei Starovoitov <ast@plumgrid.com>
Wed, 26 Aug 2015 22:57:38 +0000 (15:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2015 00:38:13 +0000 (17:38 -0700)
commit1dd34b5ad8aebaff17b625fc0126e18243008a3f
tree20573f4e5302454b823a5274b186ba1e322568cf
parent8c5bbe77d4cd012668cdaf501bbd1cbfb9ad1d24
bpf: fix bpf_skb_set_tunnel_key() helper

Make sure to indicate to tunnel driver that key.tun_id is set,
otherwise gre won't recognize the metadata.

Fixes: d3aa45ce6b94 ("bpf: add helpers to access tunnel metadata")
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c