Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EC0323A1; Sun, 19 Feb 2023 15:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676818968; x=1708354968; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fjEIPxLTZhw5PoUtO9RHdZE2X1+ToWdET6Sztzd0qng=; b=VraCfKY93zpjxa0KNVmqngiouMvQ9QxDaJTORoUKFH/4fGsJqSha4OJs gYzdGQFhICRL2iPww2zVJ4QhGbnNceFrkv7uAueuMJnk5zGRLJGN6+xdu IARNnCiU5XtENY6woxLtVWH3TOnlT9Fe59NFyoFW9yZqFAerTKEqiq3CJ 8EOlysuCPyHLWDjSrWFK8oElXLOgDva/6h4IJWLQd5JpwcIP3fGjVTBHs abtlqf9y5QpnnL9RJUrXVyYz/pvnU/ftoBfkkPpMh3ehvSZpact+PIBOC FPYCglR284JaZGL3gKFXwPrNmZrQShABg07eSdq87g9+T/z6PFBvX45D+ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10626"; a="394737509" X-IronPort-AV: E=Sophos;i="5.97,310,1669104000"; d="scan'208";a="394737509" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2023 07:02:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10626"; a="794928802" X-IronPort-AV: E=Sophos;i="5.97,310,1669104000"; d="scan'208";a="794928802" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 19 Feb 2023 07:02:38 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pTlD4-000DLJ-05; Sun, 19 Feb 2023 15:02:38 +0000 Date: Sun, 19 Feb 2023 23:02:02 +0800 From: kernel test robot To: Felix Fietkau Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: Re: [RFC v3] net/core: add optional threading for backlog processing Message-ID: <202302192211.Dvru0wO7-lkp@intel.com> References: <20230219131006.92681-1-nbd@nbd.name> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230219131006.92681-1-nbd@nbd.name> Hi Felix, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on net-next/master] [also build test WARNING on horms-ipvs/master linus/master v6.2-rc8 next-20230217] [cannot apply to net/master] [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/Felix-Fietkau/net-core-add-optional-threading-for-backlog-processing/20230219-211100 patch link: https://lore.kernel.org/r/20230219131006.92681-1-nbd%40nbd.name patch subject: [RFC v3] net/core: add optional threading for backlog processing config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20230219/202302192211.Dvru0wO7-lkp@intel.com/config) 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/7912164b6828c63b948d6ff9d21599f6cecbf4fc git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Felix-Fietkau/net-core-add-optional-threading-for-backlog-processing/20230219-211100 git checkout 7912164b6828c63b948d6ff9d21599f6cecbf4fc # 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 net/core/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302192211.Dvru0wO7-lkp@intel.com/ All warnings (new ones prefixed by >>): >> net/core/dev.c:5812:20: warning: variable 'process_queue_empty' is uninitialized when used here [-Wuninitialized] flush_processq = process_queue_empty == sd->process_queue_empty; ^~~~~~~~~~~~~~~~~~~ net/core/dev.c:5773:34: note: initialize the variable 'process_queue_empty' to silence this warning unsigned int process_queue_empty; ^ = 0 net/core/dev.c:5093:1: warning: unused function 'sch_handle_ingress' [-Wunused-function] sch_handle_ingress(struct sk_buff *skb, struct packet_type **pt_prev, int *ret, ^ net/core/dev.c:5246:19: warning: unused function 'nf_ingress' [-Wunused-function] static inline int nf_ingress(struct sk_buff *skb, struct packet_type **pt_prev, ^ 3 warnings generated. vim +/process_queue_empty +5812 net/core/dev.c 5769 5770 /* Network device is going away, flush any packets still pending */ 5771 static void flush_backlog(struct work_struct *work) 5772 { 5773 unsigned int process_queue_empty; 5774 bool threaded, flush_processq; 5775 struct sk_buff *skb, *tmp; 5776 struct softnet_data *sd; 5777 5778 local_bh_disable(); 5779 sd = this_cpu_ptr(&softnet_data); 5780 5781 rps_lock_irq_disable(sd); 5782 skb_queue_walk_safe(&sd->input_pkt_queue, skb, tmp) { 5783 if (skb->dev->reg_state == NETREG_UNREGISTERING) { 5784 __skb_unlink(skb, &sd->input_pkt_queue); 5785 dev_kfree_skb_irq(skb); 5786 input_queue_head_incr(sd); 5787 } 5788 } 5789 5790 threaded = test_bit(NAPI_STATE_THREADED, &sd->backlog.state); 5791 flush_processq = threaded && 5792 !skb_queue_empty_lockless(&sd->process_queue); 5793 rps_unlock_irq_enable(sd); 5794 5795 if (threaded) 5796 goto out; 5797 5798 skb_queue_walk_safe(&sd->process_queue, skb, tmp) { 5799 if (skb->dev->reg_state == NETREG_UNREGISTERING) { 5800 __skb_unlink(skb, &sd->process_queue); 5801 kfree_skb(skb); 5802 input_queue_head_incr(sd); 5803 } 5804 } 5805 5806 out: 5807 local_bh_enable(); 5808 5809 while (flush_processq) { 5810 msleep(1); 5811 rps_lock_irq_disable(sd); > 5812 flush_processq = process_queue_empty == sd->process_queue_empty; 5813 rps_unlock_irq_enable(sd); 5814 } 5815 } 5816 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests