OSDN Git Service

RDMA/cma: Get rid of 1 bit boolean
authorParav Pandit <parav@mellanox.com>
Sun, 29 Jul 2018 08:53:12 +0000 (11:53 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 02:49:04 +0000 (20:49 -0600)
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>
drivers/infiniband/core/cma.c

index 5571f8d..5ffd389 100644 (file)
@@ -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)