Implement the APIs for gRPC calls in client/server

Implement the APIs defined in the RdcStandaloneHandler to make gRPC call to daemon

Implement the APIs defined in the RdcAPIServiceImpl to handle the gRPC calls in daemon

Add two APIs to get all GPU groups and field groups: rdc_group_get_all_ids()
and rdc_group_field_all_ids()
Those two APIs are required by the rdci group and fieldgroup
sub-modules.

Change-Id: I066091423146dea180c16af212688ed43dc44611
Šī revīzija ir iekļauta:
Bill(Shuzhou) Liu
2020-03-18 08:58:48 -04:00
revīziju iesūtīja Chris Freehill
vecāks 7084690872
revīzija 7ee29b6cdd
23 mainīti faili ar 907 papildinājumiem un 154 dzēšanām
+19 -1
Parādīt failu
@@ -190,6 +190,12 @@ service RdcAPI {
// rdc_status_t rdc_update_all_fields(uint32_t wait_for_update)
rpc UpdateAllFields(UpdateAllFieldsRequest) returns (UpdateAllFieldsResponse) {}
// rdc_status_t rdc_group_get_all_ids(rdc_gpu_group_t group_id_list[], uint32_t* count)
rpc GetGroupAllIds(Empty) returns (GetGroupAllIdsResponse) {}
// rdc_status_t rdc_group_field_all_ids(rdc_field_grp_t field_group_id_list[], uint32_t* count)
rpc GetFieldGroupAllIds(Empty) returns (GetFieldGroupAllIdsResponse) {}
}
message Empty {
@@ -235,9 +241,10 @@ message AddToGpuGroupRequest {
message AddToGpuGroupResponse {
uint32 status = 1;
}
message CreateFieldGroupRequest {
repeated uint32 field_ids = 1;
string filed_group_name = 2;
string field_group_name = 2;
}
message CreateFieldGroupResponse {
@@ -359,3 +366,14 @@ message UpdateAllFieldsRequest {
message UpdateAllFieldsResponse {
uint32 status = 1;
}
message GetGroupAllIdsResponse {
uint32 status = 1;
repeated uint32 group_ids = 2;
}
message GetFieldGroupAllIdsResponse {
uint32 status = 1;
repeated uint32 field_group_ids = 2;
}