Commit 1e79d219 authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Tomasz Zawadzki
Browse files

bdev/nvme: Use bitfields to pack a few flags of struct nvme_ctrlr



This will enable us to add more flags without creating any extra hole.

Signed-off-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I166e2bd3d116c8cebf75bfe4f290b390d9e3888e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9851


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 43adb646
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -100,9 +100,10 @@ struct nvme_ctrlr {
	struct spdk_nvme_ctrlr			*ctrlr;
	struct nvme_path_id			*active_path_id;
	int					ref;
	bool					resetting;
	bool					failover_in_progress;
	bool					destruct;

	uint32_t				resetting : 1;
	uint32_t				failover_in_progress : 1;
	uint32_t				destruct : 1;
	/**
	 * PI check flags. This flags is set to NVMe controllers created only
	 * through bdev_nvme_attach_controller RPC or .INI config file. Hot added