nvmf: define vendor specific log page range

Also add a macro to test a given log page ID.

Signed-off-by: Scott Peterson <scott.d.peterson@intel.com>
Change-Id: Id4d00f5c3d8af76b24ce010d6f922025a31312b4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4115
Community-CI: Mellanox Build Bot
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Scott Peterson 2019-07-02 19:09:25 -07:00 committed by Tomasz Zawadzki
parent c68200086f
commit f98623bb55

View File

@ -2794,8 +2794,12 @@ enum spdk_nvme_log_page {
/* 0x81-0xBF - I/O command set specific */
/* 0xC0-0xFF - vendor specific */
SPDK_NVME_LOG_VENDOR_SPECIFIC_START = 0xc0,
SPDK_NVME_LOG_VENDOR_SPECIFIC_END = 0xff,
};
#define spdk_nvme_log_page_is_vendor_specific(lid) ((lid) >= SPDK_NVME_LOG_VENDOR_SPECIFIC_START)
/**
* Error information log page (\ref SPDK_NVME_LOG_ERROR)
*/