diff options
author | Parav Pandit <parav@mellanox.com> | 2018-07-29 11:53:12 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-30 20:49:04 -0600 |
commit | 05e0b86c413dc09454229f070eb6d2016340f602 (patch) | |
tree | 1b6990cf85cd2419dd6788da9891edf2e94a7634 /drivers/infiniband/core/cma.c | |
parent | e7ff98aefc9e532a2067d5a2112a23902726e9a3 (diff) | |
download | linux-stable-05e0b86c413dc09454229f070eb6d2016340f602.tar.gz linux-stable-05e0b86c413dc09454229f070eb6d2016340f602.tar.bz2 linux-stable-05e0b86c413dc09454229f070eb6d2016340f602.zip |
RDMA/cma: Get rid of 1 bit boolean
Arrange fields of cma_req_info structure for efficiency on
stack and get rid of one bit boolean field.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
-rw-r--r-- | drivers/infiniband/core/cma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 5571f8d52302..5ffd3899dac2 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -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) |