7ec6d1d559
If ctrlr supports ANA log page, nvme_ctrlr allocates a buffer for ANA log page and read ANA log page itself, and then each nvme_ns sets its ANA state by parsing ANA log page. Most code was brought from NVMe driver because NVMe driver already supports ANA log page management. However it had a bug that assumed each descriptor is 8-bytes aligned. Fix the bug together in this patch. Besides, the implementation in NVMe driver was synchronous. NVMe bdev module reads ANA log page asynchronously instead. The next patch will support ANA log page update by AER handler. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ib8eab887633b043b394a45702037859414b8e0a0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8318 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Monica Kenguva <monica.kenguva@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
include | ||
lib | ||
Makefile | ||
unittest.sh |