Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[infiniband] Rename IB_PKEY_NONE to IB_PKEY_DEFAULT
There is no such thing as a non-existent partition.
  • Loading branch information
Michael Brown committed Nov 16, 2009
1 parent bbc530c commit 58b6794
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/include/gpxe/infiniband.h
Expand Up @@ -31,7 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define IB_QPN_BROADCAST 0xffffffUL

/** Default Infiniband partition key */
#define IB_PKEY_NONE 0xffff
#define IB_PKEY_DEFAULT 0xffff

/**
* Maximum payload size
Expand Down
2 changes: 1 addition & 1 deletion src/net/infiniband.c
Expand Up @@ -867,7 +867,7 @@ struct ib_device * alloc_ibdev ( size_t priv_size ) {
INIT_LIST_HEAD ( &ibdev->qps );
ibdev->port_state = IB_PORT_STATE_DOWN;
ibdev->lid = IB_LID_NONE;
ibdev->pkey = IB_PKEY_NONE;
ibdev->pkey = IB_PKEY_DEFAULT;
}
return ibdev;
}
Expand Down
2 changes: 1 addition & 1 deletion src/net/infiniband/ib_srp.c
Expand Up @@ -218,7 +218,7 @@ static int ib_srp_parse_pkey ( const char *rp_comp,
struct ib_srp_root_path *rp ) {
int pkey;

if ( ( pkey = ib_srp_parse_integer ( rp_comp, IB_PKEY_NONE ) ) < 0 )
if ( ( pkey = ib_srp_parse_integer ( rp_comp, IB_PKEY_DEFAULT ) ) < 0 )
return pkey;
rp->ib->pkey = pkey;
return 0;
Expand Down

0 comments on commit 58b6794

Please sign in to comment.