Lines Matching refs:rtnl_held

146 tcf_proto_lookup_ops(const char *kind, bool rtnl_held,  in tcf_proto_lookup_ops()  argument
155 if (rtnl_held) in tcf_proto_lookup_ops()
158 if (rtnl_held) in tcf_proto_lookup_ops()
271 bool rtnl_held, in tcf_proto_create() argument
281 tp->ops = tcf_proto_lookup_ops(kind, rtnl_held, extack); in tcf_proto_create()
312 static void tcf_proto_destroy(struct tcf_proto *tp, bool rtnl_held, in tcf_proto_destroy() argument
315 tp->ops->destroy(tp, rtnl_held, extack); in tcf_proto_destroy()
323 static void tcf_proto_put(struct tcf_proto *tp, bool rtnl_held, in tcf_proto_put() argument
327 tcf_proto_destroy(tp, rtnl_held, true, extack); in tcf_proto_put()
614 static void tcf_chain_flush(struct tcf_chain *chain, bool rtnl_held) in tcf_chain_flush() argument
633 tcf_proto_put(tp, rtnl_held, NULL); in tcf_chain_flush()
1024 static void tcf_block_flush_all_chains(struct tcf_block *block, bool rtnl_held) in tcf_block_flush_all_chains() argument
1035 tcf_chain_flush(chain, rtnl_held); in tcf_block_flush_all_chains()
1044 u32 *parent, int ifindex, bool rtnl_held, in __tcf_qdisc_find() argument
1109 if (rtnl_held) in __tcf_qdisc_find()
1176 struct tcf_block_ext_info *ei, bool rtnl_held) in __tcf_block_put() argument
1197 tcf_block_flush_all_chains(block, rtnl_held); in __tcf_block_put()
1203 static void tcf_block_refcnt_put(struct tcf_block *block, bool rtnl_held) in tcf_block_refcnt_put() argument
1205 __tcf_block_put(block, NULL, NULL, rtnl_held); in tcf_block_refcnt_put()
1247 bool rtnl_held) in tcf_block_release() argument
1250 tcf_block_refcnt_put(block, rtnl_held); in tcf_block_release()
1253 if (rtnl_held) in tcf_block_release()
1710 bool rtnl_held) in tcf_chain_tp_insert_unique() argument
1720 tcf_proto_destroy(tp_new, rtnl_held, false, NULL); in tcf_chain_tp_insert_unique()
1731 tcf_proto_destroy(tp_new, rtnl_held, false, NULL); in tcf_chain_tp_insert_unique()
1734 tcf_proto_destroy(tp_new, rtnl_held, false, NULL); in tcf_chain_tp_insert_unique()
1742 struct tcf_proto *tp, bool rtnl_held, in tcf_chain_tp_delete_empty() argument
1779 tcf_proto_put(tp, rtnl_held, extack); in tcf_chain_tp_delete_empty()
1819 bool terse_dump, bool rtnl_held) in tcf_fill_node() argument
1849 rtnl_held) < 0) in tcf_fill_node()
1856 tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0) in tcf_fill_node()
1873 bool rtnl_held) in tfilter_notify() argument
1885 false, rtnl_held) <= 0) { in tfilter_notify()
1902 bool rtnl_held, struct netlink_ext_ack *extack) in tfilter_del_notify() argument
1914 false, rtnl_held) <= 0) { in tfilter_del_notify()
1920 err = tp->ops->delete(tp, fh, last, rtnl_held, extack); in tfilter_del_notify()
1977 bool rtnl_held = false; in tc_new_tfilter() local
2029 if (rtnl_held || in tc_new_tfilter()
2032 rtnl_held = true; in tc_new_tfilter()
2098 rtnl_held, extack); in tc_new_tfilter()
2106 rtnl_held); in tc_new_tfilter()
2145 if (!rtnl_held) in tc_new_tfilter()
2151 RTM_NEWTFILTER, false, rtnl_held); in tc_new_tfilter()
2160 tcf_chain_tp_delete_empty(chain, tp, rtnl_held, NULL); in tc_new_tfilter()
2164 tcf_proto_put(tp, rtnl_held, NULL); in tc_new_tfilter()
2168 tcf_block_release(q, block, rtnl_held); in tc_new_tfilter()
2170 if (rtnl_held) in tc_new_tfilter()
2177 rtnl_held = true; in tc_new_tfilter()
2207 bool rtnl_held = false; in tc_del_tfilter() local
2242 rtnl_held = true; in tc_del_tfilter()
2280 tcf_chain_flush(chain, rtnl_held); in tc_del_tfilter()
2301 tcf_proto_put(tp, rtnl_held, NULL); in tc_del_tfilter()
2303 RTM_DELTFILTER, false, rtnl_held); in tc_del_tfilter()
2319 rtnl_held, extack); in tc_del_tfilter()
2324 tcf_chain_tp_delete_empty(chain, tp, rtnl_held, extack); in tc_del_tfilter()
2330 tcf_proto_put(tp, rtnl_held, NULL); in tc_del_tfilter()
2333 tcf_block_release(q, block, rtnl_held); in tc_del_tfilter()
2335 if (rtnl_held) in tc_del_tfilter()
2364 bool rtnl_held = false; in tc_get_tfilter() local
2398 rtnl_held = true; in tc_get_tfilter()
2447 fh, RTM_NEWTFILTER, true, rtnl_held); in tc_get_tfilter()
2456 tcf_proto_put(tp, rtnl_held, NULL); in tc_get_tfilter()
2459 tcf_block_release(q, block, rtnl_held); in tc_get_tfilter()
2461 if (rtnl_held) in tc_get_tfilter()
3278 void *type_data, bool err_stop, bool rtnl_held) in tc_setup_cb_call() argument
3280 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held; in tc_setup_cb_call()
3291 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) { in tc_setup_cb_call()
3314 u32 *flags, unsigned int *in_hw_count, bool rtnl_held) in tc_setup_cb_add() argument
3316 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held; in tc_setup_cb_add()
3327 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) { in tc_setup_cb_add()
3366 bool rtnl_held) in tc_setup_cb_replace() argument
3368 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held; in tc_setup_cb_replace()
3379 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) { in tc_setup_cb_replace()
3418 u32 *flags, unsigned int *in_hw_count, bool rtnl_held) in tc_setup_cb_destroy() argument
3420 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held; in tc_setup_cb_destroy()
3431 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) { in tc_setup_cb_destroy()