]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4ad8ec81404608414d8c11d0f79ae5e3fc5e5ed
treea8f2d384369cbf8834961bf51a9a67ee5b8947f3
parentc60ad8b3a85df01f5323796ab5b6d9b32c280502
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