diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2024-10-23 16:52:48 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-30 17:33:54 -0700 |
commit | c11ace14d9db3a2e2e7b473ff8f79c7b1c998191 (patch) | |
tree | 139186aea73a0503dfb8f0e2dc4ec00fa47280c6 /net | |
parent | a0af7162ccb501a22ac448ad94dad81757743725 (diff) |
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 <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20241023135251.1752488-4-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/dsa/user.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/dsa/user.c b/net/dsa/user.c index 15f69fa6a38b..a89425a8de2e 100644 --- a/net/dsa/user.c +++ b/net/dsa/user.c @@ -1382,8 +1382,7 @@ dsa_user_add_cls_matchall_mirred(struct net_device *dev, if (!ds->ops->port_mirror_add) return -EOPNOTSUPP; - if (!flow_action_basic_hw_stats_check(&cls->rule->action, - cls->common.extack)) + if (!flow_action_basic_hw_stats_check(&cls->rule->action, extack)) return -EOPNOTSUPP; act = &cls->rule->action.entries[0]; @@ -1449,8 +1448,7 @@ dsa_user_add_cls_matchall_police(struct net_device *dev, return -EOPNOTSUPP; } - if (!flow_action_basic_hw_stats_check(&cls->rule->action, - cls->common.extack)) + if (!flow_action_basic_hw_stats_check(&cls->rule->action, extack)) return -EOPNOTSUPP; list_for_each_entry(mall_tc_entry, &p->mall_tc_list, list) { |