[ofa-general] [PATCH] IB/mlx4: forward congestion class MADs to the HCA

Hal Rosenstock hrosenstock at xsigo.com
Wed Jun 18 14:10:12 PDT 2008


Eli,

On Wed, 2008-06-18 at 21:53 +0300, Eli Cohen wrote:
> >From e24d6092ee43d2bb632380ac1885348dc9b06113 Mon Sep 17 00:00:00 2001
> From: Eli Cohen <eli at mellanox.co.il>
> Date: Wed, 18 Jun 2008 18:59:33 +0300
> Subject: [PATCH] IB/mlx4: forward congestion class MADs to the HCA
> 
> mlx4 supports IB_MGMT_CLASS_CONG_MGMT management class so make MADs
> bearing this management class processed by the HCA through MAD_IFC.

Does the current MLX4 firmware support CC ?

Also, just wondering if the intention is to head towards cc agent
support as well ?

-- Hal

> Signed-off-by: Eli Cohen <eli at mellanox.co.il>
> ---
>  drivers/infiniband/hw/mlx4/mad.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/infiniband/hw/mlx4/mad.c b/drivers/infiniband/hw/mlx4/mad.c
> index 4c1e72f..cdca3a5 100644
> --- a/drivers/infiniband/hw/mlx4/mad.c
> +++ b/drivers/infiniband/hw/mlx4/mad.c
> @@ -255,7 +255,8 @@ int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags,	u8 port_num,
>  			return IB_MAD_RESULT_SUCCESS;
>  	} else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT ||
>  		   in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS1   ||
> -		   in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS2) {
> +		   in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS2   ||
> +		   in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_CONG_MGMT) {
>  		if (in_mad->mad_hdr.method  != IB_MGMT_METHOD_GET &&
>  		    in_mad->mad_hdr.method  != IB_MGMT_METHOD_SET)
>  			return IB_MAD_RESULT_SUCCESS;




More information about the general mailing list