Lines Matching refs:ll_ops
377 mlxsw_sp_fib_entry_priv_create(const struct mlxsw_sp_router_ll_ops *ll_ops) in mlxsw_sp_fib_entry_priv_create() argument
381 if (!ll_ops->fib_entry_priv_size) in mlxsw_sp_fib_entry_priv_create()
385 priv = kzalloc(sizeof(*priv) + ll_ops->fib_entry_priv_size, GFP_KERNEL); in mlxsw_sp_fib_entry_priv_create()
470 const struct mlxsw_sp_router_ll_ops *ll_ops; member
514 const struct mlxsw_sp_router_ll_ops *ll_ops = mlxsw_sp->router->proto_ll_ops[proto]; in mlxsw_sp_fib_create() local
519 err = ll_ops->init(mlxsw_sp, vr->id, proto); in mlxsw_sp_fib_create()
534 fib->ll_ops = ll_ops; in mlxsw_sp_fib_create()
573 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_alloc() argument
581 return ll_ops->ralta_write(mlxsw_sp, xralta_pl); in mlxsw_sp_lpm_tree_alloc()
585 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_free() argument
593 ll_ops->ralta_write(mlxsw_sp, xralta_pl); in mlxsw_sp_lpm_tree_free()
598 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_left_struct_set() argument
618 return ll_ops->ralst_write(mlxsw_sp, xralst_pl); in mlxsw_sp_lpm_tree_left_struct_set()
623 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_create() argument
634 err = mlxsw_sp_lpm_tree_alloc(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_create()
638 err = mlxsw_sp_lpm_tree_left_struct_set(mlxsw_sp, ll_ops, prefix_usage, lpm_tree); in mlxsw_sp_lpm_tree_create()
649 mlxsw_sp_lpm_tree_free(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_create()
654 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_destroy() argument
657 mlxsw_sp_lpm_tree_free(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_destroy()
665 const struct mlxsw_sp_router_ll_ops *ll_ops = mlxsw_sp->router->proto_ll_ops[proto]; in mlxsw_sp_lpm_tree_get() local
679 return mlxsw_sp_lpm_tree_create(mlxsw_sp, ll_ops, prefix_usage, proto); in mlxsw_sp_lpm_tree_get()
690 const struct mlxsw_sp_router_ll_ops *ll_ops = in mlxsw_sp_lpm_tree_put() local
694 mlxsw_sp_lpm_tree_destroy(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_put()
789 return fib->ll_ops->raltb_write(mlxsw_sp, xraltb_pl); in mlxsw_sp_vr_lpm_tree_bind()
800 return fib->ll_ops->raltb_write(mlxsw_sp, xraltb_pl); in mlxsw_sp_vr_lpm_tree_unbind()
5709 fib->ll_ops->fib_entry_pack(op_ctx, fib->proto, op, fib->vr->id, in mlxsw_sp_fib_entry_pack()
5717 const struct mlxsw_sp_router_ll_ops *ll_ops) in mlxsw_sp_fib_entry_commit() argument
5722 err = ll_ops->fib_entry_commit(mlxsw_sp, op_ctx, &postponed_for_bulk); in mlxsw_sp_fib_entry_commit()
5768 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_remote() local
5798 ll_ops->fib_entry_act_remote_pack(op_ctx, trap_action, trap_id, in mlxsw_sp_fib_entry_op_remote()
5800 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_remote()
5808 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_local() local
5823 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, trap_id, rif_index); in mlxsw_sp_fib_entry_op_local()
5824 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_local()
5832 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_trap() local
5835 ll_ops->fib_entry_act_ip2me_pack(op_ctx); in mlxsw_sp_fib_entry_op_trap()
5836 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_trap()
5844 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_blackhole() local
5849 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, 0, 0); in mlxsw_sp_fib_entry_op_blackhole()
5850 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_blackhole()
5859 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_unreachable() local
5867 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, trap_id, 0); in mlxsw_sp_fib_entry_op_unreachable()
5868 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_unreachable()
5877 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_ipip_decap() local
5892 ll_ops->fib_entry_act_ip2me_tun_pack(op_ctx, in mlxsw_sp_fib_entry_op_ipip_decap()
5894 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_ipip_decap()
5902 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_nve_decap() local
5905 ll_ops->fib_entry_act_ip2me_tun_pack(op_ctx, in mlxsw_sp_fib_entry_op_nve_decap()
5907 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_nve_decap()
5972 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_del() local
5974 if (!ll_ops->fib_entry_is_committed(fib_entry->priv)) in mlxsw_sp_fib_entry_del()
6065 fib_entry->priv = mlxsw_sp_fib_entry_priv_create(fib_node->fib->ll_ops); in mlxsw_sp_fib4_entry_create()
6935 fib_entry->priv = mlxsw_sp_fib_entry_priv_create(fib_node->fib->ll_ops); in mlxsw_sp_fib6_entry_create()