commit | 843e79d05addd8eb06992cd6dfafc7b9d53f2bc8 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@mellanox.com> | Wed Oct 11 09:41:07 2017 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 11 20:15:42 2017 -0700 |
tree | a8f2d384369cbf8834961bf51a9a67ee5b8947f3 | |
parent | 7c6a86b4cd1b0134a4768505ce10e4ef3b9b0213 [diff] |
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>