Skip to content

Commit

Permalink
RDMA/cma: Get rid of 1 bit boolean
Browse files Browse the repository at this point in the history
Arrange fields of cma_req_info structure for efficiency on
stack and get rid of one bit boolean field.

Signed-off-by: Parav Pandit <[email protected]>
Reviewed-by: Daniel Jurgens <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
paravmellanox authored and jgunthorpe committed Jul 31, 2018
1 parent e7ff98a commit 05e0b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/infiniband/core/cma.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,11 @@ struct cma_req_info {
struct sockaddr_storage listen_addr_storage;
struct sockaddr_storage src_addr_storage;
struct ib_device *device;
int port;
union ib_gid local_gid;
__be64 service_id;
int port;
bool has_gid;
u16 pkey;
bool has_gid:1;
};

static int cma_comp(struct rdma_id_private *id_priv, enum rdma_cm_state comp)
Expand Down

0 comments on commit 05e0b86

Please sign in to comment.