BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Grygorii Strashko <grygorii.strashko(a)ti.com>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 521a547ced6477c54b4b0cc206000406c221b4d6
commit: 127c9e970f59edaaaa7a7134e55752314c9691da net: ethernet: ti: cpsw_new: enable bc/mc
storm prevention support
date: 5 months ago
:::::: branch date: 17 hours ago
:::::: commit date: 5 months ago
config: csky-randconfig-m041-20220918
compiler: csky-linux-gcc (GCC) 12.1.0
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/net/ethernet/ti/cpsw_priv.c:1492 cpsw_qos_configure_clsflower() warn: ignoring
unreachable code.
vim +1492 drivers/net/ethernet/ti/cpsw_priv.c
127c9e970f59ed Grygorii Strashko 2022-04-12 1484
127c9e970f59ed Grygorii Strashko 2022-04-12 1485 static int
cpsw_qos_configure_clsflower(struct cpsw_priv *priv, struct flow_cls_offload *cls)
127c9e970f59ed Grygorii Strashko 2022-04-12 1486 {
127c9e970f59ed Grygorii Strashko 2022-04-12 1487 struct flow_rule *rule =
flow_cls_offload_flow_rule(cls);
127c9e970f59ed Grygorii Strashko 2022-04-12 1488 struct netlink_ext_ack *extack =
cls->common.extack;
127c9e970f59ed Grygorii Strashko 2022-04-12 1489 const struct flow_action_entry *act;
127c9e970f59ed Grygorii Strashko 2022-04-12 1490 int i, ret;
127c9e970f59ed Grygorii Strashko 2022-04-12 1491
127c9e970f59ed Grygorii Strashko 2022-04-12 @1492 flow_action_for_each(i, act,
&rule->action) {
127c9e970f59ed Grygorii Strashko 2022-04-12 1493 switch (act->id) {
127c9e970f59ed Grygorii Strashko 2022-04-12 1494 case FLOW_ACTION_POLICE:
127c9e970f59ed Grygorii Strashko 2022-04-12 1495 ret =
cpsw_qos_clsflower_policer_validate(&rule->action, act, extack);
127c9e970f59ed Grygorii Strashko 2022-04-12 1496 if (ret)
127c9e970f59ed Grygorii Strashko 2022-04-12 1497 return ret;
127c9e970f59ed Grygorii Strashko 2022-04-12 1498
127c9e970f59ed Grygorii Strashko 2022-04-12 1499 return
cpsw_qos_clsflower_add_policer(priv, extack, cls,
127c9e970f59ed Grygorii Strashko 2022-04-12 1500
act->police.rate_pkt_ps);
127c9e970f59ed Grygorii Strashko 2022-04-12 1501 default:
127c9e970f59ed Grygorii Strashko 2022-04-12 1502 NL_SET_ERR_MSG_MOD(extack,
"Action not supported");
127c9e970f59ed Grygorii Strashko 2022-04-12 1503 return -EOPNOTSUPP;
127c9e970f59ed Grygorii Strashko 2022-04-12 1504 }
127c9e970f59ed Grygorii Strashko 2022-04-12 1505 }
127c9e970f59ed Grygorii Strashko 2022-04-12 1506 return -EOPNOTSUPP;
127c9e970f59ed Grygorii Strashko 2022-04-12 1507 }
127c9e970f59ed Grygorii Strashko 2022-04-12 1508
--
0-DAY CI Kernel Test Service
https://01.org/lkp