[ofa-general][PATCH 2/11 v3] mlx4: Pre reserved Qp regions.

Yevgeny Petrilin yevgenyp at mellanox.co.il
Wed Jul 16 08:12:02 PDT 2008


Roland Dreier wrote:
>  > +int mlx4_qp_get_region(struct mlx4_dev *dev,
>  > +			enum qp_region region,
>  > +			int *base_qpn, int *cnt)
> 
> I don't seem to see any call to this in the mlx4_en driver you posted to
> netdev, nor to MLX4_QP_REGION_ETH_ADDR.  Can you explain what this
> mechanism is used for?  Is this only for the FC driver?
> 
 This mechanism is currently in use by the FC driver. It can be used by the mlx4_en
driver when we add the address steering support to it.
In address steering mode, each combination of Mac-Vlan is mapped to a QP.
Thus we will need a relatively big consecutive range of QPs. Those ranges are reserved
and a call for mlx4_qp_get_region with the required region type (eth_addr, fc_addr, fc_exch)
will give the required range.

Yevgeny



More information about the general mailing list