Add BCM multi-instance support in saibcm-modules for XGS and DNX platforms. (#8002)

Why I did it

We hit an issue recently in the chassis bringup where the linux bde attach failed with the following ioctl error.
[ 9058.585960] linux-user-bde (897363): Error: Invalid ioctl (00004c1d)
[ 9105.668237] linux-user-bde (901002): Error: Invalid ioctl (00004c1d)

Debugged with Broadcom team, who suggested to use this flag BCM_INSTANCE_SUPPORT to support multi-instance scenarios ( platforms with more than one asic where there are separate sai/syncd docker instances running controller each asic instance).

This flag was introduced since SDK-6.5.21 and need to be present in SAI and SAI GPL kernel module makefile.

How I did it

Add the flag in this flag BCM_INSTANCE_SUPPORT in gpl modules
This commit is contained in:
judyjoseph
2021-06-29 20:12:18 -07:00
committed by GitHub
parent 83b8791160
commit 724d19385c
2 changed files with 4 additions and 1 deletions

View File

@@ -174,6 +174,9 @@ CPPFLAGS += ${INCFLAGS}
CFLAGS += -DSAI_FIXUP -UKCOM_FILTER_MAX -DKCOM_FILTER_MAX=1024
# Flag to enable multi instance support
CFLAGS += -DBCM_INSTANCE_SUPPORT
#
# Debug #ifdef control
#