netfilter: flowtable: use skb_pull_rcsum() to pull IPIP tunnel header
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/1 netfilter: flowtable: use skb_pull_rcsum() to pull IPIP tunnel header
Use skb_pull_rcsum() to pop the IPIP and IP6IP6 tunnel header so this works with CHECKSUM_COMPLETE.
Fixes ab427db17885 ("netfilter: flowtable: Add IPIP rx sw acceleration")
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- net/netfilter/nf_flow_table_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_flow_table_ip.c +1 -1
@@ -370,7 +370,7 @@ static void nf_flow_ip_tunnel_pop(struct nf_flowtable_ctx *ctx, ctx->tun.inner_proto != IPPROTO_IPV6)return ; -skb_pull (skb, ctx->tun.hdr_size); +skb_pull_rcsum (skb, ctx->tun.hdr_size);skb_reset_network_header (skb); }
Signature · 1 line
2.47.3
Quoted 5 lines
Use
skb_pull_rcsum()to pop the IPIP and IP6IP6 tunnel header so this works withCHECKSUM_COMPLETE.Fixes ab427db17885 ("netfilter: flowtable: Add IPIP rx sw acceleration")Signed-off-by Pablo Neira Ayuso <[email protected]>
Acked-by Lorenzo Bianconi <[email protected]>
Quoted 20 lines
--- net/netfilter/nf_flow_table_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/netfilter/nf_flow_table_ip.c +1
-1@@ -370,7 +370,7 @@ static void nf_flow_ip_tunnel_pop(struct nf_flowtable_ctx *ctx, ctx->tun.inner_proto != IPPROTO_IPV6)return ; -skb_pull (skb, ctx->tun.hdr_size); +skb_pull_rcsum (skb, ctx->tun.hdr_size);skb_reset_network_header (skb); }Signature · 1 line
2.47.3