rdc_field_t replaces uint32_t; centralize field data

Make the RDC use the new rdc_field_t enum instead of uint32_t.
This will help prevent invalid field types from being passed in.

Also, centralize where data related to fields is kept. This will
reduce the number of places where changes are required each
time a new field is added.

Finally, cleaned up several cpplint issues.

Change-Id: I48e4512e18c164411d8b09ae3d4bed99fba359ec
Этот коммит содержится в:
Chris Freehill
2020-07-24 19:40:48 -05:00
родитель e6d910f67a
Коммит 5950ebadc4
43 изменённых файлов: 459 добавлений и 388 удалений
+1 -1
Просмотреть файл
@@ -61,7 +61,7 @@ class RdciDmonSubSystem: public RdciSubSystem {
};
std::map<OPTIONS, uint32_t> options_;
std::vector<uint32_t> field_ids_;
std::vector<rdc_field_t> field_ids_;
std::vector<uint32_t> gpu_indexes_;
bool need_cleanup_;