Re: [PATCH net-next] bpf: add helpers to access tunnel metadata
From: Thomas Graf <tgraf@suug.ch>
Date: 2015-07-31 08:14:13
From: Thomas Graf <tgraf@suug.ch>
Date: 2015-07-31 08:14:13
On 07/30/15 at 03:36pm, Alexei Starovoitov wrote:
+ to->tunnel_id = be64_to_cpu(info->key.tun_id); + to->remote_ipv4 = be32_to_cpu(info->key.ipv4_src);
BTW: I have a patch ready to avoid this as you suggested which I'll post as soon as GRE and Geneve are done as well. It would require a lot of special handling until all encaps have been converted.