IB/core: Introduce capabilitymask2 field in ClassPortInfo mad
authorErez Shitrit <erezsh@mellanox.com>
Wed, 25 May 2016 19:02:04 +0000 (22:02 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 25 May 2016 19:39:02 +0000 (15:39 -0400)
commit507f6afa3ab6c9473d81c8091be0d1b859509a6d
treee9a29d25037416c8947cef0c197ea81f8d31ac21
parentc16d2750a08c8ccaf98d65f287a8aec91bb9610d
IB/core: Introduce capabilitymask2 field in ClassPortInfo mad

Change struct ib_class_port_info to conform to IB Spec 1.3
That in order to get specific capability mask from ClassPortInfo mad.

>From the IB Spec, ClassPortInfo section:
        "CapabilityMask2 Bits 0-26: Additional class-specific capabilities...
         RespTimeValue the rest 5 bits"

The new struct now has one field for capabilitymask2 (previously was the
reserved field) and the resp_time field.

And it fixes up qib and srpt, use of the field repurposed to be used as
capabilitymask2:
IB/qib: Change pma_get_classportinfo
IB/srpt: Adjust the use of ib_class_port_info

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_mad.c
drivers/infiniband/ulp/srpt/ib_srpt.c
include/rdma/ib_mad.h