]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
libibumad: add new link_layer field
authorSean Hefty <sean.hefty@intel.com>
Tue, 8 Jun 2010 21:29:50 +0000 (21:29 +0000)
committerSean Hefty <sean.hefty@intel.com>
Tue, 8 Jun 2010 21:29:50 +0000 (21:29 +0000)
Update libibumad to include a link_layer field as part of the port structure.  This updates the definition to match linux and is needed for the ib-diag port.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2821 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/libibumad/include/infiniband/umad.h
trunk/ulp/libibumad/src/umad.cpp

index 8d14fc16b16081581c6dddaeb28bb4678b640ed8..712d021337acd34809e4d4409d303ce431223c3f 100644 (file)
@@ -111,6 +111,7 @@ typedef struct umad_port
        uint64_t                port_guid;\r
        unsigned                pkeys_size;\r
        uint16_t                *pkeys;\r
+       char                    link_layer[UMAD_CA_NAME_LEN];\r
 \r
 }      umad_port_t;\r
 \r
index 4152b4197814ae9421e6db898c2905be9222b0ae..3ec19360ba37bc0e182ec2b868bd8c4cda899c0c 100644 (file)
@@ -161,6 +161,8 @@ static int umad_query_port(struct ibv_context *context, umad_port_t *port)
                }\r
        }\r
 \r
+       sprintf(port->link_layer, "IB");\r
+\r
        return 0;\r
 }\r
 \r