Lines Matching refs:rif_index
59 u16 rif_index; member
174 static int mlxsw_sp_rif_counter_edit(struct mlxsw_sp *mlxsw_sp, u16 rif_index, in mlxsw_sp_rif_counter_edit() argument
184 mlxsw_reg_ritr_rif_pack(ritr_pl, rif_index); in mlxsw_sp_rif_counter_edit()
248 err = mlxsw_sp_rif_counter_edit(mlxsw_sp, rif->rif_index, in mlxsw_sp_rif_counter_alloc()
274 mlxsw_sp_rif_counter_edit(mlxsw_sp, rif->rif_index, in mlxsw_sp_rif_counter_free()
1548 rif->rif_index, rif->vr_id, rif->dev->mtu); in mlxsw_sp_rif_ipip_lb_op()
2228 neigh_entry = mlxsw_sp_neigh_entry_alloc(mlxsw_sp, n, rif->rif_index); in mlxsw_sp_neigh_entry_create()
3431 u16 rif_index; in __mlxsw_sp_nexthop_eth_update() local
3433 rif_index = nh->rif ? nh->rif->rif_index : in __mlxsw_sp_nexthop_eth_update()
3438 adj_index, rif_index); in __mlxsw_sp_nexthop_eth_update()
5814 u16 rif_index = 0; in mlxsw_sp_fib_entry_op_local() local
5818 rif_index = rif->rif_index; in mlxsw_sp_fib_entry_op_local()
5825 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, trap_id, rif_index); in mlxsw_sp_fib_entry_op_local()
7872 mlxsw_sp_router_rif_disable(mlxsw_sp, rif->rif_index); in mlxsw_sp_router_rif_gone_sync()
7955 static struct mlxsw_sp_rif *mlxsw_sp_rif_alloc(size_t rif_size, u16 rif_index, in mlxsw_sp_rif_alloc() argument
7973 rif->rif_index = rif_index; in mlxsw_sp_rif_alloc()
7979 u16 rif_index) in mlxsw_sp_rif_by_index() argument
7981 return mlxsw_sp->router->rifs[rif_index]; in mlxsw_sp_rif_by_index()
7986 return rif->rif_index; in mlxsw_sp_rif_index()
7991 return lb_rif->common.rif_index; in mlxsw_sp_ipip_lb_rif_index()
8032 u16 rif_index; in mlxsw_sp_rif_create() local
8043 err = mlxsw_sp_rif_index_alloc(mlxsw_sp, &rif_index); in mlxsw_sp_rif_create()
8049 rif = mlxsw_sp_rif_alloc(ops->rif_size, rif_index, vr->id, params->dev); in mlxsw_sp_rif_create()
8055 mlxsw_sp->router->rifs[rif_index] = rif; in mlxsw_sp_rif_create()
8093 mlxsw_sp->router->rifs[rif_index] = NULL; in mlxsw_sp_rif_create()
8121 mlxsw_sp->router->rifs[rif->rif_index] = NULL; in mlxsw_sp_rif_destroy()
8434 static int mlxsw_sp_rif_vrrp_op(struct mlxsw_sp *mlxsw_sp, u16 rif_index, in mlxsw_sp_rif_vrrp_op() argument
8445 mlxsw_reg_ritr_rif_pack(ritr_pl, rif_index); in mlxsw_sp_rif_vrrp_op()
8477 err = mlxsw_sp_rif_vrrp_op(mlxsw_sp, rif->rif_index, in mlxsw_sp_rif_macvlan_add()
8508 mlxsw_sp_rif_vrrp_op(mlxsw_sp, rif->rif_index, macvlan_dev->dev_addr, in __mlxsw_sp_rif_macvlan_del()
8732 static int mlxsw_sp_rif_edit(struct mlxsw_sp *mlxsw_sp, u16 rif_index, in mlxsw_sp_rif_edit() argument
8738 mlxsw_reg_ritr_rif_pack(ritr_pl, rif_index); in mlxsw_sp_rif_edit()
8763 err = mlxsw_sp_rif_edit(mlxsw_sp, rif->rif_index, dev->dev_addr, in mlxsw_sp_router_port_change_event()
8789 netdev_dbg(dev, "Updated RIF=%d\n", rif->rif_index); in mlxsw_sp_router_port_change_event()
8794 mlxsw_sp_rif_edit(mlxsw_sp, rif->rif_index, rif->addr, rif->mtu); in mlxsw_sp_router_port_change_event()
8950 rif->rif_index, rif->vr_id, rif->dev->mtu); in mlxsw_sp_rif_subport_op()
8996 return mlxsw_sp_fid_rfid_get(rif->mlxsw_sp, rif->rif_index); in mlxsw_sp_rif_subport_fid_get()
9015 mlxsw_reg_ritr_pack(ritr_pl, enable, type, rif->rif_index, rif->vr_id, in mlxsw_sp_rif_vlan_fid_op()
9248 ul_rif->rif_index, ul_rif->vr_id, IP_MAX_MTU); in mlxsw_sp_rif_ipip_lb_ul_rif_op()
9260 u16 rif_index; in mlxsw_sp_ul_rif_create() local
9263 err = mlxsw_sp_rif_index_alloc(mlxsw_sp, &rif_index); in mlxsw_sp_ul_rif_create()
9269 ul_rif = mlxsw_sp_rif_alloc(sizeof(*ul_rif), rif_index, vr->id, NULL); in mlxsw_sp_ul_rif_create()
9273 mlxsw_sp->router->rifs[rif_index] = ul_rif; in mlxsw_sp_ul_rif_create()
9282 mlxsw_sp->router->rifs[rif_index] = NULL; in mlxsw_sp_ul_rif_create()
9292 mlxsw_sp->router->rifs[ul_rif->rif_index] = NULL; in mlxsw_sp_ul_rif_destroy()
9353 *ul_rif_index = ul_rif->rif_index; in mlxsw_sp_router_ul_rif_get()
9386 err = mlxsw_sp_rif_ipip_lb_op(lb_rif, 0, ul_rif->rif_index, true); in mlxsw_sp2_rif_ipip_lb_configure()
9391 lb_rif->ul_rif_id = ul_rif->rif_index; in mlxsw_sp2_rif_ipip_lb_configure()