Home
last modified time | relevance | path

Searched refs:block_cb (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/net/sched/
Dcls_api.c810 void *tcf_block_cb_priv(struct tcf_block_cb *block_cb) in tcf_block_cb_priv() argument
812 return block_cb->cb_priv; in tcf_block_cb_priv()
818 { struct tcf_block_cb *block_cb; in tcf_block_cb_lookup() local
820 list_for_each_entry(block_cb, &block->cb_list, list) in tcf_block_cb_lookup()
821 if (block_cb->cb == cb && block_cb->cb_ident == cb_ident) in tcf_block_cb_lookup()
822 return block_cb; in tcf_block_cb_lookup()
827 void tcf_block_cb_incref(struct tcf_block_cb *block_cb) in tcf_block_cb_incref() argument
829 block_cb->refcnt++; in tcf_block_cb_incref()
833 unsigned int tcf_block_cb_decref(struct tcf_block_cb *block_cb) in tcf_block_cb_decref() argument
835 return --block_cb->refcnt; in tcf_block_cb_decref()
[all …]
/Linux-v4.19/include/net/
Dpkt_cls.h73 void *tcf_block_cb_priv(struct tcf_block_cb *block_cb);
76 void tcf_block_cb_incref(struct tcf_block_cb *block_cb);
77 unsigned int tcf_block_cb_decref(struct tcf_block_cb *block_cb);
86 struct tcf_block_cb *block_cb);
144 void *tcf_block_cb_priv(struct tcf_block_cb *block_cb) in tcf_block_cb_priv() argument
157 void tcf_block_cb_incref(struct tcf_block_cb *block_cb) in tcf_block_cb_incref() argument
162 unsigned int tcf_block_cb_decref(struct tcf_block_cb *block_cb) in tcf_block_cb_decref() argument
186 struct tcf_block_cb *block_cb) in __tcf_block_cb_unregister() argument
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c1507 struct tcf_block_cb *block_cb; in mlxsw_sp_setup_tc_block_flower_bind() local
1510 block_cb = tcf_block_cb_lookup(block, mlxsw_sp_setup_tc_block_cb_flower, in mlxsw_sp_setup_tc_block_flower_bind()
1512 if (!block_cb) { in mlxsw_sp_setup_tc_block_flower_bind()
1516 block_cb = __tcf_block_cb_register(block, in mlxsw_sp_setup_tc_block_flower_bind()
1519 if (IS_ERR(block_cb)) { in mlxsw_sp_setup_tc_block_flower_bind()
1520 err = PTR_ERR(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()
1524 acl_block = tcf_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()
1526 tcf_block_cb_incref(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()
1540 if (!tcf_block_cb_decref(block_cb)) { in mlxsw_sp_setup_tc_block_flower_bind()
1541 __tcf_block_cb_unregister(block, block_cb); in mlxsw_sp_setup_tc_block_flower_bind()
[all …]