]> asedeno.scripts.mit.edu Git - linux.git/commit
net: sched: take reference to action dev before calling offloads
authorVlad Buslov <vladbu@mellanox.com>
Mon, 26 Aug 2019 13:45:04 +0000 (16:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Aug 2019 21:17:43 +0000 (14:17 -0700)
commit5a6ff4b13d598573fc954f672cd2a267b76a01ec
tree5d0222c2eb4a232f49a9b4f33dddd57ccf982586
parent9838b20a7fb28c69fa66ac8e68d967ffe1d0ecad
net: sched: take reference to action dev before calling offloads

In order to remove dependency on rtnl lock when calling hardware offload
API, take reference to action mirred dev when initializing flow_action
structure in tc_setup_flow_action(). Implement function
tc_cleanup_flow_action(), use it to release the device after hardware
offload API is done using it.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/sched/cls_api.c
net/sched/cls_flower.c