Skip to content

Commit c11ace1

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: use "extack" as argument to flow_action_basic_hw_stats_check()
We already have an "extack" stack variable in dsa_user_add_cls_matchall_police() and dsa_user_add_cls_matchall_mirred(), there is no need to retrieve it again from cls->common.extack. Signed-off-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a0af716 commit c11ace1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

net/dsa/user.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,8 +1382,7 @@ dsa_user_add_cls_matchall_mirred(struct net_device *dev,
13821382
if (!ds->ops->port_mirror_add)
13831383
return -EOPNOTSUPP;
13841384

1385-
if (!flow_action_basic_hw_stats_check(&cls->rule->action,
1386-
cls->common.extack))
1385+
if (!flow_action_basic_hw_stats_check(&cls->rule->action, extack))
13871386
return -EOPNOTSUPP;
13881387

13891388
act = &cls->rule->action.entries[0];
@@ -1449,8 +1448,7 @@ dsa_user_add_cls_matchall_police(struct net_device *dev,
14491448
return -EOPNOTSUPP;
14501449
}
14511450

1452-
if (!flow_action_basic_hw_stats_check(&cls->rule->action,
1453-
cls->common.extack))
1451+
if (!flow_action_basic_hw_stats_check(&cls->rule->action, extack))
14541452
return -EOPNOTSUPP;
14551453

14561454
list_for_each_entry(mall_tc_entry, &p->mall_tc_list, list) {

0 commit comments

Comments
 (0)