[IPoIB] Add port number to IBAT_PORT_RECORD to allow SDP to prepost receives.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 11 Sep 2006 18:51:54 +0000 (18:51 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 11 Sep 2006 18:51:54 +0000 (18:51 +0000)
Submitted by Tzachi Dar (tzachid@mellanox.co.il)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@492 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

inc/iba/ib_at_ioctl.h
ulp/ipoib/kernel/ipoib_ibat.c

index b27d5b2..2cfa247 100644 (file)
@@ -39,7 +39,7 @@
 #define        _IB_AT_IOCTL_H_\r
 \r
 \r
-#define        IBAT_IOCTL_VERSION              3\r
+#define        IBAT_IOCTL_VERSION              4\r
 \r
 #define        IBAT_MAC_LEN                    6\r
 \r
@@ -56,6 +56,8 @@ typedef struct _IBAT_PORT_RECORD
 {\r
        UINT64                          CaGuid;\r
        UINT64                          PortGuid;\r
+       UINT8                           PortNum;\r
+\r
 } IBAT_PORT_RECORD;\r
 \r
 typedef struct _IOCTL_IBAT_PORTS_IN\r
index aeb0e57..8129709 100644 (file)
@@ -141,6 +141,7 @@ __ibat_get_ports(
                pAdapter = CONTAINING_RECORD( pItem, ipoib_adapter_t, entry );\r
                pOut->Ports[pOut->NumPorts].CaGuid = pAdapter->guids.ca_guid;\r
                pOut->Ports[pOut->NumPorts].PortGuid = pAdapter->guids.port_guid;\r
+               pOut->Ports[pOut->NumPorts].PortNum = pAdapter->guids.port_num;\r
                pOut->NumPorts++;\r
 \r
                pItem = cl_qlist_next( pItem );\r