]> 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)
commit5f792c37332247f1a3a7f6b80a032bb5df9e6cb2
tree20573f4e5302454b823a5274b186ba1e322568cf
parent55d7f535a52cf2ea020d742a3fbf3cd6365cdcf4
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: 1d4f135e2893 ("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