[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202309251006.HEmH6uZd-lkp@intel.com>
Date: Mon, 25 Sep 2023 10:25:20 +0800
From: kernel test robot <lkp@...el.com>
To: Eric Dumazet <edumazet@...gle.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Willem de Bruijn <willemb@...gle.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>, Jiri Pirko <jiri@...nulli.us>,
netdev@...r.kernel.org, eric.dumazet@...il.com,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net-next 3/4] net_sched: sch_fq: add fast path for mostly
idle qdisc
Hi Eric,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Eric-Dumazet/net_sched-sch_fq-struct-sched_data-reorg/20230920-205744
base: net-next/main
patch link: https://lore.kernel.org/r/20230920125418.3675569-4-edumazet%40google.com
patch subject: [PATCH net-next 3/4] net_sched: sch_fq: add fast path for mostly idle qdisc
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230925/202309251006.HEmH6uZd-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/20230925/202309251006.HEmH6uZd-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309251006.HEmH6uZd-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> net/sched/sch_fq.c:550:1: warning: unused label 'queue' [-Wunused-label]
queue:
^~~~~~
1 warning generated.
vim +/queue +550 net/sched/sch_fq.c
505
506
507 static int fq_enqueue(struct sk_buff *skb, struct Qdisc *sch,
508 struct sk_buff **to_free)
509 {
510 struct fq_sched_data *q = qdisc_priv(sch);
511 struct fq_flow *f;
512
513 if (unlikely(sch->q.qlen >= sch->limit))
514 return qdisc_drop(skb, sch, to_free);
515
516 q->ktime_cache = ktime_get_ns();
517 if (!skb->tstamp) {
518 fq_skb_cb(skb)->time_to_send = q->ktime_cache;
519 } else {
520 /* Check if packet timestamp is too far in the future. */
521 if (fq_packet_beyond_horizon(skb, q)) {
522 if (q->horizon_drop) {
523 q->stat_horizon_drops++;
524 return qdisc_drop(skb, sch, to_free);
525 }
526 q->stat_horizon_caps++;
527 skb->tstamp = q->ktime_cache + q->horizon;
528 }
529 fq_skb_cb(skb)->time_to_send = skb->tstamp;
530 }
531
532 f = fq_classify(sch, skb);
533 if (unlikely(f->qlen >= q->flow_plimit && f != &q->internal)) {
534 q->stat_flows_plimit++;
535 return qdisc_drop(skb, sch, to_free);
536 }
537
538 if (fq_flow_is_detached(f)) {
539 fq_flow_add_tail(&q->new_flows, f);
540 if (time_after(jiffies, f->age + q->flow_refill_delay))
541 f->credit = max_t(u32, f->credit, q->quantum);
542 }
543
544 if (unlikely(f == &q->internal)) {
545 q->stat_internal_packets++;
546 } else {
547 if (f->qlen == 0)
548 q->inactive_flows--;
549 }
> 550 queue:
551 f->qlen++;
552 /* Note: this overwrites f->age */
553 flow_queue_add(f, skb);
554
555 qdisc_qstats_backlog_inc(sch, skb);
556 sch->q.qlen++;
557
558 return NET_XMIT_SUCCESS;
559 }
560
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists