numam-spdk/lib/nvme
Shuhei Matsumoto 320ab72fb5 util: Add macro SPDK_SIZEOF_MEMBER to get size of a member of a struct
We find a few files to get the size of a member of a struct. How to
do it is a little complex. So add a macro to do it will be helpful
to read the current code and develop new features.

lib/dif had used member_size() internally but Linux use sizeof_member()
as the macro. Besides, SPDK have used upper case letters for similar
macros, SPDK_CONTAINEROF() and SPDK_COUNTOF(). Hence spdk_member_size()
may be good but propose SPDK_SIZEOF_MEMBER() as the macro.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I2179c845a3b75fb71aa039075cc4dfd30617b898
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8738
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
2021-07-15 07:16:22 +00:00
..
Makefile nvme: move spdk_nvme_map_cmd to nvmf/vfio-user 2021-07-13 16:53:42 +00:00
nvme_ctrlr_cmd.c lib/nvme: Do not retry aborts if ctrlr is failed. 2021-07-06 19:44:59 +00:00
nvme_ctrlr_ocssd_cmd.c nvme: Move nsdata to namespace structure 2021-03-02 08:06:15 +00:00
nvme_ctrlr.c nvme: free completed aers on shutdown 2021-07-14 09:44:43 +00:00
nvme_cuse.c nvme_cuse: Return ENOTTY in case unsupported ioctl is sent to a device 2021-07-13 09:00:05 +00:00
nvme_cuse.h lib/nvme: add RPC for interacting with CUSE devices 2019-10-24 23:43:59 +00:00
nvme_fabric.c nvme/fabrics: Fix trid trstring populate 2021-07-05 14:45:11 +00:00
nvme_internal.h nvme: Fix the bug that assumed ANA group descriptor is 8-bytes aligned 2021-07-14 09:15:59 +00:00
nvme_io_msg.c nvme: only process io_msg in primary process 2021-04-22 01:06:02 +00:00
nvme_io_msg.h lib/nvme: update io msg producers on ns manage 2020-06-05 09:01:44 +00:00
nvme_ns_cmd.c lib/nvme: Add support for Simple Copy Command 2021-05-14 09:59:54 +00:00
nvme_ns_ocssd_cmd.c nvme: save separate metadata size to nvme request 2020-04-02 07:02:38 +00:00
nvme_ns.c util: Add macro SPDK_SIZEOF_MEMBER to get size of a member of a struct 2021-07-15 07:16:22 +00:00
nvme_opal_internal.h nvme/opal: deprecate spdk_opal_supported() 2020-05-20 14:16:44 +00:00
nvme_opal.c nvme/opal: check Security Protocol 00h before sending TCG SP 2021-06-04 19:57:36 +00:00
nvme_pcie_common.c nvme: always return success from delete_io_qpair 2021-07-07 07:27:40 +00:00
nvme_pcie_internal.h nvme/pcie: move nvme_pcie_qpair_submit_request() to pcie common layer 2021-06-08 08:28:44 +00:00
nvme_pcie.c nvme: Fix remove event processing bug 2021-07-13 09:07:23 +00:00
nvme_poll_group.c nvme: Add functions to get/free poll group statistics 2021-04-13 21:30:52 +00:00
nvme_qpair.c nvme: use spdk_strerror to report CQ transport errors 2021-07-05 14:45:34 +00:00
nvme_quirks.c nvme: add quirks for new RedHat QEMU NVMe dev/vendor ID 2021-06-11 07:22:10 +00:00
nvme_rdma.c nvme: do not try to resubmit requests on error 2021-06-17 09:02:14 +00:00
nvme_tcp.c nvme_tcp: Add data pdu crc32c offloading in receving side by Accel framework. 2021-06-15 08:34:58 +00:00
nvme_transport.c nvme: change nvme_transport_ctrlr_delete_io_qpair to void 2021-07-07 07:27:40 +00:00
nvme_vfio_user.c nvme/vfio-user: use the common request submission function 2021-06-09 07:21:31 +00:00
nvme_zns.c nvme: Move nsdata_zns to namespace structure 2021-03-02 08:06:15 +00:00
nvme.c nvme: Add a new option disable_read_ana_log_page to struct spdk_nvme_ctrlr_opts 2021-07-14 09:15:59 +00:00
spdk_nvme.map nvme: move spdk_nvme_map_cmd to nvmf/vfio-user 2021-07-13 16:53:42 +00:00