From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org, lorenzo.bianconi@oss.qualcomm.com
Subject: Re: [PATCH nf-next 3/7] netfilter: flowtable: rename tun.l3_proto to tun.inner_proto
Date: Fri, 7 Aug 2026 11:01:56 +0200 [thread overview]
Message-ID: <anWfBPYIZcbHnoQj@lore-desk> (raw)
In-Reply-To: <20260806223535.523098-4-pablo@netfilter.org>
[-- Attachment #1: Type: text/plain, Size: 4859 bytes --]
> This field refers to the inner protocol that is encapsulated by the
> tunnel header, just a comestic change. No functional changes are
> expected.
>
> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> include/linux/netdevice.h | 2 +-
> include/net/netfilter/nf_flow_table.h | 2 +-
> net/ipv4/ipip.c | 2 +-
> net/ipv6/ip6_tunnel.c | 2 +-
> net/netfilter/nf_flow_table_ip.c | 6 +++---
> net/netfilter/nf_flow_table_path.c | 4 ++--
> 6 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> index d9962c50bd60..68ccb5868070 100644
> --- a/include/linux/netdevice.h
> +++ b/include/linux/netdevice.h
> @@ -902,7 +902,7 @@ struct net_device_path {
> struct in6_addr dst_v6;
> };
>
> - u8 l3_proto;
> + u8 inner_proto;
> } tun;
> struct {
> enum {
> diff --git a/include/net/netfilter/nf_flow_table.h b/include/net/netfilter/nf_flow_table.h
> index a090ec3ffef2..f2e2771f188f 100644
> --- a/include/net/netfilter/nf_flow_table.h
> +++ b/include/net/netfilter/nf_flow_table.h
> @@ -117,7 +117,7 @@ struct flow_offload_tunnel {
> struct in6_addr dst_v6;
> };
>
> - u8 l3_proto;
> + u8 inner_proto;
> };
>
> struct flow_offload_tuple {
> diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
> index 62a374079bfc..1630325c77d3 100644
> --- a/net/ipv4/ipip.c
> +++ b/net/ipv4/ipip.c
> @@ -378,7 +378,7 @@ static int ipip_fill_forward_path(struct net_device_path_ctx *ctx,
> path->type = DEV_PATH_TUN;
> path->tun.src_v4.s_addr = tiph->saddr;
> path->tun.dst_v4.s_addr = tiph->daddr;
> - path->tun.l3_proto = IPPROTO_IPIP;
> + path->tun.inner_proto = IPPROTO_IPIP;
> path->tun.dst = &rt->dst;
> path->dev = ctx->dev;
>
> diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
> index 3bfaa98e7f33..7b54919232ba 100644
> --- a/net/ipv6/ip6_tunnel.c
> +++ b/net/ipv6/ip6_tunnel.c
> @@ -1872,7 +1872,7 @@ static int ip6_tnl_fill_forward_path(struct net_device_path_ctx *ctx,
> path->type = DEV_PATH_TUN;
> path->tun.src_v6 = fl6.saddr;
> path->tun.dst_v6 = fl6.daddr;
> - path->tun.l3_proto = IPPROTO_IPV6;
> + path->tun.inner_proto = IPPROTO_IPV6;
> path->tun.dst = dst;
> path->dev = ctx->dev;
> ctx->dev = dst->dev;
> diff --git a/net/netfilter/nf_flow_table_ip.c b/net/netfilter/nf_flow_table_ip.c
> index 0b314b10e705..e1aa01763f33 100644
> --- a/net/netfilter/nf_flow_table_ip.c
> +++ b/net/netfilter/nf_flow_table_ip.c
> @@ -197,7 +197,7 @@ static void nf_flow_tuple_encap(struct nf_flowtable_ctx *ctx,
> if (ctx->tun.proto == IPPROTO_IPIP) {
> tuple->tun.dst_v4.s_addr = iph->daddr;
> tuple->tun.src_v4.s_addr = iph->saddr;
> - tuple->tun.l3_proto = IPPROTO_IPIP;
> + tuple->tun.inner_proto = IPPROTO_IPIP;
> }
> break;
> case htons(ETH_P_IPV6):
> @@ -205,7 +205,7 @@ static void nf_flow_tuple_encap(struct nf_flowtable_ctx *ctx,
> if (ctx->tun.proto == IPPROTO_IPV6) {
> tuple->tun.dst_v6 = ip6h->daddr;
> tuple->tun.src_v6 = ip6h->saddr;
> - tuple->tun.l3_proto = IPPROTO_IPV6;
> + tuple->tun.inner_proto = IPPROTO_IPV6;
> }
> break;
> default:
> @@ -611,7 +611,7 @@ static int nf_flow_tunnel_ipip_push(struct net *net, struct sk_buff *skb,
> iph->version = 4;
> iph->ihl = sizeof(*iph) >> 2;
> iph->frag_off = ip_mtu_locked(&rt->dst) ? 0 : frag_off;
> - iph->protocol = tuple->tun.l3_proto;
> + iph->protocol = tuple->tun.inner_proto;
> iph->tos = tos;
> iph->daddr = tuple->tun.src_v4.s_addr;
> iph->saddr = tuple->tun.dst_v4.s_addr;
> diff --git a/net/netfilter/nf_flow_table_path.c b/net/netfilter/nf_flow_table_path.c
> index 5f166da3b09b..1e55644f2edb 100644
> --- a/net/netfilter/nf_flow_table_path.c
> +++ b/net/netfilter/nf_flow_table_path.c
> @@ -133,7 +133,7 @@ static int nft_dev_path_info(struct net_device_path_stack *stack,
>
> info->tun.src_v6 = path->tun.src_v6;
> info->tun.dst_v6 = path->tun.dst_v6;
> - info->tun.l3_proto = path->tun.l3_proto;
> + info->tun.inner_proto = path->tun.inner_proto;
> info->tun_dst = path->tun.dst;
> info->num_tuns++;
> } else {
> @@ -245,7 +245,7 @@ static int nft_dev_forward_path(const struct nft_pktinfo *pkt,
> if (info.num_tuns) {
> route->tuple[!dir].in.tun.src_v6 = info.tun.dst_v6;
> route->tuple[!dir].in.tun.dst_v6 = info.tun.src_v6;
> - route->tuple[!dir].in.tun.l3_proto = info.tun.l3_proto;
> + route->tuple[!dir].in.tun.inner_proto = info.tun.inner_proto;
> route->tuple[!dir].in.num_tuns = info.num_tuns;
> dst_release(route->tuple[dir].dst);
> route->tuple[dir].dst = info.tun_dst;
> --
> 2.47.3
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-08-07 9:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 22:35 [PATCH nf-next 0/7] flowtable preparation for IPv4 over IPv6 and SIT Pablo Neira Ayuso
2026-08-06 22:35 ` [PATCH nf-next 1/7] net: pass net_device_path_ctx to dev_fill_forward_path() Pablo Neira Ayuso
2026-08-06 22:35 ` [PATCH nf-next 2/7] net: netfilter: add ether_type to net_device_path_ctx and use it Pablo Neira Ayuso
2026-08-07 9:00 ` Lorenzo Bianconi
2026-08-06 22:35 ` [PATCH nf-next 3/7] netfilter: flowtable: rename tun.l3_proto to tun.inner_proto Pablo Neira Ayuso
2026-08-07 9:01 ` Lorenzo Bianconi [this message]
2026-08-06 22:35 ` [PATCH nf-next 4/7] netfilter: flowtable: rename ctx.tun.proto to ctx.tun.inner_proto Pablo Neira Ayuso
2026-08-07 9:02 ` Lorenzo Bianconi
2026-08-06 22:35 ` [PATCH nf-next 5/7] netfilter: flowtable: store ethertype in flowtable context Pablo Neira Ayuso
2026-08-07 9:10 ` Lorenzo Bianconi
2026-08-06 22:35 ` [PATCH nf-next 6/7] netfilter: flowtable: move ipv4 and ipv6 xmit path to function Pablo Neira Ayuso
2026-08-07 9:13 ` Lorenzo Bianconi
2026-08-06 22:35 ` [PATCH nf-next 7/7] netfilter: flowtable: detach layer 2 encapsulation parser from lookup Pablo Neira Ayuso
2026-08-07 9:15 ` Lorenzo Bianconi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=anWfBPYIZcbHnoQj@lore-desk \
--to=lorenzo@kernel.org \
--cc=lorenzo.bianconi@oss.qualcomm.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.