[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202312150227.iYQMDIJT-lkp@intel.com>
Date: Fri, 15 Dec 2023 02:51:11 +0800
From: kernel test robot <lkp@...el.com>
To: Eyal Birger <eyal.birger@...il.com>, davem@...emloft.net,
dsahern@...nel.org, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, steffen.klassert@...unet.com,
herbert@...dor.apana.org.au, pablo@...filter.org, paul@...ats.ca,
nharold@...gle.com
Cc: oe-kbuild-all@...ts.linux.dev, devel@...ux-ipsec.org,
netdev@...r.kernel.org, Eyal Birger <eyal.birger@...il.com>
Subject: Re: [PATCH ipsec-next,v2] xfrm: support sending NAT keepalives in
ESP in UDP states
Hi Eyal,
kernel test robot noticed the following build errors:
[auto build test ERROR on netfilter-nf/main]
[also build test ERROR on linus/master v6.7-rc5 next-20231214]
[cannot apply to horms-ipvs/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Eyal-Birger/xfrm-support-sending-NAT-keepalives-in-ESP-in-UDP-states/20231211-020238
base: git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git main
patch link: https://lore.kernel.org/r/20231210180116.1737411-1-eyal.birger%40gmail.com
patch subject: [PATCH ipsec-next,v2] xfrm: support sending NAT keepalives in ESP in UDP states
config: x86_64-rhel-8.3-ltp (https://download.01.org/0day-ci/archive/20231215/202312150227.iYQMDIJT-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231215/202312150227.iYQMDIJT-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312150227.iYQMDIJT-lkp@intel.com/
All errors (new ones prefixed by >>):
net/xfrm/xfrm_nat_keepalive.c: In function 'nat_keepalive_send_ipv6':
>> net/xfrm/xfrm_nat_keepalive.c:78:21: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
78 | uh->check = csum_ipv6_magic(&ka->saddr.in6, &ka->daddr.in6,
| ^~~~~~~~~~~~~~~
| csum_tcpudp_magic
cc1: some warnings being treated as errors
vim +78 net/xfrm/xfrm_nat_keepalive.c
64
65 #if IS_ENABLED(CONFIG_IPV6)
66 static int nat_keepalive_send_ipv6(struct sk_buff *skb,
67 struct nat_keepalive *ka,
68 struct udphdr *uh)
69 {
70 struct net *net = ka->net;
71 struct dst_entry *dst;
72 struct flowi6 fl6;
73 struct sock *sk;
74 __wsum csum;
75 int err;
76
77 csum = skb_checksum(skb, 0, skb->len, 0);
> 78 uh->check = csum_ipv6_magic(&ka->saddr.in6, &ka->daddr.in6,
79 skb->len, IPPROTO_UDP, csum);
80 if (uh->check == 0)
81 uh->check = CSUM_MANGLED_0;
82
83 memset(&fl6, 0, sizeof(fl6));
84 fl6.flowi6_mark = skb->mark;
85 fl6.saddr = ka->saddr.in6;
86 fl6.daddr = ka->daddr.in6;
87 fl6.flowi6_proto = IPPROTO_UDP;
88 fl6.fl6_sport = ka->encap_sport;
89 fl6.fl6_dport = ka->encap_dport;
90
91 sk = *this_cpu_ptr(&nat_keepalive_sk_ipv6);
92 sock_net_set(sk, net);
93 dst = ipv6_stub->ipv6_dst_lookup_flow(net, sk, &fl6, NULL);
94 if (IS_ERR(dst))
95 return PTR_ERR(dst);
96
97 skb_dst_set(skb, dst);
98 err = ipv6_stub->ip6_xmit(sk, skb, &fl6, skb->mark, NULL, 0, 0);
99 sock_net_set(sk, &init_net);
100 return err;
101 }
102 #endif
103
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists