From 8d57cfd45cf40655c37cffeb5311ca6478a5bbee Mon Sep 17 00:00:00 2001 From: "Marty Y. Lok" <76118573+mlok-nokia@users.noreply.github.com> Date: Tue, 17 Aug 2021 11:25:00 -0400 Subject: [PATCH] [syncd][bcm] Start syncd by passing context configuration file (#858) In multi-asic BCM switch, there are multiple swss and syncd dockers. Orchagent process in each swss is started with a different hwinfo(asic_id). This PR is to ensure that context configuration is passed in syncd which has the hwinfo information with which each orchagent is started. This change is similar to done for VS target --- syncd/scripts/syncd_init_common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index 5eb9d0c49..9ef6023be 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -161,7 +161,11 @@ config_syncd_bcm() fi fi - + + if [ -f "$HWSKU_DIR/context_config.json" ]; then + CMD_ARGS+=" -x $HWSKU_DIR/context_config.json -g 0" + fi + [ -e /dev/linux-bcm-knet ] || mknod /dev/linux-bcm-knet c 122 0 [ -e /dev/linux-user-bde ] || mknod /dev/linux-user-bde c 126 0 [ -e /dev/linux-kernel-bde ] || mknod /dev/linux-kernel-bde c 127 0