Lines Matching refs:rif_index

59 	u16 rif_index;  member
170 static int mlxsw_sp_rif_counter_edit(struct mlxsw_sp *mlxsw_sp, u16 rif_index, in mlxsw_sp_rif_counter_edit() argument
180 mlxsw_reg_ritr_rif_pack(ritr_pl, rif_index); in mlxsw_sp_rif_counter_edit()
244 err = mlxsw_sp_rif_counter_edit(mlxsw_sp, rif->rif_index, in mlxsw_sp_rif_counter_alloc()
270 mlxsw_sp_rif_counter_edit(mlxsw_sp, rif->rif_index, in mlxsw_sp_rif_counter_free()
1443 rif->rif_index, rif->vr_id, rif->dev->mtu); in mlxsw_sp_rif_ipip_lb_op()
2123 neigh_entry = mlxsw_sp_neigh_entry_alloc(mlxsw_sp, n, rif->rif_index); in mlxsw_sp_neigh_entry_create()
4307 static int mlxsw_sp_adj_discard_write(struct mlxsw_sp *mlxsw_sp, u16 rif_index) in mlxsw_sp_adj_discard_write() argument
4324 mlxsw_sp->router->adj_discard_index, rif_index); in mlxsw_sp_adj_discard_write()
4363 nh_group->nh_rif->rif_index); in mlxsw_sp_fib_entry_op_remote()
4388 u16 rif_index = 0; in mlxsw_sp_fib_entry_op_local() local
4392 rif_index = rif->rif_index; in mlxsw_sp_fib_entry_op_local()
4400 rif_index); in mlxsw_sp_fib_entry_op_local()
6355 mlxsw_sp_router_rif_disable(mlxsw_sp, rif->rif_index); in mlxsw_sp_router_rif_gone_sync()
6438 static struct mlxsw_sp_rif *mlxsw_sp_rif_alloc(size_t rif_size, u16 rif_index, in mlxsw_sp_rif_alloc() argument
6456 rif->rif_index = rif_index; in mlxsw_sp_rif_alloc()
6462 u16 rif_index) in mlxsw_sp_rif_by_index() argument
6464 return mlxsw_sp->router->rifs[rif_index]; in mlxsw_sp_rif_by_index()
6469 return rif->rif_index; in mlxsw_sp_rif_index()
6474 return lb_rif->common.rif_index; in mlxsw_sp_ipip_lb_rif_index()
6515 u16 rif_index; in mlxsw_sp_rif_create() local
6526 err = mlxsw_sp_rif_index_alloc(mlxsw_sp, &rif_index); in mlxsw_sp_rif_create()
6532 rif = mlxsw_sp_rif_alloc(ops->rif_size, rif_index, vr->id, params->dev); in mlxsw_sp_rif_create()
6538 mlxsw_sp->router->rifs[rif_index] = rif; in mlxsw_sp_rif_create()
6576 mlxsw_sp->router->rifs[rif_index] = NULL; in mlxsw_sp_rif_create()
6604 mlxsw_sp->router->rifs[rif->rif_index] = NULL; in mlxsw_sp_rif_destroy()
6887 static int mlxsw_sp_rif_vrrp_op(struct mlxsw_sp *mlxsw_sp, u16 rif_index, in mlxsw_sp_rif_vrrp_op() argument
6898 mlxsw_reg_ritr_rif_pack(ritr_pl, rif_index); in mlxsw_sp_rif_vrrp_op()
6930 err = mlxsw_sp_rif_vrrp_op(mlxsw_sp, rif->rif_index, in mlxsw_sp_rif_macvlan_add()
6961 mlxsw_sp_rif_vrrp_op(mlxsw_sp, rif->rif_index, macvlan_dev->dev_addr, in __mlxsw_sp_rif_macvlan_del()
7185 static int mlxsw_sp_rif_edit(struct mlxsw_sp *mlxsw_sp, u16 rif_index, in mlxsw_sp_rif_edit() argument
7191 mlxsw_reg_ritr_rif_pack(ritr_pl, rif_index); in mlxsw_sp_rif_edit()
7216 err = mlxsw_sp_rif_edit(mlxsw_sp, rif->rif_index, dev->dev_addr, in mlxsw_sp_router_port_change_event()
7242 netdev_dbg(dev, "Updated RIF=%d\n", rif->rif_index); in mlxsw_sp_router_port_change_event()
7247 mlxsw_sp_rif_edit(mlxsw_sp, rif->rif_index, rif->addr, rif->mtu); in mlxsw_sp_router_port_change_event()
7403 rif->rif_index, rif->vr_id, rif->dev->mtu); in mlxsw_sp_rif_subport_op()
7449 return mlxsw_sp_fid_rfid_get(rif->mlxsw_sp, rif->rif_index); in mlxsw_sp_rif_subport_fid_get()
7468 mlxsw_reg_ritr_pack(ritr_pl, enable, type, rif->rif_index, rif->vr_id, in mlxsw_sp_rif_vlan_fid_op()
7701 ul_rif->rif_index, ul_rif->vr_id, IP_MAX_MTU); in mlxsw_sp_rif_ipip_lb_ul_rif_op()
7713 u16 rif_index; in mlxsw_sp_ul_rif_create() local
7716 err = mlxsw_sp_rif_index_alloc(mlxsw_sp, &rif_index); in mlxsw_sp_ul_rif_create()
7722 ul_rif = mlxsw_sp_rif_alloc(sizeof(*ul_rif), rif_index, vr->id, NULL); in mlxsw_sp_ul_rif_create()
7726 mlxsw_sp->router->rifs[rif_index] = ul_rif; in mlxsw_sp_ul_rif_create()
7735 mlxsw_sp->router->rifs[rif_index] = NULL; in mlxsw_sp_ul_rif_create()
7745 mlxsw_sp->router->rifs[ul_rif->rif_index] = NULL; in mlxsw_sp_ul_rif_destroy()
7806 *ul_rif_index = ul_rif->rif_index; in mlxsw_sp_router_ul_rif_get()
7839 err = mlxsw_sp_rif_ipip_lb_op(lb_rif, 0, ul_rif->rif_index, true); in mlxsw_sp2_rif_ipip_lb_configure()
7844 lb_rif->ul_rif_id = ul_rif->rif_index; in mlxsw_sp2_rif_ipip_lb_configure()