[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202301031348.vNEoOHUU-lkp@intel.com>
Date: Tue, 3 Jan 2023 13:31:18 +0800
From: kernel test robot <lkp@...el.com>
To: William Tu <u9012063@...il.com>, netdev@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
tuc@...are.com, gyang@...are.com, doshir@...are.com,
alexander.duyck@...il.com, gerhard@...leder-embedded.com
Subject: Re: [PATCH v8] vmxnet3: Add XDP support.
Hi William,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v6.2-rc2 next-20221226]
[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/William-Tu/vmxnet3-Add-XDP-support/20230103-102353
patch link: https://lore.kernel.org/r/20230103022232.52412-1-u9012063%40gmail.com
patch subject: [PATCH v8] vmxnet3: Add XDP support.
config: i386-randconfig-a016-20230102
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/b111c9fa3603f8fc62a1e6e34a71ccb98fc0abc2
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review William-Tu/vmxnet3-Add-XDP-support/20230103-102353
git checkout b111c9fa3603f8fc62a1e6e34a71ccb98fc0abc2
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/vmxnet3/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/net/vmxnet3/vmxnet3_xdp.c:244:23: warning: variable 'nq' set but not used [-Wunused-but-set-variable]
struct netdev_queue *nq;
^
1 warning generated.
vim +/nq +244 drivers/net/vmxnet3/vmxnet3_xdp.c
236
237 /* ndo_xdp_xmit */
238 int
239 vmxnet3_xdp_xmit(struct net_device *dev,
240 int n, struct xdp_frame **frames, u32 flags)
241 {
242 struct vmxnet3_adapter *adapter;
243 struct vmxnet3_tx_queue *tq;
> 244 struct netdev_queue *nq;
245 int i, err, cpu;
246 int tq_number;
247
248 adapter = netdev_priv(dev);
249
250 if (unlikely(test_bit(VMXNET3_STATE_BIT_QUIESCED, &adapter->state)))
251 return -ENETDOWN;
252 if (unlikely(test_bit(VMXNET3_STATE_BIT_RESETTING, &adapter->state)))
253 return -EINVAL;
254
255 tq_number = adapter->num_tx_queues;
256 cpu = smp_processor_id();
257 tq = &adapter->tx_queue[cpu % tq_number];
258 if (tq->stopped)
259 return -ENETDOWN;
260
261 nq = netdev_get_tx_queue(adapter->netdev, tq->qid);
262
263 for (i = 0; i < n; i++) {
264 err = vmxnet3_xdp_xmit_frame(adapter, frames[i], tq, true);
265 if (err) {
266 tq->stats.xdp_xmit_err++;
267 break;
268 }
269 }
270 tq->stats.xdp_xmit += i;
271
272 return i;
273 }
274
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (149335 bytes)
Powered by blists - more mailing lists