lib/nvmf: Remove unused structures and macro constants in nvmf_rpc.c
Data structure and macro constants for multiple listen addresses and namespaces are not used anywhere in nvmf_rpc.c Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Idd8bc61e22f9e9918a88f017a024cab239ff5e53 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4060 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
83eb352b3c
commit
151eff43dd
@ -544,14 +544,6 @@ struct rpc_listen_address {
|
|||||||
char *trsvcid;
|
char *trsvcid;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define RPC_MAX_LISTEN_ADDRESSES 255
|
|
||||||
#define RPC_MAX_NAMESPACES 255
|
|
||||||
|
|
||||||
struct rpc_listen_addresses {
|
|
||||||
size_t num_listen_address;
|
|
||||||
struct rpc_listen_address addresses[RPC_MAX_LISTEN_ADDRESSES];
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct spdk_json_object_decoder rpc_listen_address_decoders[] = {
|
static const struct spdk_json_object_decoder rpc_listen_address_decoders[] = {
|
||||||
/* NOTE: "transport" is kept for compatibility; new code should use "trtype" */
|
/* NOTE: "transport" is kept for compatibility; new code should use "trtype" */
|
||||||
{"transport", offsetof(struct rpc_listen_address, transport), spdk_json_decode_string, true},
|
{"transport", offsetof(struct rpc_listen_address, transport), spdk_json_decode_string, true},
|
||||||
@ -912,12 +904,6 @@ struct spdk_nvmf_ns_params {
|
|||||||
struct spdk_uuid uuid;
|
struct spdk_uuid uuid;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rpc_namespaces {
|
|
||||||
size_t num_ns;
|
|
||||||
struct spdk_nvmf_ns_params ns_params[RPC_MAX_NAMESPACES];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
static const struct spdk_json_object_decoder rpc_ns_params_decoders[] = {
|
static const struct spdk_json_object_decoder rpc_ns_params_decoders[] = {
|
||||||
{"nsid", offsetof(struct spdk_nvmf_ns_params, nsid), spdk_json_decode_uint32, true},
|
{"nsid", offsetof(struct spdk_nvmf_ns_params, nsid), spdk_json_decode_uint32, true},
|
||||||
{"bdev_name", offsetof(struct spdk_nvmf_ns_params, bdev_name), spdk_json_decode_string},
|
{"bdev_name", offsetof(struct spdk_nvmf_ns_params, bdev_name), spdk_json_decode_string},
|
||||||
|
Loading…
Reference in New Issue
Block a user