瀏覽代碼

[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 14 年之前
父節點
當前提交
58b6794c11
共有 3 個文件被更改,包括 3 次插入3 次删除
  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 查看文件

@@ -31,7 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
31 31
 #define IB_QPN_BROADCAST 0xffffffUL
32 32
 
33 33
 /** Default Infiniband partition key */
34
-#define IB_PKEY_NONE 0xffff
34
+#define IB_PKEY_DEFAULT 0xffff
35 35
 
36 36
 /**
37 37
  * Maximum payload size

+ 1
- 1
src/net/infiniband.c 查看文件

@@ -867,7 +867,7 @@ struct ib_device * alloc_ibdev ( size_t priv_size ) {
867 867
 		INIT_LIST_HEAD ( &ibdev->qps );
868 868
 		ibdev->port_state = IB_PORT_STATE_DOWN;
869 869
 		ibdev->lid = IB_LID_NONE;
870
-		ibdev->pkey = IB_PKEY_NONE;
870
+		ibdev->pkey = IB_PKEY_DEFAULT;
871 871
 	}
872 872
 	return ibdev;
873 873
 }

+ 1
- 1
src/net/infiniband/ib_srp.c 查看文件

@@ -218,7 +218,7 @@ static int ib_srp_parse_pkey ( const char *rp_comp,
218 218
 			       struct ib_srp_root_path *rp ) {
219 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 222
 		return pkey;
223 223
 	rp->ib->pkey = pkey;
224 224
 	return 0;

Loading…
取消
儲存