All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ciara Loftus <ciara.loftus@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC PATCH bpf-next 3/8] xsk: handle XDP_REDIRECT_XSK and expose xsk_rcv/flush
Date: Sat, 27 Nov 2021 19:44:15 +0800	[thread overview]
Message-ID: <202111271955.w9AzLVNN-lkp@intel.com> (raw)
In-Reply-To: <20211116073742.7941-4-ciara.loftus@intel.com>

Hi Ciara,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on bpf-next/master]

url:    https://github.com/0day-ci/linux/commits/Ciara-Loftus/XDP_REDIRECT_XSK-and-Batched-AF_XDP-Rx/20211116-153952
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-randconfig-a004-20211116 (https://download.01.org/0day-ci/archive/20211127/202111271955.w9AzLVNN-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/06daa8f48870f74b06ed02fe7f36b820c09844c9
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Ciara-Loftus/XDP_REDIRECT_XSK-and-Batched-AF_XDP-Rx/20211116-153952
        git checkout 06daa8f48870f74b06ed02fe7f36b820c09844c9
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash net/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> net/core/dev.c:4883:5: error: expected expression
                                   struct xdp_sock *xs =
                                   ^
>> net/core/dev.c:4886:27: error: use of undeclared identifier 'xs'
                                   err = xsk_generic_rcv(xs, &xdp);
                                                         ^
   2 errors generated.


vim +4883 net/core/dev.c

  4870	
  4871	int do_xdp_generic(struct bpf_prog *xdp_prog, struct sk_buff *skb)
  4872	{
  4873		if (xdp_prog) {
  4874			struct xdp_buff xdp;
  4875			u32 act;
  4876			int err;
  4877	
  4878			act = netif_receive_generic_xdp(skb, &xdp, xdp_prog);
  4879			if (act != XDP_PASS) {
  4880				switch (act) {
  4881	#ifdef CONFIG_XDP_SOCKETS
  4882				case XDP_REDIRECT_XSK:
> 4883					struct xdp_sock *xs =
  4884						READ_ONCE(skb->dev->_rx[xdp.rxq->queue_index].xsk);
  4885	
> 4886					err = xsk_generic_rcv(xs, &xdp);
  4887					if (err)
  4888						goto out_redir;
  4889					consume_skb(skb);
  4890					break;
  4891	#endif
  4892				case XDP_REDIRECT:
  4893					err = xdp_do_generic_redirect(skb->dev, skb,
  4894								      &xdp, xdp_prog);
  4895					if (err)
  4896						goto out_redir;
  4897					break;
  4898				case XDP_TX:
  4899					generic_xdp_tx(skb, xdp_prog);
  4900					break;
  4901				}
  4902				return XDP_DROP;
  4903			}
  4904		}
  4905		return XDP_PASS;
  4906	out_redir:
  4907		kfree_skb(skb);
  4908		return XDP_DROP;
  4909	}
  4910	EXPORT_SYMBOL_GPL(do_xdp_generic);
  4911	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH bpf-next 3/8] xsk: handle XDP_REDIRECT_XSK and expose xsk_rcv/flush
Date: Sat, 27 Nov 2021 19:44:15 +0800	[thread overview]
Message-ID: <202111271955.w9AzLVNN-lkp@intel.com> (raw)
In-Reply-To: <20211116073742.7941-4-ciara.loftus@intel.com>

[-- Attachment #1: Type: text/plain, Size: 3102 bytes --]

Hi Ciara,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on bpf-next/master]

url:    https://github.com/0day-ci/linux/commits/Ciara-Loftus/XDP_REDIRECT_XSK-and-Batched-AF_XDP-Rx/20211116-153952
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-randconfig-a004-20211116 (https://download.01.org/0day-ci/archive/20211127/202111271955.w9AzLVNN-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/06daa8f48870f74b06ed02fe7f36b820c09844c9
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Ciara-Loftus/XDP_REDIRECT_XSK-and-Batched-AF_XDP-Rx/20211116-153952
        git checkout 06daa8f48870f74b06ed02fe7f36b820c09844c9
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash net/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> net/core/dev.c:4883:5: error: expected expression
                                   struct xdp_sock *xs =
                                   ^
>> net/core/dev.c:4886:27: error: use of undeclared identifier 'xs'
                                   err = xsk_generic_rcv(xs, &xdp);
                                                         ^
   2 errors generated.


vim +4883 net/core/dev.c

  4870	
  4871	int do_xdp_generic(struct bpf_prog *xdp_prog, struct sk_buff *skb)
  4872	{
  4873		if (xdp_prog) {
  4874			struct xdp_buff xdp;
  4875			u32 act;
  4876			int err;
  4877	
  4878			act = netif_receive_generic_xdp(skb, &xdp, xdp_prog);
  4879			if (act != XDP_PASS) {
  4880				switch (act) {
  4881	#ifdef CONFIG_XDP_SOCKETS
  4882				case XDP_REDIRECT_XSK:
> 4883					struct xdp_sock *xs =
  4884						READ_ONCE(skb->dev->_rx[xdp.rxq->queue_index].xsk);
  4885	
> 4886					err = xsk_generic_rcv(xs, &xdp);
  4887					if (err)
  4888						goto out_redir;
  4889					consume_skb(skb);
  4890					break;
  4891	#endif
  4892				case XDP_REDIRECT:
  4893					err = xdp_do_generic_redirect(skb->dev, skb,
  4894								      &xdp, xdp_prog);
  4895					if (err)
  4896						goto out_redir;
  4897					break;
  4898				case XDP_TX:
  4899					generic_xdp_tx(skb, xdp_prog);
  4900					break;
  4901				}
  4902				return XDP_DROP;
  4903			}
  4904		}
  4905		return XDP_PASS;
  4906	out_redir:
  4907		kfree_skb(skb);
  4908		return XDP_DROP;
  4909	}
  4910	EXPORT_SYMBOL_GPL(do_xdp_generic);
  4911	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

  reply	other threads:[~2021-11-27 11:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-16  7:37 [RFC PATCH bpf-next 0/8] XDP_REDIRECT_XSK and Batched AF_XDP Rx Ciara Loftus
2021-11-16  7:37 ` [RFC PATCH bpf-next 1/8] xsk: add struct xdp_sock to netdev_rx_queue Ciara Loftus
2021-11-16  7:37 ` [RFC PATCH bpf-next 2/8] bpf: add bpf_redirect_xsk helper and XDP_REDIRECT_XSK action Ciara Loftus
2021-11-16  7:37 ` [RFC PATCH bpf-next 3/8] xsk: handle XDP_REDIRECT_XSK and expose xsk_rcv/flush Ciara Loftus
2021-11-27 11:44   ` kernel test robot [this message]
2021-11-27 11:44     ` kernel test robot
2021-11-16  7:37 ` [RFC PATCH bpf-next 4/8] i40e: handle the XDP_REDIRECT_XSK action Ciara Loftus
2021-11-16  7:37 ` [RFC PATCH bpf-next 5/8] xsk: implement a batched version of xsk_rcv Ciara Loftus
2021-11-16  7:37 ` [RFC PATCH bpf-next 6/8] i40e: isolate descriptor processing in separate function Ciara Loftus
2021-11-16  7:37 ` [RFC PATCH bpf-next 7/8] i40e: introduce batched XDP rx descriptor processing Ciara Loftus
2021-11-16  7:37 ` [RFC PATCH bpf-next 8/8] libbpf: use bpf_redirect_xsk in the default program Ciara Loftus
2021-11-16  9:43 ` [RFC PATCH bpf-next 0/8] XDP_REDIRECT_XSK and Batched AF_XDP Rx Jesper Dangaard Brouer
2021-11-16 16:29   ` Loftus, Ciara
2021-11-17 14:24     ` Toke Høiland-Jørgensen
2021-11-19 15:48       ` Loftus, Ciara
2021-11-22 14:38         ` Toke Høiland-Jørgensen
2021-11-18  2:54 ` Alexei Starovoitov
  -- strict thread matches above, loose matches on Subject: below --
2021-11-16 15:28 [RFC PATCH bpf-next 3/8] xsk: handle XDP_REDIRECT_XSK and expose xsk_rcv/flush kernel test robot

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=202111271955.w9AzLVNN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ciara.loftus@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@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.