From d7e4e9a700f9729821a0875a5b552582ecf13e4d Mon Sep 17 00:00:00 2001 From: Justin Kim Date: Mon, 23 Sep 2024 14:48:02 -0700 Subject: [PATCH] Define a thrift structure for Bsp Kmod Files Summary: Formally defining in platform_manager_config.thrift as a code reference. This will get written as part of BSP. PM will read them to unload kmods for the installed rpm. Example json file for Tahan {P1605773412} Reviewed By: tao-ren Differential Revision: D63276490 fbshipit-source-id: 905c19b38b2b56b5a384c45f524eeada6724da0b --- .../platform_manager/platform_manager_config.thrift | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/fboss/platform/platform_manager/platform_manager_config.thrift b/fboss/platform/platform_manager/platform_manager_config.thrift index d38be63d4d39e..d105588337fe7 100644 --- a/fboss/platform/platform_manager/platform_manager_config.thrift +++ b/fboss/platform/platform_manager/platform_manager_config.thrift @@ -489,6 +489,19 @@ struct PmUnitVersion { 3: i16 productSubVersion; } +// Defines thrift structure used for the Bsp Kmods file under /usr/local/{vendor}_bsp/... +// This file will be written during BSP development. PM will consume this file to unload +// specified kmods before exploration. +// +// `bspKmods`: Specify the list of names of bsp kmods on the installed rpm. +// +// `sharedKmods`: Specify the list of names of shared kmods on the installed rpm. +// These shared kmods will be unloaded after bspKmods. +struct BspKmodsFile { + 1: list bspKmods; + 2: list sharedKmods; +} + // Defines the whole Platform. The top level struct. struct PlatformConfig { // Name of the platform. Should match the name set in dmidecode