* Re: [PATCH net v6 2/2] virtio-net: correct hdr_len handling for tunnel gso
[not found] <20251119055522.617-3-xuanzhuo@linux.alibaba.com>
@ 2025-11-20 0:43 ` kernel test robot
2025-11-20 0:54 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-11-20 0:43 UTC (permalink / raw)
To: Xuan Zhuo, netdev
Cc: llvm, oe-kbuild-all, Willem de Bruijn, Jason Wang, Andrew Lunn,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Michael S. Tsirkin,
Xuan Zhuo, Eugenio Pérez, Jiri Pirko, Alvaro Karsz,
virtualization
Hi Xuan,
kernel test robot noticed the following build errors:
[auto build test ERROR on net/main]
url: https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio-net-correct-hdr_len-handling-for-VIRTIO_NET_F_GUEST_HDRLEN/20251119-135650
base: net/main
patch link: https://lore.kernel.org/r/20251119055522.617-3-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH net v6 2/2] virtio-net: correct hdr_len handling for tunnel gso
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20251120/202511200846.lqEgKwk3-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251120/202511200846.lqEgKwk3-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511200846.lqEgKwk3-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/tun.c:59:
>> include/linux/virtio_net.h:218:7: error: use of undeclared identifier 'sinfo'
218 | if (sinfo->gso_type & (SKB_GSO_UDP_TUNNEL |
| ^
1 error generated.
vim +/sinfo +218 include/linux/virtio_net.h
209
210 static inline void virtio_net_set_hdrlen(const struct sk_buff *skb,
211 struct virtio_net_hdr *hdr,
212 bool little_endian,
213 bool guest_hdrlen)
214 {
215 u16 hdr_len;
216
217 if (guest_hdrlen) {
> 218 if (sinfo->gso_type & (SKB_GSO_UDP_TUNNEL |
219 SKB_GSO_UDP_TUNNEL_CSUM)) {
220 hdr_len = skb_inner_transport_offset(skb);
221
222 if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4)
223 hdr_len += sizeof(struct udphdr);
224 else
225 hdr_len += inner_tcp_hdrlen(skb);
226 } else {
227 hdr_len = skb_transport_offset(skb);
228
229 if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4)
230 hdr_len += sizeof(struct udphdr);
231 else
232 hdr_len += tcp_hdrlen(skb);
233 }
234 } else {
235 /* This is a hint as to how much should be linear. */
236 hdr_len = skb_headlen(skb);
237 }
238
239 hdr->hdr_len = __cpu_to_virtio16(little_endian, hdr_len);
240 }
241
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net v6 2/2] virtio-net: correct hdr_len handling for tunnel gso
[not found] <20251119055522.617-3-xuanzhuo@linux.alibaba.com>
2025-11-20 0:43 ` [PATCH net v6 2/2] virtio-net: correct hdr_len handling for tunnel gso kernel test robot
@ 2025-11-20 0:54 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-11-20 0:54 UTC (permalink / raw)
To: Xuan Zhuo, netdev
Cc: llvm, oe-kbuild-all, Willem de Bruijn, Jason Wang, Andrew Lunn,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Michael S. Tsirkin,
Xuan Zhuo, Eugenio Pérez, Jiri Pirko, Alvaro Karsz,
virtualization
Hi Xuan,
kernel test robot noticed the following build errors:
[auto build test ERROR on net/main]
url: https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio-net-correct-hdr_len-handling-for-VIRTIO_NET_F_GUEST_HDRLEN/20251119-135650
base: net/main
patch link: https://lore.kernel.org/r/20251119055522.617-3-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH net v6 2/2] virtio-net: correct hdr_len handling for tunnel gso
config: arm-jornada720_defconfig (https://download.01.org/0day-ci/archive/20251120/202511200817.29vdvG8S-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251120/202511200817.29vdvG8S-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511200817.29vdvG8S-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from net/packet/af_packet.c:86:
>> include/linux/virtio_net.h:218:7: error: use of undeclared identifier 'sinfo'
218 | if (sinfo->gso_type & (SKB_GSO_UDP_TUNNEL |
| ^~~~~
1 error generated.
vim +/sinfo +218 include/linux/virtio_net.h
209
210 static inline void virtio_net_set_hdrlen(const struct sk_buff *skb,
211 struct virtio_net_hdr *hdr,
212 bool little_endian,
213 bool guest_hdrlen)
214 {
215 u16 hdr_len;
216
217 if (guest_hdrlen) {
> 218 if (sinfo->gso_type & (SKB_GSO_UDP_TUNNEL |
219 SKB_GSO_UDP_TUNNEL_CSUM)) {
220 hdr_len = skb_inner_transport_offset(skb);
221
222 if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4)
223 hdr_len += sizeof(struct udphdr);
224 else
225 hdr_len += inner_tcp_hdrlen(skb);
226 } else {
227 hdr_len = skb_transport_offset(skb);
228
229 if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4)
230 hdr_len += sizeof(struct udphdr);
231 else
232 hdr_len += tcp_hdrlen(skb);
233 }
234 } else {
235 /* This is a hint as to how much should be linear. */
236 hdr_len = skb_headlen(skb);
237 }
238
239 hdr->hdr_len = __cpu_to_virtio16(little_endian, hdr_len);
240 }
241
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-20 0:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20251119055522.617-3-xuanzhuo@linux.alibaba.com>
2025-11-20 0:43 ` [PATCH net v6 2/2] virtio-net: correct hdr_len handling for tunnel gso kernel test robot
2025-11-20 0:54 ` kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).