]> 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)
commit0aef36c44a773c72f1e8dea237d958d5e0fc0ff4
treea8f2d384369cbf8834961bf51a9a67ee5b8947f3
parent7221ecea8c18af7417755869c34b1e7706af61a8
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