Add SSL mutual authentication support for rdci

The RDC API is changed to pass the certificates to the gRPC.

Add the support to add all GPUs in the host to a group. Also before
add a GPU to a group, the RDC API will verify that GPU exists or not.

Add the support to fetch the temperature metrics.

Change-Id: I5857ef03fede233d16e8b2836be120f33172da93
Цей коміт міститься в:
Bill(Shuzhou) Liu authored and Chris Freehill committed 2020-08-17 14:07:25 -05:00
1 джерело 023de40df7
коміт 66e4e790c3
20 files changed
+232 -57

No files matched your search

+4 -2
Переглянути файл
@@ -79,7 +79,8 @@ class RdcStandaloneHandler: public RdcHandler {
// Control RdcAPI
rdc_status_t rdc_update_all_fields(uint32_t wait_for_update) override;
explicit RdcStandaloneHandler(const char* ip_and_port);
explicit RdcStandaloneHandler(const char* ip_and_port,
const char* root_ca, const char* client_cert, const char* client_key);
private:
// Helper function to handle the error
@@ -92,7 +93,8 @@ class RdcStandaloneHandler: public RdcHandler {
} // namespace amd
extern "C" {
amd::rdc::RdcHandler *make_handler(const char* ip_port);
amd::rdc::RdcHandler *make_handler(const char* ip_port,
const char* root_ca, const char* client_cert, const char* client_key);
}
#endif // RDC_LIB_IMPL_RDCSTANDALONEHANDLER_H_