/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_flow.c | 179 struct flow_block_cb *block_cb; in prestera_flow_block_get() local 183 if (!block_cb) { in prestera_flow_block_get() 191 if (IS_ERR(block_cb)) { in prestera_flow_block_get() 193 return ERR_CAST(block_cb); in prestera_flow_block_get() 196 block->block_cb = block_cb; in prestera_flow_block_get() 203 flow_block_cb_incref(block_cb); in prestera_flow_block_get() 210 struct flow_block_cb *block_cb = block->block_cb; in prestera_flow_block_put() local 215 flow_block_cb_free(block_cb); in prestera_flow_block_put() 224 struct flow_block_cb *block_cb; in prestera_setup_flow_block_bind() local 232 block_cb = block->block_cb; in prestera_setup_flow_block_bind() [all …]
|
A D | prestera_flow.h | 23 struct flow_block_cb *block_cb; member
|
/linux-6.3-rc2/net/core/ |
A D | flow_offload.c | 260 block_cb = kzalloc(sizeof(*block_cb), GFP_KERNEL); in flow_block_cb_alloc() 261 if (!block_cb) in flow_block_cb_alloc() 264 block_cb->cb = cb; in flow_block_cb_alloc() 269 return block_cb; in flow_block_cb_alloc() 276 block_cb->release(block_cb->cb_priv); in flow_block_cb_free() 278 kfree(block_cb); in flow_block_cb_free() 290 return block_cb; in flow_block_cb_lookup() 305 block_cb->refcnt++; in flow_block_cb_incref() 358 if (!block_cb) in flow_block_cb_setup_simple() 535 if (IS_ERR(block_cb)) in flow_indr_block_cb_alloc() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_flow.c | 207 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_bind() local 213 if (!block_cb) { in mlxsw_sp_setup_tc_block_bind() 220 if (IS_ERR(block_cb)) { in mlxsw_sp_setup_tc_block_bind() 222 return PTR_ERR(block_cb); in mlxsw_sp_setup_tc_block_bind() 228 flow_block_cb_incref(block_cb); in mlxsw_sp_setup_tc_block_bind() 240 flow_block_cb_add(block_cb, f); in mlxsw_sp_setup_tc_block_bind() 248 flow_block_cb_free(block_cb); in mlxsw_sp_setup_tc_block_bind() 258 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_unbind() local 263 if (!block_cb) in mlxsw_sp_setup_tc_block_unbind() 275 flow_block_cb_remove(block_cb, f); in mlxsw_sp_setup_tc_block_unbind() [all …]
|
A D | spectrum_qdisc.c | 2178 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_qevent_bind() local 2185 if (!block_cb) { in mlxsw_sp_setup_tc_block_qevent_bind() 2191 if (IS_ERR(block_cb)) { in mlxsw_sp_setup_tc_block_qevent_bind() 2193 return PTR_ERR(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind() 2199 flow_block_cb_incref(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind() 2233 flow_block_cb_add(block_cb, f); in mlxsw_sp_setup_tc_block_qevent_bind() 2245 flow_block_cb_free(block_cb); in mlxsw_sp_setup_tc_block_qevent_bind() 2256 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_qevent_unbind() local 2259 if (!block_cb) in mlxsw_sp_setup_tc_block_qevent_unbind() 2273 flow_block_cb_remove(block_cb, f); in mlxsw_sp_setup_tc_block_qevent_unbind() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/ |
A D | tc_bindings.c | 77 struct flow_block_cb *block_cb; in efx_tc_setup_block() local 93 rc = PTR_ERR_OR_ZERO(block_cb); in efx_tc_setup_block() 103 flow_block_cb_add(block_cb, tcb); in efx_tc_setup_block() 109 block_cb = flow_block_cb_lookup(tcb->block, in efx_tc_setup_block() 112 if (block_cb) { in efx_tc_setup_block() 113 flow_block_cb_remove(block_cb, tcb); in efx_tc_setup_block() 145 struct flow_block_cb *block_cb; in efx_tc_indr_setup_cb() local 176 rc = PTR_ERR_OR_ZERO(block_cb); in efx_tc_indr_setup_cb() 184 flow_block_cb_add(block_cb, tcb); in efx_tc_indr_setup_cb() 194 if (!block_cb) in efx_tc_indr_setup_cb() [all …]
|
A D | tc_bindings.h | 28 void (*cleanup)(struct flow_block_cb *block_cb));
|
/linux-6.3-rc2/include/net/netfilter/ |
A D | nf_flow_table.h | 225 struct flow_block_cb *block_cb; in nf_flow_table_offload_add_cb() local 229 block_cb = flow_block_cb_lookup(block, cb, cb_priv); in nf_flow_table_offload_add_cb() 230 if (block_cb) { in nf_flow_table_offload_add_cb() 236 if (IS_ERR(block_cb)) { in nf_flow_table_offload_add_cb() 237 err = PTR_ERR(block_cb); in nf_flow_table_offload_add_cb() 241 list_add_tail(&block_cb->list, &block->cb_list); in nf_flow_table_offload_add_cb() 253 struct flow_block_cb *block_cb; in nf_flow_table_offload_del_cb() local 256 block_cb = flow_block_cb_lookup(block, cb, cb_priv); in nf_flow_table_offload_del_cb() 257 if (block_cb) { in nf_flow_table_offload_del_cb() 258 list_del(&block_cb->list); in nf_flow_table_offload_del_cb() [all …]
|
/linux-6.3-rc2/include/net/ |
A D | flow_offload.h | 519 void (*cleanup)(struct flow_block_cb *block_cb); 543 void (*cleanup)(struct flow_block_cb *block_cb)); 544 void flow_block_cb_free(struct flow_block_cb *block_cb); 549 void *flow_block_cb_priv(struct flow_block_cb *block_cb); 550 void flow_block_cb_incref(struct flow_block_cb *block_cb); 556 list_add_tail(&block_cb->list, &offload->cb_list); in flow_block_cb_add() 562 list_move(&block_cb->list, &offload->cb_list); in flow_block_cb_remove() 568 list_del(&block_cb->indr.list); in flow_indr_block_cb_remove() 569 list_move(&block_cb->list, &offload->cb_list); in flow_indr_block_cb_remove() 637 void (*cleanup)(struct flow_block_cb *block_cb)); [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mediatek/ |
A D | mtk_ppe_offload.c | 556 struct flow_block_cb *block_cb; in mtk_eth_setup_tc_block() local 570 block_cb = flow_block_cb_lookup(f->block, cb, dev); in mtk_eth_setup_tc_block() 571 if (block_cb) { in mtk_eth_setup_tc_block() 572 flow_block_cb_incref(block_cb); in mtk_eth_setup_tc_block() 576 if (IS_ERR(block_cb)) in mtk_eth_setup_tc_block() 577 return PTR_ERR(block_cb); in mtk_eth_setup_tc_block() 579 flow_block_cb_add(block_cb, f); in mtk_eth_setup_tc_block() 584 if (!block_cb) in mtk_eth_setup_tc_block() 587 if (flow_block_cb_decref(block_cb)) { in mtk_eth_setup_tc_block() 588 flow_block_cb_remove(block_cb, f); in mtk_eth_setup_tc_block() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
A D | tc.c | 435 void (*cleanup)(struct flow_block_cb *block_cb)) in mlx5e_rep_indr_setup_block() argument 441 struct flow_block_cb *block_cb; in mlx5e_rep_indr_setup_block() local 487 if (IS_ERR(block_cb)) { in mlx5e_rep_indr_setup_block() 490 return PTR_ERR(block_cb); in mlx5e_rep_indr_setup_block() 492 flow_block_cb_add(block_cb, f); in mlx5e_rep_indr_setup_block() 493 list_add_tail(&block_cb->driver_list, &mlx5e_block_cb_list); in mlx5e_rep_indr_setup_block() 501 block_cb = flow_block_cb_lookup(f->block, setup_cb, indr_priv); in mlx5e_rep_indr_setup_block() 502 if (!block_cb) in mlx5e_rep_indr_setup_block() 505 flow_indr_block_cb_remove(block_cb, f); in mlx5e_rep_indr_setup_block() 506 list_del(&block_cb->driver_list); in mlx5e_rep_indr_setup_block() [all …]
|
/linux-6.3-rc2/net/netfilter/ |
A D | nf_tables_offload.c | 200 struct flow_block_cb *block_cb; in nft_setup_cb_call() local 203 list_for_each_entry(block_cb, cb_list, list) { in nft_setup_cb_call() 204 err = block_cb->cb(type, type_data, block_cb->cb_priv); in nft_setup_cb_call() 323 struct flow_block_cb *block_cb, *next; in nft_flow_offload_unbind() local 337 list_for_each_entry_safe(block_cb, next, &bo->cb_list, list) { in nft_flow_offload_unbind() 338 list_del(&block_cb->list); in nft_flow_offload_unbind() 339 flow_block_cb_free(block_cb); in nft_flow_offload_unbind() 401 struct nft_base_chain *basechain = block_cb->indr.data; in nft_indr_block_cleanup() 402 struct net_device *dev = block_cb->indr.dev; in nft_indr_block_cleanup() 412 list_del(&block_cb->driver_list); in nft_indr_block_cleanup() [all …]
|
A D | nf_flow_table_offload.c | 844 struct flow_block_cb *block_cb; in nf_flow_offload_tuple() local 855 list_for_each_entry(block_cb, block_cb_list, list) { in nf_flow_offload_tuple() 856 err = block_cb->cb(TC_SETUP_CLSFLOWER, &cls_flow, in nf_flow_offload_tuple() 857 block_cb->cb_priv); in nf_flow_offload_tuple() 1102 struct flow_block_cb *block_cb, *next; in nf_flow_table_block_setup() local 1112 list_del(&block_cb->list); in nf_flow_table_block_setup() 1113 flow_block_cb_free(block_cb); in nf_flow_table_block_setup() 1144 struct net_device *dev = block_cb->indr.dev; in nf_flow_table_indr_cleanup() 1148 list_del(&block_cb->list); in nf_flow_table_indr_cleanup() 1149 list_del(&block_cb->driver_list); in nf_flow_table_indr_cleanup() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/flower/ |
A D | offload.c | 1773 struct flow_block_cb *block_cb; in nfp_flower_setup_tc_block() local 1790 if (IS_ERR(block_cb)) in nfp_flower_setup_tc_block() 1791 return PTR_ERR(block_cb); in nfp_flower_setup_tc_block() 1793 flow_block_cb_add(block_cb, f); in nfp_flower_setup_tc_block() 1800 if (!block_cb) in nfp_flower_setup_tc_block() 1804 list_del(&block_cb->driver_list); in nfp_flower_setup_tc_block() 1871 struct flow_block_cb *block_cb; in nfp_flower_setup_indr_tc_block() local 1900 if (IS_ERR(block_cb)) { in nfp_flower_setup_indr_tc_block() 1903 return PTR_ERR(block_cb); in nfp_flower_setup_indr_tc_block() 1906 flow_block_cb_add(block_cb, f); in nfp_flower_setup_indr_tc_block() [all …]
|
A D | main.h | 677 void (*cleanup)(struct flow_block_cb *block_cb));
|
/linux-6.3-rc2/net/sched/ |
A D | cls_api.c | 777 block_cb->indr.binder_type, in tc_block_indr_cleanup() 782 list_del(&block_cb->driver_list); in tc_block_indr_cleanup() 1576 block_cb->cb_priv, true, in tcf_block_bind() 1593 list_del(&block_cb->list); in tcf_block_bind() 1595 block_cb->cb_priv, false, in tcf_block_bind() 1601 flow_block_cb_free(block_cb); in tcf_block_bind() 1616 block_cb->cb_priv, false, in tcf_block_unbind() 1619 list_del(&block_cb->list); in tcf_block_unbind() 1620 flow_block_cb_free(block_cb); in tcf_block_unbind() 3470 struct flow_block_cb *block_cb; in __tc_setup_cb_call() local [all …]
|
A D | act_ct.c | 333 struct flow_block_cb *block_cb, *tmp_cb; in tcf_ct_flow_table_cleanup_work() local 344 list_for_each_entry_safe(block_cb, tmp_cb, &block->cb_list, list) { in tcf_ct_flow_table_cleanup_work() 345 list_del(&block_cb->list); in tcf_ct_flow_table_cleanup_work() 346 flow_block_cb_free(block_cb); in tcf_ct_flow_table_cleanup_work()
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-switch.c | 1313 struct flow_block_cb *block_cb; in dpaa2_switch_setup_tc_block_bind() local 1321 if (!block_cb) { in dpaa2_switch_setup_tc_block_bind() 1330 if (IS_ERR(block_cb)) in dpaa2_switch_setup_tc_block_bind() 1331 return PTR_ERR(block_cb); in dpaa2_switch_setup_tc_block_bind() 1338 flow_block_cb_incref(block_cb); in dpaa2_switch_setup_tc_block_bind() 1344 flow_block_cb_add(block_cb, f); in dpaa2_switch_setup_tc_block_bind() 1353 flow_block_cb_free(block_cb); in dpaa2_switch_setup_tc_block_bind() 1363 struct flow_block_cb *block_cb; in dpaa2_switch_setup_tc_block_unbind() local 1369 if (!block_cb) in dpaa2_switch_setup_tc_block_unbind() 1375 flow_block_cb_remove(block_cb, f); in dpaa2_switch_setup_tc_block_unbind() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_tc.c | 1904 void (*cleanup)(struct flow_block_cb *block_cb)) in bnxt_tc_setup_indr_block() argument 1907 struct flow_block_cb *block_cb; in bnxt_tc_setup_indr_block() local 1926 if (IS_ERR(block_cb)) { in bnxt_tc_setup_indr_block() 1929 return PTR_ERR(block_cb); in bnxt_tc_setup_indr_block() 1932 flow_block_cb_add(block_cb, f); in bnxt_tc_setup_indr_block() 1933 list_add_tail(&block_cb->driver_list, &bnxt_block_cb_list); in bnxt_tc_setup_indr_block() 1940 block_cb = flow_block_cb_lookup(f->block, in bnxt_tc_setup_indr_block() 1943 if (!block_cb) in bnxt_tc_setup_indr_block() 1946 flow_indr_block_cb_remove(block_cb, f); in bnxt_tc_setup_indr_block() 1947 list_del(&block_cb->driver_list); in bnxt_tc_setup_indr_block() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mscc/ |
A D | ocelot_net.c | 439 struct flow_block_cb *block_cb; in ocelot_setup_tc_block() local 458 block_cb = flow_block_cb_alloc(cb, priv, priv, NULL); in ocelot_setup_tc_block() 459 if (IS_ERR(block_cb)) in ocelot_setup_tc_block() 460 return PTR_ERR(block_cb); in ocelot_setup_tc_block() 462 flow_block_cb_add(block_cb, f); in ocelot_setup_tc_block() 463 list_add_tail(&block_cb->driver_list, f->driver_block_list); in ocelot_setup_tc_block() 466 block_cb = flow_block_cb_lookup(f->block, cb, priv); in ocelot_setup_tc_block() 467 if (!block_cb) in ocelot_setup_tc_block() 470 flow_block_cb_remove(block_cb, f); in ocelot_setup_tc_block() 471 list_del(&block_cb->driver_list); in ocelot_setup_tc_block()
|
/linux-6.3-rc2/net/dsa/ |
A D | slave.c | 1589 struct flow_block_cb *block_cb; in dsa_slave_setup_tc_block() local 1606 block_cb = flow_block_cb_alloc(cb, dev, dev, NULL); in dsa_slave_setup_tc_block() 1607 if (IS_ERR(block_cb)) in dsa_slave_setup_tc_block() 1608 return PTR_ERR(block_cb); in dsa_slave_setup_tc_block() 1610 flow_block_cb_add(block_cb, f); in dsa_slave_setup_tc_block() 1611 list_add_tail(&block_cb->driver_list, &dsa_slave_block_cb_list); in dsa_slave_setup_tc_block() 1614 block_cb = flow_block_cb_lookup(f->block, cb, dev); in dsa_slave_setup_tc_block() 1615 if (!block_cb) in dsa_slave_setup_tc_block() 1618 flow_block_cb_remove(block_cb, f); in dsa_slave_setup_tc_block() 1619 list_del(&block_cb->driver_list); in dsa_slave_setup_tc_block()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A D | ice_main.c | 81 void (*cleanup)(struct flow_block_cb *block_cb)); 9079 void (*cleanup)(struct flow_block_cb *block_cb)) in ice_indr_setup_tc_block() argument 9082 struct flow_block_cb *block_cb; in ice_indr_setup_tc_block() local 9106 block_cb = in ice_indr_setup_tc_block() 9113 if (IS_ERR(block_cb)) { in ice_indr_setup_tc_block() 9116 return PTR_ERR(block_cb); in ice_indr_setup_tc_block() 9118 flow_block_cb_add(block_cb, f); in ice_indr_setup_tc_block() 9126 block_cb = flow_block_cb_lookup(f->block, in ice_indr_setup_tc_block() 9129 if (!block_cb) in ice_indr_setup_tc_block() 9132 flow_indr_block_cb_remove(block_cb, f); in ice_indr_setup_tc_block() [all …]
|