Home
last modified time | relevance | path

Searched refs:dl_port_index (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Ddevlink.c48 unsigned int dl_port_index; in mlx5e_devlink_port_register() local
58 dl_port_index = mlx5_esw_vport_to_devlink_port_index(mdev, in mlx5e_devlink_port_register()
62 dl_port_index = mlx5_esw_vport_to_devlink_port_index(mdev, 0); in mlx5e_devlink_port_register()
68 dl_port_index); in mlx5e_devlink_port_register()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c154 unsigned int dl_port_index; in mlx5_esw_offloads_devlink_port_register() local
170 dl_port_index = mlx5_esw_vport_to_devlink_port_index(dev, vport_num); in mlx5_esw_offloads_devlink_port_register()
171 err = devl_port_register_with_ops(devlink, &dl_port->dl_port, dl_port_index, ops); in mlx5_esw_offloads_devlink_port_register()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c66 unsigned int dl_port_index; in mlx5_sf_alloc() local
90 dl_port_index = mlx5_esw_vport_to_devlink_port_index(table->dev, hw_fn_id); in mlx5_sf_alloc()
91 sf->port_index = dl_port_index; in mlx5_sf_alloc()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.h660 mlx5_esw_devlink_port_index_to_vport_num(unsigned int dl_port_index) in mlx5_esw_devlink_port_index_to_vport_num() argument
662 return dl_port_index & 0xffff; in mlx5_esw_devlink_port_index_to_vport_num()