-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[storage] [lint] Start enforcing lint errors #197
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,7 @@ import "google/protobuf/empty.proto"; | |
import "object_key.proto"; | ||
import "uuid.proto"; | ||
|
||
// Back End (network-facing) APIs. | ||
|
||
// Back End (network-facing) APIs. This service is for AIO generic kernel block device. | ||
service AioControllerService { | ||
rpc AioControllerCreate (AioControllerCreateRequest) returns (AioController) {} | ||
rpc AioControllerDelete (AioControllerDeleteRequest) returns (google.protobuf.Empty) {} | ||
|
@@ -30,11 +29,10 @@ message AioController { | |
// handle will be returned with created object | ||
common.v1.ObjectKey handle = 1; | ||
|
||
string name = 2; | ||
int64 block_size = 3; | ||
int64 num_blocks = 4; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
common.v1.Uuid uuid =5; | ||
string filename = 6; | ||
int64 block_size = 2; | ||
int64 blocks_count = 3; | ||
common.v1.Uuid uuid = 4; | ||
string filename = 5; | ||
} | ||
|
||
message AioControllerCreateRequest { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,7 @@ option go_package = "github.com/opiproject/opi-api/storage/v1alpha1/gen/go"; | |
import "object_key.proto"; | ||
import "uuid.proto"; | ||
|
||
// Back End (network-facing) APIs. | ||
|
||
// Back End (network-facing) APIs. This is debug interface for null block devices. | ||
service NullDebugService { | ||
rpc NullDebugCreate (NullDebugCreateRequest) returns (NullDebugCreateResponse) {} | ||
rpc NullDebugDelete (NullDebugDeleteRequest) returns (NullDebugDeleteResponse) {} | ||
|
@@ -25,10 +24,9 @@ service NullDebugService { | |
|
||
message NullDebug { | ||
int64 id = 1; | ||
string name = 2; | ||
int64 block_size = 3; | ||
int64 num_blocks = 4; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
common.v1.Uuid uuid = 5; | ||
int64 block_size = 2; | ||
int64 blocks_count = 3; | ||
common.v1.Uuid uuid = 4; | ||
} | ||
|
||
message NullDebugCreateRequest { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,7 @@ option java_outer_classname = "BackendNvmeTcpProto"; | |
|
||
option go_package = "github.com/opiproject/opi-api/storage/v1alpha1/gen/go"; | ||
|
||
// Back End (network-facing) APIs. | ||
|
||
// NVMe/TCP and NVMe/RoCEv2 | ||
|
||
// Back End (network-facing) APIs. NVMe/TCP and NVMe/RoCEv2 protocols are covered by this service. | ||
service NVMfRemoteControllerService { | ||
rpc NVMfRemoteControllerConnect (NVMfRemoteControllerConnectRequest) returns (NVMfRemoteControllerConnectResponse) {} | ||
rpc NVMfRemoteControllerDisconnect (NVMfRemoteControllerDisconnectRequest) returns (NVMfRemoteControllerDisconnectResponse) {} | ||
|
@@ -33,31 +30,8 @@ message NVMfRemoteController { | |
bool hdgst = 7; | ||
bool ddgst = 8; | ||
NvmeMultipath multipath = 9; | ||
int64 num_io_queues = 10; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
int64 io_queues_count = 10; | ||
int64 queue_size = 11; | ||
|
||
} | ||
|
||
enum NvmeTransportType { | ||
NVME_TRANSPORT_FC = 0; | ||
NVME_TRANSPORT_PCIE = 1; | ||
NVME_TRANSPORT_RDMA = 2; | ||
NVME_TRANSPORT_TCP = 3; | ||
NVME_TRANSPORT_CUSTOM = 4; | ||
} | ||
|
||
enum NvmeAddressFamily { | ||
NVMF_ADRFAM_IPV4 = 0; | ||
NVMF_ADRFAM_IPV6 = 1; | ||
NVMF_ADRFAM_IB = 2; | ||
NVMF_ADRFAM_FC = 3; | ||
NVMF_ADRFAM_INTRA_HOST = 4; | ||
} | ||
|
||
enum NvmeMultipath { | ||
NVME_MPIO_DISABLE = 0; | ||
NVME_MPIO_FAILOVER = 1; | ||
NVME_MPIO_MULTIPATH = 2; | ||
} | ||
|
||
message NVMfRemoteControllerConnectRequest { | ||
|
@@ -109,3 +83,27 @@ message NVMfRemoteControllerStatsResponse { | |
string stats = 2; | ||
} | ||
|
||
enum NvmeTransportType { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
NVME_TRANSPORT_TYPE_UNSPECIFIED = 0; | ||
NVME_TRANSPORT_FC = 1; | ||
NVME_TRANSPORT_PCIE = 2; | ||
NVME_TRANSPORT_RDMA = 3; | ||
NVME_TRANSPORT_TCP = 4; | ||
NVME_TRANSPORT_CUSTOM = 5; | ||
} | ||
|
||
enum NvmeAddressFamily { | ||
NVME_ADDRESS_FAMILY_UNSPECIFIED = 0; | ||
NVMF_ADRFAM_IPV4 = 1; | ||
NVMF_ADRFAM_IPV6 = 2; | ||
NVMF_ADRFAM_IB = 3; | ||
NVMF_ADRFAM_FC = 4; | ||
NVMF_ADRFAM_INTRA_HOST = 5; | ||
} | ||
|
||
enum NvmeMultipath { | ||
NVME_MULTIPATH_UNSPECIFIED = 0; | ||
NVME_MULTIPATH_DISABLE = 1; | ||
NVME_MULTIPATH_FAILOVER = 2; | ||
NVME_MULTIPATH_MULTIPATH = 3; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ message NvmeControllerPciId { | |
int32 device = 2; | ||
|
||
// Physical function, always set to 0 in current model | ||
int32 function = 3; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
int32 func = 3; | ||
|
||
// SRIOV Virtual function within the Device and Physical function. | ||
// Set to 0 for Physical Function. Virtual Function numbering starts from 1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,7 @@ import "uuid.proto"; | |
import "google/protobuf/empty.proto"; | ||
import "google/api/annotations.proto"; | ||
|
||
// Front End (host-facing) APIs. | ||
|
||
// NVMe/PCIe emulation | ||
|
||
// Front End (host-facing) APIs. Mostly used for NVMe/PCIe emulation and host presentation. | ||
service FrontendNvmeService { | ||
rpc NVMeSubsystemCreate (NVMeSubsystemCreateRequest) returns (NVMeSubsystem) { | ||
option (google.api.http) = { | ||
|
@@ -152,7 +149,7 @@ message NVMeController { | |
// If not set, the xPU will provide a default. | ||
int32 max_nsq = 5; | ||
|
||
// maximum number of host completion queues allowed. Optional. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
// maximum number of host completion queues allowed. | ||
// If not set, the xPU will provide a default. | ||
int32 max_ncq = 6; | ||
|
||
|
@@ -171,7 +168,6 @@ message NVMeController { | |
|
||
message NVMeNamespace { | ||
// namespace's unique key | ||
// replaces: int64 id = 1; | ||
common.v1.ObjectKey id = 1; | ||
|
||
// subsystem for this namespace | ||
|
@@ -192,13 +188,13 @@ message NVMeNamespace { | |
|
||
// Size/Capacity of the namespace in blocks, size in bytes will | ||
// be BlockSize x NumBlocks. | ||
int64 num_blocks = 6; | ||
int64 blocks_count = 6; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
// Globally unique identifier for the namespace | ||
string nguid = 7; | ||
|
||
// 64bit Extended unique identifier for the namespace | ||
// mandatory if guid is not specified, optional otherwise | ||
// mandatory if guid is not specified | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
int64 eui64 = 8; | ||
|
||
// Globally unique identifier for the namespace | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be nice to document the rules being ignored and why. But not a blocker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wanted to start enforcing rules, so ignore is temp thing, eventually nothing will be ignored, thanks @seroyer