Lines Matching refs:ll_ops
447 mlxsw_sp_fib_entry_priv_create(const struct mlxsw_sp_router_ll_ops *ll_ops) in mlxsw_sp_fib_entry_priv_create() argument
451 if (!ll_ops->fib_entry_priv_size) in mlxsw_sp_fib_entry_priv_create()
455 priv = kzalloc(sizeof(*priv) + ll_ops->fib_entry_priv_size, GFP_KERNEL); in mlxsw_sp_fib_entry_priv_create()
540 const struct mlxsw_sp_router_ll_ops *ll_ops; member
584 const struct mlxsw_sp_router_ll_ops *ll_ops = mlxsw_sp->router->proto_ll_ops[proto]; in mlxsw_sp_fib_create() local
589 err = ll_ops->init(mlxsw_sp, vr->id, proto); in mlxsw_sp_fib_create()
604 fib->ll_ops = ll_ops; in mlxsw_sp_fib_create()
643 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_alloc() argument
651 return ll_ops->ralta_write(mlxsw_sp, xralta_pl); in mlxsw_sp_lpm_tree_alloc()
655 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_free() argument
663 ll_ops->ralta_write(mlxsw_sp, xralta_pl); in mlxsw_sp_lpm_tree_free()
668 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_left_struct_set() argument
688 return ll_ops->ralst_write(mlxsw_sp, xralst_pl); in mlxsw_sp_lpm_tree_left_struct_set()
693 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_create() argument
704 err = mlxsw_sp_lpm_tree_alloc(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_create()
708 err = mlxsw_sp_lpm_tree_left_struct_set(mlxsw_sp, ll_ops, prefix_usage, lpm_tree); in mlxsw_sp_lpm_tree_create()
719 mlxsw_sp_lpm_tree_free(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_create()
724 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_destroy() argument
727 mlxsw_sp_lpm_tree_free(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_destroy()
735 const struct mlxsw_sp_router_ll_ops *ll_ops = mlxsw_sp->router->proto_ll_ops[proto]; in mlxsw_sp_lpm_tree_get() local
749 return mlxsw_sp_lpm_tree_create(mlxsw_sp, ll_ops, prefix_usage, proto); in mlxsw_sp_lpm_tree_get()
760 const struct mlxsw_sp_router_ll_ops *ll_ops = in mlxsw_sp_lpm_tree_put() local
764 mlxsw_sp_lpm_tree_destroy(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_put()
859 return fib->ll_ops->raltb_write(mlxsw_sp, xraltb_pl); in mlxsw_sp_vr_lpm_tree_bind()
870 return fib->ll_ops->raltb_write(mlxsw_sp, xraltb_pl); in mlxsw_sp_vr_lpm_tree_unbind()
5905 fib->ll_ops->fib_entry_pack(op_ctx, fib->proto, op, fib->vr->id, in mlxsw_sp_fib_entry_pack()
5913 const struct mlxsw_sp_router_ll_ops *ll_ops) in mlxsw_sp_fib_entry_commit() argument
5918 err = ll_ops->fib_entry_commit(mlxsw_sp, op_ctx, &postponed_for_bulk); in mlxsw_sp_fib_entry_commit()
5929 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_remote() local
5955 ll_ops->fib_entry_act_remote_pack(op_ctx, trap_action, trap_id, in mlxsw_sp_fib_entry_op_remote()
5957 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_remote()
5965 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_local() local
5980 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, trap_id, rif_index); in mlxsw_sp_fib_entry_op_local()
5981 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_local()
5989 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_trap() local
5992 ll_ops->fib_entry_act_ip2me_pack(op_ctx); in mlxsw_sp_fib_entry_op_trap()
5993 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_trap()
6001 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_blackhole() local
6006 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, 0, 0); in mlxsw_sp_fib_entry_op_blackhole()
6007 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_blackhole()
6016 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_unreachable() local
6024 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, trap_id, 0); in mlxsw_sp_fib_entry_op_unreachable()
6025 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_unreachable()
6034 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
6049 ll_ops->fib_entry_act_ip2me_tun_pack(op_ctx, in mlxsw_sp_fib_entry_op_ipip_decap()
6051 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_ipip_decap()
6059 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
6062 ll_ops->fib_entry_act_ip2me_tun_pack(op_ctx, in mlxsw_sp_fib_entry_op_nve_decap()
6064 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_nve_decap()
6129 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_del() local
6131 if (!ll_ops->fib_entry_is_committed(fib_entry->priv)) in mlxsw_sp_fib_entry_del()
6229 fib_entry->priv = mlxsw_sp_fib_entry_priv_create(fib_node->fib->ll_ops); in mlxsw_sp_fib4_entry_create()
7152 fib_entry->priv = mlxsw_sp_fib_entry_priv_create(fib_node->fib->ll_ops); in mlxsw_sp_fib6_entry_create()