summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_multiq.c
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-09-13 18:28:41 +0300
committerDavid S. Miller <davem@davemloft.net>2019-09-16 09:18:03 +0200
commit470d5060e6b3b8fae47d944601855e9ece7a2470 (patch)
treeb91a0dfb567b5ed2878d5543014a65196f7fe7ae /net/sched/sch_multiq.c
parent4a5da47d5cb6aba3c26a5cc0dddfb2d577e851e9 (diff)
downloadlinux-470d5060e6b3b8fae47d944601855e9ece7a2470.tar.gz
linux-470d5060e6b3b8fae47d944601855e9ece7a2470.tar.bz2
linux-470d5060e6b3b8fae47d944601855e9ece7a2470.zip
net: sched: use get_dev() action API in flow_action infra
When filling in hardware intermediate representation tc_setup_flow_action() directly obtains, checks and takes reference to dev used by mirred action, instead of using act->ops->get_dev() API created specifically for this purpose. In order to remove code duplication, refactor flow_action infra to use action API when obtaining mirred action target dev. Extend get_dev() with additional argument that is used to provide dev destructor to the user. Fixes: 5a6ff4b13d59 ("net: sched: take reference to action dev before calling offloads") Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_multiq.c')
0 files changed, 0 insertions, 0 deletions