From: kernel test robot <lkp@intel.com>
To: Ma Ke <make_ruc2021@163.com>,
jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Ma Ke <make_ruc2021@163.com>
Subject: Re: [PATCH] net: sched: hfsc: dont intepret cls results when asked to drop
Date: Sat, 16 Sep 2023 20:03:26 +0800 [thread overview]
Message-ID: <202309161941.5lMYMKdM-lkp@intel.com> (raw)
In-Reply-To: <20230915134408.3410595-1-make_ruc2021@163.com>
Hi Ma,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
[also build test ERROR on net/main linus/master v6.6-rc1 next-20230915]
[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/Ma-Ke/net-sched-hfsc-dont-intepret-cls-results-when-asked-to-drop/20230915-214635
base: net-next/main
patch link: https://lore.kernel.org/r/20230915134408.3410595-1-make_ruc2021%40163.com
patch subject: [PATCH] net: sched: hfsc: dont intepret cls results when asked to drop
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230916/202309161941.5lMYMKdM-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/20230916/202309161941.5lMYMKdM-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309161941.5lMYMKdM-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/sched/sch_hfsc.c:1146:4: error: fallthrough annotation does not directly precede switch label
fallthrough;
^
include/linux/compiler_attributes.h:227:41: note: expanded from macro 'fallthrough'
# define fallthrough __attribute__((__fallthrough__))
^
1 error generated.
vim +1146 net/sched/sch_hfsc.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 1119
^1da177e4c3f41 Linus Torvalds 2005-04-16 1120 static struct hfsc_class *
^1da177e4c3f41 Linus Torvalds 2005-04-16 1121 hfsc_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1122 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 1123 struct hfsc_sched *q = qdisc_priv(sch);
a2f79227138c71 Patrick McHardy 2010-05-14 1124 struct hfsc_class *head, *cl;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1125 struct tcf_result res;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1126 struct tcf_proto *tcf;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1127 int result;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1128
^1da177e4c3f41 Linus Torvalds 2005-04-16 1129 if (TC_H_MAJ(skb->priority ^ sch->handle) == 0 &&
^1da177e4c3f41 Linus Torvalds 2005-04-16 1130 (cl = hfsc_find_class(skb->priority, sch)) != NULL)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1131 if (cl->level == 0)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1132 return cl;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1133
c27f339af90bb8 Jarek Poplawski 2008-08-04 1134 *qerr = NET_XMIT_SUCCESS | __NET_XMIT_BYPASS;
a2f79227138c71 Patrick McHardy 2010-05-14 1135 head = &q->root;
25d8c0d55f241c John Fastabend 2014-09-12 1136 tcf = rcu_dereference_bh(q->root.filter_list);
3aa2605594556c Davide Caratti 2021-07-28 1137 while (tcf && (result = tcf_classify(skb, NULL, tcf, &res, false)) >= 0) {
b633b393d00632 Ma Ke 2023-09-15 1138 if (result == TC_ACT_SHOT)
b633b393d00632 Ma Ke 2023-09-15 1139 return NULL;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1140 #ifdef CONFIG_NET_CLS_ACT
^1da177e4c3f41 Linus Torvalds 2005-04-16 1141 switch (result) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 1142 case TC_ACT_QUEUED:
^1da177e4c3f41 Linus Torvalds 2005-04-16 1143 case TC_ACT_STOLEN:
e25ea21ffa66a0 Jiri Pirko 2017-06-06 1144 case TC_ACT_TRAP:
378a2f090f7a47 Jarek Poplawski 2008-08-04 1145 *qerr = NET_XMIT_SUCCESS | __NET_XMIT_STOLEN;
964201de695b8a Gustavo A. R. Silva 2020-07-07 @1146 fallthrough;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1147 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 1148 #endif
cc7ec456f82da7 Eric Dumazet 2011-01-19 1149 cl = (struct hfsc_class *)res.class;
cc7ec456f82da7 Eric Dumazet 2011-01-19 1150 if (!cl) {
cc7ec456f82da7 Eric Dumazet 2011-01-19 1151 cl = hfsc_find_class(res.classid, sch);
cc7ec456f82da7 Eric Dumazet 2011-01-19 1152 if (!cl)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1153 break; /* filter selected invalid classid */
a2f79227138c71 Patrick McHardy 2010-05-14 1154 if (cl->level >= head->level)
a2f79227138c71 Patrick McHardy 2010-05-14 1155 break; /* filter may only point downwards */
^1da177e4c3f41 Linus Torvalds 2005-04-16 1156 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 1157
^1da177e4c3f41 Linus Torvalds 2005-04-16 1158 if (cl->level == 0)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1159 return cl; /* hit leaf class */
^1da177e4c3f41 Linus Torvalds 2005-04-16 1160
^1da177e4c3f41 Linus Torvalds 2005-04-16 1161 /* apply inner filter chain */
25d8c0d55f241c John Fastabend 2014-09-12 1162 tcf = rcu_dereference_bh(cl->filter_list);
a2f79227138c71 Patrick McHardy 2010-05-14 1163 head = cl;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1164 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 1165
^1da177e4c3f41 Linus Torvalds 2005-04-16 1166 /* classification failed, try default class */
^1da177e4c3f41 Linus Torvalds 2005-04-16 1167 cl = hfsc_find_class(TC_H_MAKE(TC_H_MAJ(sch->handle), q->defcls), sch);
^1da177e4c3f41 Linus Torvalds 2005-04-16 1168 if (cl == NULL || cl->level > 0)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1169 return NULL;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1170
^1da177e4c3f41 Linus Torvalds 2005-04-16 1171 return cl;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1172 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 1173
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-09-16 12:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-15 13:44 [PATCH] net: sched: hfsc: dont intepret cls results when asked to drop Ma Ke
2023-09-15 16:27 ` kernel test robot
2023-09-16 12:03 ` kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-09-15 12:18 Ma Ke
2023-09-15 12: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=202309161941.5lMYMKdM-lkp@intel.com \
--to=lkp@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=make_ruc2021@163.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=xiyou.wangcong@gmail.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).