Re: [PATCHv3 ipsec-next 06/10] ip6_vti: support IP6IP6 tunnel processing with .cb_handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 6 Jul 2020 at 17:32, Xin Long <lucien.xin@xxxxxxxxx> wrote:
>
> Similar to IPIP tunnel's processing, this patch is to support
> IP6IP6 tunnel processing with .cb_handler.
>
> v1->v2:
>   - no change.
> v2-v3:
>   - enable it only when CONFIG_INET6_XFRM_TUNNEL is defined, to fix
>     the build error, reported by kbuild test robot.
>
> Signed-off-by: Xin Long <lucien.xin@xxxxxxxxx>
> ---
>  net/ipv6/ip6_vti.c | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>
> diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c
> index 1147f64..39efe41 100644
> --- a/net/ipv6/ip6_vti.c
> +++ b/net/ipv6/ip6_vti.c
> @@ -1218,6 +1218,26 @@ static struct xfrm6_protocol vti_ipcomp6_protocol __read_mostly = {
>         .priority       =       100,
>  };
>
> +#if IS_ENABLED(CONFIG_INET6_XFRM_TUNNEL)
> +static int vti6_rcv_tunnel(struct sk_buff *skb)
> +{
> +       const xfrm_address_t *saddr;
> +       __be32 spi;
> +
> +       saddr = (const xfrm_address_t *)&ipv6_hdr(skb)->saddr;
> +       spi = xfrm6_tunnel_spi_lookup(dev_net(skb->dev), saddr);

arm build failed due this error on linux-next 20200713 and  20200713
15:51:27 | net/ipv6/ip6_vti.o: In function `vti6_rcv_tunnel':
15:51:27 | ip6_vti.c:(.text+0x1d20): undefined reference to
`xfrm6_tunnel_spi_lookup'

ref:
https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=am57xx-evm,label=docker-lkft/812/consoleText

config link,
http://snapshots.linaro.org/openembedded/lkft/lkft/sumo/am57xx-evm/lkft/linux-next/811/config

-- 
Linaro LKFT
https://lkft.linaro.org



[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux