Up until now, the protobuf files were all located under `python/spdk/sma/proto`. This was fine, as they were only used in SMA and we only generated python code. However, now, we would also like to to output code for other (e.g. go) languages too, so it no longer make sense to keep them under `python`. Only the protobuf files will be stored under `proto`. The autogenerated python code will remain under `python`, while the go code will be put in the `go` directory. While here, simplified the Makefile by removing a function generating rules based on a directory, because we keep all protobuf files in the same location. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I4dcb7b33cd6f2930732f04dee62e35571b09315b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15016 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot
13 lines
217 B
Protocol Buffer
13 lines
217 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package sma.nvme;
|
|
|
|
option go_package = "spdk.io/sma/nvme";
|
|
|
|
message DeviceParameters {
|
|
// Physical function index
|
|
uint32 physical_id = 1;
|
|
// Virtual function index
|
|
uint32 virtual_id = 2;
|
|
}
|