id->awupf = 0;
 
        id->sgls = cpu_to_le32(1 << 0); /* we always support SGLs */
-       if (ctrl->ops->has_keyed_sgls)
+       if (ctrl->ops->flags & NVMF_KEYED_SGLS)
                id->sgls |= cpu_to_le32(1 << 2);
        if (req->port->inline_data_size)
                id->sgls |= cpu_to_le32(1 << 20);
 
         * If the user requested PI support and the transport isn't pi capable,
         * don't enable the port.
         */
-       if (port->pi_enable && !ops->metadata_support) {
+       if (port->pi_enable && !(ops->flags & NVMF_METADATA_SUPPORTED)) {
                pr_err("T10-PI is not supported by transport type %d\n",
                       port->disc_addr.trtype);
                ret = -EINVAL;
 
        id->maxcmd = cpu_to_le16(NVMET_MAX_CMD);
 
        id->sgls = cpu_to_le32(1 << 0); /* we always support SGLs */
-       if (ctrl->ops->has_keyed_sgls)
+       if (ctrl->ops->flags & NVMF_KEYED_SGLS)
                id->sgls |= cpu_to_le32(1 << 2);
        if (req->port->inline_data_size)
                id->sgls |= cpu_to_le32(1 << 20);
 
        struct module *owner;
        unsigned int type;
        unsigned int msdbd;
-       bool has_keyed_sgls : 1;
-       bool metadata_support : 1;
+       unsigned int flags;
+#define NVMF_KEYED_SGLS                        (1 << 0)
+#define NVMF_METADATA_SUPPORTED                (1 << 1)
        void (*queue_response)(struct nvmet_req *req);
        int (*add_port)(struct nvmet_port *port);
        void (*remove_port)(struct nvmet_port *port);
 
        .owner                  = THIS_MODULE,
        .type                   = NVMF_TRTYPE_RDMA,
        .msdbd                  = 1,
-       .has_keyed_sgls         = 1,
-       .metadata_support       = 1,
+       .flags                  = NVMF_KEYED_SGLS | NVMF_METADATA_SUPPORTED,
        .add_port               = nvmet_rdma_add_port,
        .remove_port            = nvmet_rdma_remove_port,
        .queue_response         = nvmet_rdma_queue_response,