diff options
| author | Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com> | 2026-10-11 23:59:42 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-10-18 02:41:24 +0200 |
| commit | 97874c7c5f2c31236c4071d85b60c38c2f4bac3d (patch) | |
| tree | e9de8714f5027cc9e0417151af5642b8aa8f24ff /include/linux/netdevice.h | |
| parent | cae023143d25c877d04e05c986311507e75d4167 (diff) | |
| download | linux-next-97874c7c5f2c31236c4071d85b60c38c2f4bac3d.tar.gz linux-next-97874c7c5f2c31236c4071d85b60c38c2f4bac3d.zip | |
netfilter: flowtable: populate tunnel tuple regardless of inner protocol
Store the outer tunnel addresses and inner protocol in the flow tuple
unconditionally in nf_flow_tuple_encap(), instead of only when the
tunnel is IP-in-IP or IPv6-in-IPv6. Bail out early when the inner
protocol is neither IPPROTO_IPIP nor IPPROTO_IPV6.
This makes the tuple usable for cross-family tunnels such as
IPv4-over-IPv6 and SIT, where the inner protocol differs from the
outer address family.
This is a preliminary patch to support IPv4 over IPv6 and SIT tunnel
flowtable offload.
Please note IPv4 over IPv6 and SIT tunnel flowtable offloading is not
enabled yet.
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netdevice.h')
0 files changed, 0 insertions, 0 deletions
