From: kbuild test robot <lkp@intel.com>
To: Eric Dumazet <edumazet@google.com>,
"David S . Miller" <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
Eric Dumazet <eric.dumazet@gmail.com>,
Willem de Bruijn <willemb@google.com>
Cc: kbuild-all@lists.01.org, netdev <netdev@vger.kernel.org>,
Eric Dumazet <edumazet@google.com>
Subject: Re: [PATCH net-next] net_sched: sch_fq: add horizon attribute
Date: Fri, 1 May 2020 18:43:11 +0800 [thread overview]
Message-ID: <202005011815.an8L9pEE%lkp@intel.com> (raw)
In-Reply-To: <20200501055144.24346-1-edumazet@google.com>
[-- Attachment #1: Type: text/plain, Size: 2717 bytes --]
Hi Eric,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
[also build test WARNING on net/master linus/master v5.7-rc3 next-20200430]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/net_sched-sch_fq-add-horizon-attribute/20200501-135537
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 37ecb5b8b8cd3156e739fd1c56a8e3842b72ebad
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
net/sched/sch_fq.c: In function 'fq_init':
>> net/sched/sch_fq.c:938:18: warning: integer overflow in expression [-Woverflow]
q->horizon = 10 * NSEC_PER_SEC; /* 10 seconds */
^
vim +938 net/sched/sch_fq.c
913
914 static int fq_init(struct Qdisc *sch, struct nlattr *opt,
915 struct netlink_ext_ack *extack)
916 {
917 struct fq_sched_data *q = qdisc_priv(sch);
918 int err;
919
920 sch->limit = 10000;
921 q->flow_plimit = 100;
922 q->quantum = 2 * psched_mtu(qdisc_dev(sch));
923 q->initial_quantum = 10 * psched_mtu(qdisc_dev(sch));
924 q->flow_refill_delay = msecs_to_jiffies(40);
925 q->flow_max_rate = ~0UL;
926 q->time_next_delayed_flow = ~0ULL;
927 q->rate_enable = 1;
928 q->new_flows.first = NULL;
929 q->old_flows.first = NULL;
930 q->delayed = RB_ROOT;
931 q->fq_root = NULL;
932 q->fq_trees_log = ilog2(1024);
933 q->orphan_mask = 1024 - 1;
934 q->low_rate_threshold = 550000 / 8;
935
936 q->timer_slack = 10 * NSEC_PER_USEC; /* 10 usec of hrtimer slack */
937
> 938 q->horizon = 10 * NSEC_PER_SEC; /* 10 seconds */
939 q->horizon_drop = 1; /* by default, drop packets beyond horizon */
940
941 /* Default ce_threshold of 4294 seconds */
942 q->ce_threshold = (u64)NSEC_PER_USEC * ~0U;
943
944 qdisc_watchdog_init_clockid(&q->watchdog, sch, CLOCK_MONOTONIC);
945
946 if (opt)
947 err = fq_change(sch, opt, extack);
948 else
949 err = fq_resize(sch, q->fq_trees_log);
950
951 return err;
952 }
953
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 73127 bytes --]
next prev parent reply other threads:[~2020-05-01 11:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-01 5:51 [PATCH net-next] net_sched: sch_fq: add horizon attribute Eric Dumazet
2020-05-01 10:43 ` kbuild test robot [this message]
2020-05-01 13:57 ` Eric Dumazet
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=202005011815.an8L9pEE%lkp@intel.com \
--to=lkp@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=netdev@vger.kernel.org \
--cc=willemb@google.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).