net/mlx5: convert port id action to indexed