]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37a7fe2aa77abafb3977974666b32fab1e885672
tree20573f4e5302454b823a5274b186ba1e322568cf
parent1e7e70358a0d493aba61007703a0f0e26628652d
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: d2e32cd1bd18 ("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