Home
last modified time | relevance | path

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

/drivers/net/ethernet/mscc/
Docelot_tc.c136 struct flow_block_cb *block_cb; in ocelot_setup_tc_block() local
159 block_cb = flow_block_cb_alloc(cb, port, port, NULL); in ocelot_setup_tc_block()
160 if (IS_ERR(block_cb)) in ocelot_setup_tc_block()
161 return PTR_ERR(block_cb); in ocelot_setup_tc_block()
165 flow_block_cb_free(block_cb); in ocelot_setup_tc_block()
168 flow_block_cb_add(block_cb, f); in ocelot_setup_tc_block()
169 list_add_tail(&block_cb->driver_list, f->driver_block_list); in ocelot_setup_tc_block()
172 block_cb = flow_block_cb_lookup(f->block, cb, port); in ocelot_setup_tc_block()
173 if (!block_cb) in ocelot_setup_tc_block()
177 flow_block_cb_remove(block_cb, f); in ocelot_setup_tc_block()
[all …]
Docelot_flower.c307 struct flow_block_cb *block_cb; in ocelot_setup_tc_block_flower_bind() local
313 block_cb = flow_block_cb_lookup(f->block, in ocelot_setup_tc_block_flower_bind()
315 if (!block_cb) { in ocelot_setup_tc_block_flower_bind()
320 block_cb = flow_block_cb_alloc(ocelot_setup_tc_block_cb_flower, in ocelot_setup_tc_block_flower_bind()
323 if (IS_ERR(block_cb)) { in ocelot_setup_tc_block_flower_bind()
324 ret = PTR_ERR(block_cb); in ocelot_setup_tc_block_flower_bind()
327 flow_block_cb_add(block_cb, f); in ocelot_setup_tc_block_flower_bind()
328 list_add_tail(&block_cb->driver_list, f->driver_block_list); in ocelot_setup_tc_block_flower_bind()
330 port_block = flow_block_cb_priv(block_cb); in ocelot_setup_tc_block_flower_bind()
333 flow_block_cb_incref(block_cb); in ocelot_setup_tc_block_flower_bind()
[all …]
/drivers/net/ethernet/netronome/nfp/flower/
Doffload.c1476 struct flow_block_cb *block_cb; in nfp_flower_setup_tc_block() local
1491 block_cb = flow_block_cb_alloc(nfp_flower_setup_tc_block_cb, in nfp_flower_setup_tc_block()
1493 if (IS_ERR(block_cb)) in nfp_flower_setup_tc_block()
1494 return PTR_ERR(block_cb); in nfp_flower_setup_tc_block()
1496 flow_block_cb_add(block_cb, f); in nfp_flower_setup_tc_block()
1497 list_add_tail(&block_cb->driver_list, &nfp_block_cb_list); in nfp_flower_setup_tc_block()
1500 block_cb = flow_block_cb_lookup(f->block, in nfp_flower_setup_tc_block()
1503 if (!block_cb) in nfp_flower_setup_tc_block()
1506 flow_block_cb_remove(block_cb, f); in nfp_flower_setup_tc_block()
1507 list_del(&block_cb->driver_list); in nfp_flower_setup_tc_block()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c764 struct flow_block_cb *block_cb; in mlx5e_rep_indr_setup_tc_block() local
787 block_cb = flow_block_cb_alloc(mlx5e_rep_indr_setup_block_cb, in mlx5e_rep_indr_setup_tc_block()
790 if (IS_ERR(block_cb)) { in mlx5e_rep_indr_setup_tc_block()
793 return PTR_ERR(block_cb); in mlx5e_rep_indr_setup_tc_block()
795 flow_block_cb_add(block_cb, f); in mlx5e_rep_indr_setup_tc_block()
796 list_add_tail(&block_cb->driver_list, &mlx5e_block_cb_list); in mlx5e_rep_indr_setup_tc_block()
804 block_cb = flow_block_cb_lookup(f->block, in mlx5e_rep_indr_setup_tc_block()
807 if (!block_cb) in mlx5e_rep_indr_setup_tc_block()
810 flow_block_cb_remove(block_cb, f); in mlx5e_rep_indr_setup_tc_block()
811 list_del(&block_cb->driver_list); in mlx5e_rep_indr_setup_tc_block()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c1605 struct flow_block_cb *block_cb; in mlxsw_sp_setup_tc_block_flower_bind() local
1609 block_cb = flow_block_cb_lookup(f->block, in mlxsw_sp_setup_tc_block_flower_bind()
1612 if (!block_cb) { in mlxsw_sp_setup_tc_block_flower_bind()
1616 block_cb = flow_block_cb_alloc(mlxsw_sp_setup_tc_block_cb_flower, in mlxsw_sp_setup_tc_block_flower_bind()
1619 if (IS_ERR(block_cb)) { in mlxsw_sp_setup_tc_block_flower_bind()
1621 err = PTR_ERR(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()
1626 acl_block = flow_block_cb_priv(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()
1628 flow_block_cb_incref(block_cb); in mlxsw_sp_setup_tc_block_flower_bind()
1640 flow_block_cb_add(block_cb, f); in mlxsw_sp_setup_tc_block_flower_bind()
1641 list_add_tail(&block_cb->driver_list, &mlxsw_sp_block_cb_list); in mlxsw_sp_setup_tc_block_flower_bind()
[all …]