From: kernel test robot <lkp@intel.com>
To: Xuan Zhuo <xuanzhuo@linux.alibaba.com>, netdev@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Willem de Bruijn" <willemdebruijn.kernel@gmail.com>,
"Jason Wang" <jasowang@redhat.com>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
"Eugenio Pérez" <eperezma@redhat.com>,
"Jiri Pirko" <jiri@resnulli.us>,
"Alvaro Karsz" <alvaro.karsz@solid-run.com>,
virtualization@lists.linux.dev
Subject: Re: [PATCH net v6 2/2] virtio-net: correct hdr_len handling for tunnel gso
Date: Thu, 20 Nov 2025 08:54:43 +0800 [thread overview]
Message-ID: <202511200817.29vdvG8S-lkp@intel.com> (raw)
In-Reply-To: <20251119055522.617-3-xuanzhuo@linux.alibaba.com>
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
prev parent reply other threads:[~2025-11-20 0:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202511200817.29vdvG8S-lkp@intel.com \
--to=lkp@intel.com \
--cc=alvaro.karsz@solid-run.com \
--cc=andrew+netdev@lunn.ch \
--cc=edumazet@google.com \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=virtualization@lists.linux.dev \
--cc=willemdebruijn.kernel@gmail.com \
--cc=xuanzhuo@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).