From: kernel test robot <lkp@intel.com>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>,
bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
andrii@kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
netdev@vger.kernel.org, magnus.karlsson@intel.com,
bjorn@kernel.org, maciej.fijalkowski@intel.com,
echaudro@redhat.com, lorenzo@kernel.org
Subject: Re: [PATCH bpf 2/3] net: fix usage of multi-buffer BPF helper for ZC AF_XDP
Date: Sat, 9 Dec 2023 01:29:32 +0800 [thread overview]
Message-ID: <202312090104.6EOsoGVa-lkp@intel.com> (raw)
In-Reply-To: <20231208112945.313687-3-maciej.fijalkowski@intel.com>
Hi Maciej,
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf/master]
url: https://github.com/intel-lab-lkp/linux/commits/Maciej-Fijalkowski/xsk-recycle-buffer-in-case-Rx-queue-was-full/20231208-193306
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
patch link: https://lore.kernel.org/r/20231208112945.313687-3-maciej.fijalkowski%40intel.com
patch subject: [PATCH bpf 2/3] net: fix usage of multi-buffer BPF helper for ZC AF_XDP
config: i386-buildonly-randconfig-003-20231208 (https://download.01.org/0day-ci/archive/20231209/202312090104.6EOsoGVa-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231209/202312090104.6EOsoGVa-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/202312090104.6EOsoGVa-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/core/filter.c:4102:3: error: call to undeclared function 'xsk_buff_get_tail'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
xsk_buff_get_tail(xdp)->data_end -= shrink;
^
net/core/filter.c:4102:3: note: did you mean 'xsk_buff_get_frag'?
include/net/xdp_sock_drv.h:324:32: note: 'xsk_buff_get_frag' declared here
static inline struct xdp_buff *xsk_buff_get_frag(struct xdp_buff *first)
^
>> net/core/filter.c:4102:27: error: member reference type 'int' is not a pointer
xsk_buff_get_tail(xdp)->data_end -= shrink;
~~~~~~~~~~~~~~~~~~~~~~ ^
net/core/filter.c:4115:14: error: call to undeclared function 'xsk_buff_get_tail'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
zc_frag = xsk_buff_get_tail(xdp);
^
>> net/core/filter.c:4115:12: error: incompatible integer to pointer conversion assigning to 'struct xdp_buff *' from 'int' [-Wint-conversion]
zc_frag = xsk_buff_get_tail(xdp);
^ ~~~~~~~~~~~~~~~~~~~~~~
>> net/core/filter.c:4117:4: error: call to undeclared function 'xsk_buff_tail_del'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
xsk_buff_tail_del(zc_frag);
^
5 errors generated.
vim +/xsk_buff_get_tail +4102 net/core/filter.c
4097
4098 static void __shrink_data(struct xdp_buff *xdp, struct xdp_mem_info *mem_info,
4099 skb_frag_t *frag, int shrink)
4100 {
4101 if (mem_info->type == MEM_TYPE_XSK_BUFF_POOL)
> 4102 xsk_buff_get_tail(xdp)->data_end -= shrink;
4103 skb_frag_size_sub(frag, shrink);
4104 }
4105
4106 static bool shrink_data(struct xdp_buff *xdp, skb_frag_t *frag, int shrink)
4107 {
4108 struct xdp_mem_info *mem_info = &xdp->rxq->mem;
4109
4110 if (skb_frag_size(frag) == shrink) {
4111 struct page *page = skb_frag_page(frag);
4112 struct xdp_buff *zc_frag = NULL;
4113
4114 if (mem_info->type == MEM_TYPE_XSK_BUFF_POOL) {
> 4115 zc_frag = xsk_buff_get_tail(xdp);
4116 xdp_buff_clear_frags_flag(zc_frag);
> 4117 xsk_buff_tail_del(zc_frag);
4118 }
4119
4120 __xdp_return(page_address(page), mem_info, false, zc_frag);
4121 return true;
4122 }
4123 __shrink_data(xdp, mem_info, frag, shrink);
4124 return false;
4125 }
4126
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-12-08 17:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-08 11:29 [PATCH bpf 0/3] net: bpf_xdp_adjust_tail() fixes Maciej Fijalkowski
2023-12-08 11:29 ` [PATCH bpf 1/3] xsk: recycle buffer in case Rx queue was full Maciej Fijalkowski
2023-12-08 11:29 ` [PATCH bpf 2/3] net: fix usage of multi-buffer BPF helper for ZC AF_XDP Maciej Fijalkowski
2023-12-08 17:29 ` kernel test robot [this message]
2023-12-08 17:53 ` kernel test robot
2023-12-08 17:53 ` kernel test robot
2023-12-08 11:29 ` [PATCH bpf 3/3] ice: work on pre-XDP prog frag count Maciej Fijalkowski
2023-12-08 11:53 ` Sokolowski, Jan
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=202312090104.6EOsoGVa-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=echaudro@redhat.com \
--cc=llvm@lists.linux.dev \
--cc=lorenzo@kernel.org \
--cc=maciej.fijalkowski@intel.com \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.