Lines Matching refs:rtnl_held

249 tcf_proto_lookup_ops(const char *kind, bool rtnl_held,  in tcf_proto_lookup_ops()  argument
258 if (rtnl_held) in tcf_proto_lookup_ops()
261 if (rtnl_held) in tcf_proto_lookup_ops()
374 bool rtnl_held, in tcf_proto_create() argument
384 tp->ops = tcf_proto_lookup_ops(kind, rtnl_held, extack); in tcf_proto_create()
443 static void tcf_proto_destroy(struct tcf_proto *tp, bool rtnl_held, in tcf_proto_destroy() argument
446 tp->ops->destroy(tp, rtnl_held, extack); in tcf_proto_destroy()
455 static void tcf_proto_put(struct tcf_proto *tp, bool rtnl_held, in tcf_proto_put() argument
459 tcf_proto_destroy(tp, rtnl_held, true, extack); in tcf_proto_put()
749 static void tcf_chain_flush(struct tcf_chain *chain, bool rtnl_held) in tcf_chain_flush() argument
768 tcf_proto_put(tp, rtnl_held, NULL); in tcf_chain_flush()
1161 static void tcf_block_flush_all_chains(struct tcf_block *block, bool rtnl_held) in tcf_block_flush_all_chains() argument
1172 tcf_chain_flush(chain, rtnl_held); in tcf_block_flush_all_chains()
1181 u32 *parent, int ifindex, bool rtnl_held, in __tcf_qdisc_find() argument
1246 if (rtnl_held) in __tcf_qdisc_find()
1313 struct tcf_block_ext_info *ei, bool rtnl_held) in __tcf_block_put() argument
1334 tcf_block_flush_all_chains(block, rtnl_held); in __tcf_block_put()
1340 static void tcf_block_refcnt_put(struct tcf_block *block, bool rtnl_held) in tcf_block_refcnt_put() argument
1342 __tcf_block_put(block, NULL, NULL, rtnl_held); in tcf_block_refcnt_put()
1384 bool rtnl_held) in tcf_block_release() argument
1387 tcf_block_refcnt_put(block, rtnl_held); in tcf_block_release()
1390 if (rtnl_held) in tcf_block_release()
1940 bool rtnl_held) in tcf_chain_tp_insert_unique() argument
1950 tcf_proto_destroy(tp_new, rtnl_held, false, NULL); in tcf_chain_tp_insert_unique()
1960 tcf_proto_destroy(tp_new, rtnl_held, false, NULL); in tcf_chain_tp_insert_unique()
1963 tcf_proto_destroy(tp_new, rtnl_held, false, NULL); in tcf_chain_tp_insert_unique()
1971 struct tcf_proto *tp, bool rtnl_held, in tcf_chain_tp_delete_empty() argument
2008 tcf_proto_put(tp, rtnl_held, extack); in tcf_chain_tp_delete_empty()
2054 bool terse_dump, bool rtnl_held, in tcf_fill_node() argument
2086 rtnl_held) < 0) in tcf_fill_node()
2093 tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0) in tcf_fill_node()
2120 u32 portid, bool rtnl_held, in tfilter_notify_prep() argument
2134 rtnl_held, extack); in tfilter_notify_prep()
2150 bool rtnl_held, struct netlink_ext_ack *extack) in tfilter_notify() argument
2160 portid, rtnl_held, extack); in tfilter_notify()
2175 u32 parent, void *fh, bool *last, bool rtnl_held, in tfilter_del_notify() argument
2183 return tp->ops->delete(tp, fh, last, rtnl_held, extack); in tfilter_del_notify()
2186 RTM_DELTFILTER, portid, rtnl_held, extack); in tfilter_del_notify()
2192 err = tp->ops->delete(tp, fh, last, rtnl_held, extack); in tfilter_del_notify()
2252 bool rtnl_held = false; in tc_new_tfilter() local
2304 if (rtnl_held || in tc_new_tfilter()
2307 rtnl_held = true; in tc_new_tfilter()
2372 rtnl_held, extack); in tc_new_tfilter()
2380 rtnl_held); in tc_new_tfilter()
2419 if (!rtnl_held) in tc_new_tfilter()
2427 RTM_NEWTFILTER, false, rtnl_held, extack); in tc_new_tfilter()
2437 tcf_chain_tp_delete_empty(chain, tp, rtnl_held, NULL); in tc_new_tfilter()
2441 tcf_proto_put(tp, rtnl_held, NULL); in tc_new_tfilter()
2445 tcf_block_release(q, block, rtnl_held); in tc_new_tfilter()
2447 if (rtnl_held) in tc_new_tfilter()
2454 rtnl_held = true; in tc_new_tfilter()
2484 bool rtnl_held = false; in tc_del_tfilter() local
2519 rtnl_held = true; in tc_del_tfilter()
2557 tcf_chain_flush(chain, rtnl_held); in tc_del_tfilter()
2581 tcf_proto_put(tp, rtnl_held, NULL); in tc_del_tfilter()
2583 RTM_DELTFILTER, false, rtnl_held, extack); in tc_del_tfilter()
2598 &last, rtnl_held, extack); in tc_del_tfilter()
2603 tcf_chain_tp_delete_empty(chain, tp, rtnl_held, extack); in tc_del_tfilter()
2609 tcf_proto_put(tp, rtnl_held, NULL); in tc_del_tfilter()
2612 tcf_block_release(q, block, rtnl_held); in tc_del_tfilter()
2614 if (rtnl_held) in tc_del_tfilter()
2643 bool rtnl_held = false; in tc_get_tfilter() local
2677 rtnl_held = true; in tc_get_tfilter()
2729 fh, RTM_NEWTFILTER, true, rtnl_held, NULL); in tc_get_tfilter()
2738 tcf_proto_put(tp, rtnl_held, NULL); in tc_get_tfilter()
2741 tcf_block_release(q, block, rtnl_held); in tc_get_tfilter()
2743 if (rtnl_held) in tc_get_tfilter()
3615 void *type_data, bool err_stop, bool rtnl_held) in tc_setup_cb_call() argument
3617 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held; in tc_setup_cb_call()
3628 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) { in tc_setup_cb_call()
3651 u32 *flags, unsigned int *in_hw_count, bool rtnl_held) in tc_setup_cb_add() argument
3653 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held; in tc_setup_cb_add()
3664 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) { in tc_setup_cb_add()
3703 bool rtnl_held) in tc_setup_cb_replace() argument
3705 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held; in tc_setup_cb_replace()
3716 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) { in tc_setup_cb_replace()
3755 u32 *flags, unsigned int *in_hw_count, bool rtnl_held) in tc_setup_cb_destroy() argument
3757 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held; in tc_setup_cb_destroy()
3768 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) { in tc_setup_cb_destroy()