Commit e0e2b35b authored by Davide Caratti's avatar Davide Caratti Committed by David S. Miller

net/sched: actions: remove unused 'order'

after commit 4097e9d2 ("net: sched: don't use tc_action->order during
action dump"), 'act->order' is initialized but then it's no more read, so
we can just remove this member of struct tc_action.

CC: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: default avatarDavide Caratti <dcaratti@redhat.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Reviewed-by: default avatarIvan Vecera <ivecera@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e4637b1
...@@ -23,7 +23,6 @@ struct tc_action_ops; ...@@ -23,7 +23,6 @@ struct tc_action_ops;
struct tc_action { struct tc_action {
const struct tc_action_ops *ops; const struct tc_action_ops *ops;
__u32 type; /* for backward compat(TCA_OLD_COMPAT) */ __u32 type; /* for backward compat(TCA_OLD_COMPAT) */
__u32 order;
struct tcf_idrinfo *idrinfo; struct tcf_idrinfo *idrinfo;
u32 tcfa_index; u32 tcfa_index;
......
...@@ -1003,7 +1003,6 @@ int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla, ...@@ -1003,7 +1003,6 @@ int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
err = PTR_ERR(act); err = PTR_ERR(act);
goto err; goto err;
} }
act->order = i;
sz += tcf_action_fill_size(act); sz += tcf_action_fill_size(act);
/* Start from index 0 */ /* Start from index 0 */
actions[i - 1] = act; actions[i - 1] = act;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment