net: sched: make tc_action_ops->get_dev return dev and avoid passing net
authorJiri Pirko <jiri@mellanox.com>
Wed, 11 Oct 2017 07:41:07 +0000 (09:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Oct 2017 03:15:42 +0000 (20:15 -0700)
commit843e79d05addd8eb06992cd6dfafc7b9d53f2bc8
treea8f2d384369cbf8834961bf51a9a67ee5b8947f3
parent7c6a86b4cd1b0134a4768505ce10e4ef3b9b0213
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>
include/net/act_api.h
include/net/tc_act/tc_mirred.h
net/sched/act_mirred.c
net/sched/cls_api.c