Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/sched: actions: remove unused 'order'

after commit 4097e9d250fb ("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: Davide Caratti <dcaratti@redhat.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Davide Caratti and committed by
David S. Miller
e0e2b35b 4e4637b1

-2
-1
include/net/act_api.h
··· 23 23 struct tc_action { 24 24 const struct tc_action_ops *ops; 25 25 __u32 type; /* for backward compat(TCA_OLD_COMPAT) */ 26 - __u32 order; 27 26 struct tcf_idrinfo *idrinfo; 28 27 29 28 u32 tcfa_index;
-1
net/sched/act_api.c
··· 1003 1003 err = PTR_ERR(act); 1004 1004 goto err; 1005 1005 } 1006 - act->order = i; 1007 1006 sz += tcf_action_fill_size(act); 1008 1007 /* Start from index 0 */ 1009 1008 actions[i - 1] = act;