Browse Source

[infiniband] Rename IB_PKEY_NONE to IB_PKEY_DEFAULT

There is no such thing as a non-existent partition.
tags/v1.0.0-rc1
Michael Brown 15 years ago
parent
commit
58b6794c11
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/include/gpxe/infiniband.h
  2. 1
    1
      src/net/infiniband.c
  3. 1
    1
      src/net/infiniband/ib_srp.c

+ 1
- 1
src/include/gpxe/infiniband.h View File

31
 #define IB_QPN_BROADCAST 0xffffffUL
31
 #define IB_QPN_BROADCAST 0xffffffUL
32
 
32
 
33
 /** Default Infiniband partition key */
33
 /** Default Infiniband partition key */
34
-#define IB_PKEY_NONE 0xffff
34
+#define IB_PKEY_DEFAULT 0xffff
35
 
35
 
36
 /**
36
 /**
37
  * Maximum payload size
37
  * Maximum payload size

+ 1
- 1
src/net/infiniband.c View File

867
 		INIT_LIST_HEAD ( &ibdev->qps );
867
 		INIT_LIST_HEAD ( &ibdev->qps );
868
 		ibdev->port_state = IB_PORT_STATE_DOWN;
868
 		ibdev->port_state = IB_PORT_STATE_DOWN;
869
 		ibdev->lid = IB_LID_NONE;
869
 		ibdev->lid = IB_LID_NONE;
870
-		ibdev->pkey = IB_PKEY_NONE;
870
+		ibdev->pkey = IB_PKEY_DEFAULT;
871
 	}
871
 	}
872
 	return ibdev;
872
 	return ibdev;
873
 }
873
 }

+ 1
- 1
src/net/infiniband/ib_srp.c View File

218
 			       struct ib_srp_root_path *rp ) {
218
 			       struct ib_srp_root_path *rp ) {
219
 	int pkey;
219
 	int pkey;
220
 
220
 
221
-	if ( ( pkey = ib_srp_parse_integer ( rp_comp, IB_PKEY_NONE ) ) < 0 )
221
+	if ( ( pkey = ib_srp_parse_integer ( rp_comp, IB_PKEY_DEFAULT ) ) < 0 )
222
 		return pkey;
222
 		return pkey;
223
 	rp->ib->pkey = pkey;
223
 	rp->ib->pkey = pkey;
224
 	return 0;
224
 	return 0;

Loading…
Cancel
Save