net: sched: make tc_action_ops->get_dev return dev and avoid passing net
Return dev directly, NULL if not possible. That is enough. Makes no sense to pass struct net * to get_dev op, as there is only one net possible, the one the action was created in. So just store it in mirred priv and use directly. Rename the mirred op callback function. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7c6a86b4cd
commit
843e79d05a
@@ -10,6 +10,7 @@ struct tcf_mirred {
|
||||
int tcfm_ifindex;
|
||||
bool tcfm_mac_header_xmit;
|
||||
struct net_device __rcu *tcfm_dev;
|
||||
struct net *net;
|
||||
struct list_head tcfm_list;
|
||||
};
|
||||
#define to_mirred(a) ((struct tcf_mirred *)a)
|
||||
|
Reference in New Issue
Block a user