Skip to content

Commit

Permalink
[ipoib] Always set the "full membership" bit in the IPv4 broadcast GID
Browse files Browse the repository at this point in the history
The SM always creates the IPoIB multicast groups with full membership
partition keys.
  • Loading branch information
Michael Brown committed Nov 16, 2009
1 parent 58b6794 commit 50242e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/net/ipoib.c
Expand Up @@ -708,7 +708,8 @@ void ipoib_link_state_changed ( struct ib_device *ibdev ) {
sizeof ( mac->gid.u.half[0] ) );

/* Update broadcast GID based on potentially-new partition key */
ipoib->broadcast.gid.u.words[2] = htons ( ibdev->pkey );
ipoib->broadcast.gid.u.words[2] =
htons ( ibdev->pkey | IB_PKEY_FULL );

/* Set net device link state to reflect Infiniband link state */
rc = ib_link_rc ( ibdev );
Expand Down
3 changes: 3 additions & 0 deletions src/include/gpxe/infiniband.h
Expand Up @@ -33,6 +33,9 @@ FILE_LICENCE ( GPL2_OR_LATER );
/** Default Infiniband partition key */
#define IB_PKEY_DEFAULT 0xffff

/** Infiniband partition key full membership flag */
#define IB_PKEY_FULL 0x8000

/**
* Maximum payload size
*
Expand Down

0 comments on commit 50242e4

Please sign in to comment.