Lines Matching refs:ll_ops

386 mlxsw_sp_fib_entry_priv_create(const struct mlxsw_sp_router_ll_ops *ll_ops)  in mlxsw_sp_fib_entry_priv_create()  argument
390 if (!ll_ops->fib_entry_priv_size) in mlxsw_sp_fib_entry_priv_create()
394 priv = kzalloc(sizeof(*priv) + ll_ops->fib_entry_priv_size, GFP_KERNEL); in mlxsw_sp_fib_entry_priv_create()
479 const struct mlxsw_sp_router_ll_ops *ll_ops; member
523 const struct mlxsw_sp_router_ll_ops *ll_ops = mlxsw_sp->router->proto_ll_ops[proto]; in mlxsw_sp_fib_create() local
528 err = ll_ops->init(mlxsw_sp, vr->id, proto); in mlxsw_sp_fib_create()
543 fib->ll_ops = ll_ops; in mlxsw_sp_fib_create()
582 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_alloc() argument
590 return ll_ops->ralta_write(mlxsw_sp, xralta_pl); in mlxsw_sp_lpm_tree_alloc()
594 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_free() argument
602 ll_ops->ralta_write(mlxsw_sp, xralta_pl); in mlxsw_sp_lpm_tree_free()
607 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_left_struct_set() argument
627 return ll_ops->ralst_write(mlxsw_sp, xralst_pl); in mlxsw_sp_lpm_tree_left_struct_set()
632 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_create() argument
643 err = mlxsw_sp_lpm_tree_alloc(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_create()
647 err = mlxsw_sp_lpm_tree_left_struct_set(mlxsw_sp, ll_ops, prefix_usage, lpm_tree); in mlxsw_sp_lpm_tree_create()
658 mlxsw_sp_lpm_tree_free(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_create()
663 const struct mlxsw_sp_router_ll_ops *ll_ops, in mlxsw_sp_lpm_tree_destroy() argument
666 mlxsw_sp_lpm_tree_free(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_destroy()
674 const struct mlxsw_sp_router_ll_ops *ll_ops = mlxsw_sp->router->proto_ll_ops[proto]; in mlxsw_sp_lpm_tree_get() local
688 return mlxsw_sp_lpm_tree_create(mlxsw_sp, ll_ops, prefix_usage, proto); in mlxsw_sp_lpm_tree_get()
699 const struct mlxsw_sp_router_ll_ops *ll_ops = in mlxsw_sp_lpm_tree_put() local
703 mlxsw_sp_lpm_tree_destroy(mlxsw_sp, ll_ops, lpm_tree); in mlxsw_sp_lpm_tree_put()
798 return fib->ll_ops->raltb_write(mlxsw_sp, xraltb_pl); in mlxsw_sp_vr_lpm_tree_bind()
809 return fib->ll_ops->raltb_write(mlxsw_sp, xraltb_pl); in mlxsw_sp_vr_lpm_tree_unbind()
5842 fib->ll_ops->fib_entry_pack(op_ctx, fib->proto, op, fib->vr->id, in mlxsw_sp_fib_entry_pack()
5850 const struct mlxsw_sp_router_ll_ops *ll_ops) in mlxsw_sp_fib_entry_commit() argument
5855 err = ll_ops->fib_entry_commit(mlxsw_sp, op_ctx, &postponed_for_bulk); in mlxsw_sp_fib_entry_commit()
5866 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_remote() local
5892 ll_ops->fib_entry_act_remote_pack(op_ctx, trap_action, trap_id, in mlxsw_sp_fib_entry_op_remote()
5894 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_remote()
5902 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_local() local
5917 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, trap_id, rif_index); in mlxsw_sp_fib_entry_op_local()
5918 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_local()
5926 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_trap() local
5929 ll_ops->fib_entry_act_ip2me_pack(op_ctx); in mlxsw_sp_fib_entry_op_trap()
5930 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_trap()
5938 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_blackhole() local
5943 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, 0, 0); in mlxsw_sp_fib_entry_op_blackhole()
5944 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_blackhole()
5953 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_op_unreachable() local
5961 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, trap_id, 0); in mlxsw_sp_fib_entry_op_unreachable()
5962 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_unreachable()
5971 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
5986 ll_ops->fib_entry_act_ip2me_tun_pack(op_ctx, in mlxsw_sp_fib_entry_op_ipip_decap()
5988 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_ipip_decap()
5996 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
5999 ll_ops->fib_entry_act_ip2me_tun_pack(op_ctx, in mlxsw_sp_fib_entry_op_nve_decap()
6001 return mlxsw_sp_fib_entry_commit(mlxsw_sp, op_ctx, ll_ops); in mlxsw_sp_fib_entry_op_nve_decap()
6066 const struct mlxsw_sp_router_ll_ops *ll_ops = fib_entry->fib_node->fib->ll_ops; in mlxsw_sp_fib_entry_del() local
6068 if (!ll_ops->fib_entry_is_committed(fib_entry->priv)) in mlxsw_sp_fib_entry_del()
6166 fib_entry->priv = mlxsw_sp_fib_entry_priv_create(fib_node->fib->ll_ops); in mlxsw_sp_fib4_entry_create()
7071 fib_entry->priv = mlxsw_sp_fib_entry_priv_create(fib_node->fib->ll_ops); in mlxsw_sp_fib6_entry_create()