Lines Matching refs:rtnl_held
127 tcf_proto_lookup_ops(const char *kind, bool rtnl_held,
136 if (rtnl_held)
139 if (rtnl_held)
251 bool rtnl_held,
261 tp->ops = tcf_proto_lookup_ops(kind, rtnl_held, extack);
292 static void tcf_proto_destroy(struct tcf_proto *tp, bool rtnl_held,
295 tp->ops->destroy(tp, rtnl_held, extack);
303 static void tcf_proto_put(struct tcf_proto *tp, bool rtnl_held,
307 tcf_proto_destroy(tp, rtnl_held, true, extack);
596 static void tcf_chain_flush(struct tcf_chain *chain, bool rtnl_held)
615 tcf_proto_put(tp, rtnl_held, NULL);
996 bool rtnl_held)
1001 tcf_proto_put(tp, rtnl_held, NULL);
1007 static void tcf_block_flush_all_chains(struct tcf_block *block, bool rtnl_held)
1018 tcf_chain_flush(chain, rtnl_held);
1027 u32 *parent, int ifindex, bool rtnl_held,
1092 if (rtnl_held)
1159 struct tcf_block_ext_info *ei, bool rtnl_held)
1180 tcf_block_flush_all_chains(block, rtnl_held);
1186 static void tcf_block_refcnt_put(struct tcf_block *block, bool rtnl_held)
1188 __tcf_block_put(block, NULL, NULL, rtnl_held);
1230 bool rtnl_held)
1233 tcf_block_refcnt_put(block, rtnl_held);
1236 if (rtnl_held)
1694 bool rtnl_held)
1704 tcf_proto_destroy(tp_new, rtnl_held, false, NULL);
1715 tcf_proto_destroy(tp_new, rtnl_held, false, NULL);
1718 tcf_proto_destroy(tp_new, rtnl_held, false, NULL);
1726 struct tcf_proto *tp, bool rtnl_held,
1763 tcf_proto_put(tp, rtnl_held, extack);
1803 bool terse_dump, bool rtnl_held)
1833 rtnl_held) < 0)
1840 tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0)
1857 bool rtnl_held)
1869 false, rtnl_held) <= 0) {
1889 bool rtnl_held, struct netlink_ext_ack *extack)
1901 false, rtnl_held) <= 0) {
1907 err = tp->ops->delete(tp, fh, last, rtnl_held, extack);
1930 bool rtnl_held)
1934 for (tp = tcf_get_next_proto(chain, NULL, rtnl_held);
1935 tp; tp = tcf_get_next_proto(chain, tp, rtnl_held))
1937 q, parent, NULL, event, false, rtnl_held);
1967 bool rtnl_held = false;
2016 /* Take rtnl mutex if rtnl_held was set to true on previous iteration,
2020 if (rtnl_held ||
2023 rtnl_held = true;
2089 rtnl_held, extack);
2097 rtnl_held);
2136 rtnl_held, extack);
2139 RTM_NEWTFILTER, false, rtnl_held);
2148 tcf_chain_tp_delete_empty(chain, tp, rtnl_held, NULL);
2152 tcf_proto_put(tp, rtnl_held, NULL);
2156 tcf_block_release(q, block, rtnl_held);
2158 if (rtnl_held)
2165 rtnl_held = true;
2195 bool rtnl_held = false;
2233 rtnl_held = true;
2270 chain, RTM_DELTFILTER, rtnl_held);
2271 tcf_chain_flush(chain, rtnl_held);
2292 tcf_proto_put(tp, rtnl_held, NULL);
2294 RTM_DELTFILTER, false, rtnl_held);
2310 rtnl_held, extack);
2315 tcf_chain_tp_delete_empty(chain, tp, rtnl_held, extack);
2321 tcf_proto_put(tp, rtnl_held, NULL);
2324 tcf_block_release(q, block, rtnl_held);
2326 if (rtnl_held)
2355 bool rtnl_held = false;
2389 rtnl_held = true;
2438 fh, RTM_NEWTFILTER, true, rtnl_held);
2447 tcf_proto_put(tp, rtnl_held, NULL);
2450 tcf_block_release(q, block, rtnl_held);
2452 if (rtnl_held)
3057 bool rtnl_held, struct netlink_ext_ack *extack)
3068 a_o = tc_action_load_ops("police", tb[exts->police], rtnl_held, extack);
3074 rtnl_held, extack);
3089 &attr_size, rtnl_held, extack);
3274 void *type_data, bool err_stop, bool rtnl_held)
3276 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held;
3287 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) {
3310 u32 *flags, unsigned int *in_hw_count, bool rtnl_held)
3312 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held;
3323 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) {
3362 bool rtnl_held)
3364 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held;
3375 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) {
3414 u32 *flags, unsigned int *in_hw_count, bool rtnl_held)
3416 bool take_rtnl = READ_ONCE(block->lockeddevcnt) && !rtnl_held;
3427 if (!rtnl_held && !take_rtnl && block->lockeddevcnt) {