Subject: Re: [PATCH ipsec-next] esp: Consolidate esp4 and esp6.

From: Simon Horman <[email-masked]>
Date: Sun, 1 Mar 2026 17:03:37 +0000

On Thu, Feb 26, 2026 at 08:53:37AM +0100, Steffen Klassert wrote:

...

> diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
> index e75da98f5283..b90e93fc1a70 100644
> --- a/net/ipv6/esp6.c
> +++ b/net/ipv6/esp6.c
> @@ -11,130 +11,14 @@
>   *	This file is derived from net/ipv4/esp.c
>   */
>  
> -#define pr_fmt(fmt) "IPv6: " fmt
> -
>  #include <crypto/aead.h>
>  #include <crypto/authenc.h>
> -#include <linux/err.h>
> -#include <linux/module.h>
>  #include <net/ip.h>
> -#include <net/xfrm.h>
>  #include <net/esp.h>
> -#include <linux/scatterlist.h>
> -#include <linux/kernel.h>
> -#include <linux/pfkeyv2.h>
> -#include <linux/random.h>
> -#include <linux/slab.h>
> -#include <linux/spinlock.h>
> -#include <net/ip6_checksum.h>

Hi Steffen,

I think you need to keep including ip6_checksum.h
as the code still calls csum_ipv6_magic()

...