Skip to content

Commit bc2a131

Browse files
smaheshmdaall
authored andcommitted
[BCMSAI] Update BCMSAI debian to 4.3.0.10 with 6.5.21 SDK, and opennsl module to 6.5.21 (#6526)
BCMSAI 4.3.0.10, 6.5.21 SDK release with enhancements and fixes for vxlan, TD3 MMU, TD4-X9 EA support, etc.
1 parent c7d8fae commit bc2a131

File tree

152 files changed

+27191
-854
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+27191
-854
lines changed

platform/broadcom/sai-modules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Broadcom SAI modules
22

3-
BRCM_OPENNSL_KERNEL_VERSION = 4.2.1.3-1
3+
BRCM_OPENNSL_KERNEL_VERSION = 4.3.0.10-2
44

55
BRCM_OPENNSL_KERNEL = opennsl-modules_$(BRCM_OPENNSL_KERNEL_VERSION)_amd64.deb
66
$(BRCM_OPENNSL_KERNEL)_SRC_PATH = $(PLATFORM_PATH)/saibcm-modules

platform/broadcom/sai.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
BRCM_SAI = libsaibcm_4.2.1.5-10_amd64.deb
2-
$(BRCM_SAI)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/4.2/master/buster/libsaibcm_4.2.1.5-10_amd64.deb?sv=2019-12-12&st=2021-01-12T07%3A30%3A31Z&se=2035-01-13T07%3A30%3A00Z&sr=b&sp=r&sig=yCGwk%2FW%2Fg%2FaFxhr0oNSTZ%2BVy5B6kX1WDEsbbyz9J088%3D"
3-
BRCM_SAI_DEV = libsaibcm-dev_4.2.1.5-10_amd64.deb
1+
BRCM_SAI = libsaibcm_4.3.0.10-2_amd64.deb
2+
$(BRCM_SAI)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/4.3/master/libsaibcm_4.3.0.10-2_amd64.deb?sv=2015-04-05&sr=b&sig=1L2kJwYBuXDc9ObuVBBUS%2F%2FBVIfAA651ig5k6O1ZztE%3D&se=2022-06-10T21%3A25%3A43Z&sp=r"
3+
BRCM_SAI_DEV = libsaibcm-dev_4.3.0.10-2_amd64.deb
44
$(eval $(call add_derived_package,$(BRCM_SAI),$(BRCM_SAI_DEV)))
5-
$(BRCM_SAI_DEV)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/4.2/master/buster/libsaibcm-dev_4.2.1.5-10_amd64.deb?sv=2019-12-12&st=2021-01-12T07%3A32%3A43Z&se=2035-01-13T07%3A32%3A00Z&sr=b&sp=r&sig=wuCNc6pa12JQCBi%2BM9rLWvVI92ldan9hKNF%2BfVfUWN8%3D"
5+
$(BRCM_SAI_DEV)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/4.3/master/libsaibcm-dev_4.3.0.10-2_amd64.deb?sv=2015-04-05&sr=b&sig=2Vm6o8HtbjI%2BfVoHJUiO5b75USqGra9CLSFXViQm8yM%3D&se=2022-06-10T21%3A26%3A35Z&sp=r"
66

77
SONIC_ONLINE_DEBS += $(BRCM_SAI)
88
$(BRCM_SAI_DEV)_DEPENDS += $(BRCM_SAI)

platform/broadcom/saibcm-modules/debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
opennsl (4.3.0.10-2) unstable; urgency=medium
2+
3+
* Update to Broadcom SAI 4.3.0.10
4+
* Added SDKLT modules 4.3.0.10-2
5+
6+
-- Mahesh Maddikayala <[email protected]> Thu, 21 Jan 2021 18:36:38 +0000
7+
18
opennsl (4.2.1.3-1) unstable; urgency=medium
29

310
* Update to Broadcom SAI 4.2.1.3

platform/broadcom/saibcm-modules/debian/opennsl-modules.init

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ function create_devices()
1818
rm -f /dev/linux-bcm-knet
1919
rm -f /dev/linux-bcm-bde
2020
rm -f /dev/linux-kernel-bde
21+
rm -f /dev/linux_ngbde
2122

23+
mknod /dev/linux_ngbde c 120 0
2224
mknod /dev/linux-knet-cb c 121 0
2325
mknod /dev/linux-bcm-knet c 122 0
2426
mknod /dev/linux-bcm-bde c 126 0
@@ -57,8 +59,9 @@ function load_kernel_modules()
5759
# There is a different psample.ko module getting created at net/psample/psample.ko
5860
insmod /lib/modules/$(uname -r)/extra/psample.ko
5961

60-
modprobe linux-bcm-knet use_rx_skb=1 rx_buffer_size=9238 debug=0x5020
62+
modprobe linux-bcm-knet use_rx_skb=1 rx_buffer_size=9238 debug=0x5020 default_mtu=9100
6163
modprobe linux-knet-cb
64+
modprobe linux_ngbde
6265
}
6366

6467
function remove_kernel_modules()
@@ -68,6 +71,7 @@ function remove_kernel_modules()
6871
rmmod linux-bcm-knet
6972
rmmod linux-user-bde
7073
rmmod linux-kernel-bde
74+
rmmod linux_ngbde
7175
}
7276

7377
case "$1" in

platform/broadcom/saibcm-modules/debian/opennsl-modules.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ systems/linux/user/x86-smp_generic_64-2_6/linux-knet-cb.ko lib/modules/4.19.0-9-
55
systems/linux/user/x86-smp_generic_64-2_6/psample.ko lib/modules/4.19.0-9-2-amd64/extra
66
systems/linux/user/x86-smp_generic_64-2_6/linux-bcm-ptp-clock.ko lib/modules/4.19.0-9-2-amd64/extra
77
systemd/opennsl-modules.service lib/systemd/system
8+
sdklt/linux/bde/linux_ngbde.ko lib/modules/4.19.0-9-2-amd64/extra

platform/broadcom/saibcm-modules/debian/rules

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ kdist_clean: clean
6767
KERNDIR=/usr/src/linux-headers-$(KERNVERSION)-common \
6868
KERNEL_SRC=/usr/src/linux-headers-$(KERNVERSION)-amd64 \
6969
$(MAKE) -C systems/linux/user/x86-smp_generic_64-2_6 clean
70+
SDK=$(realpath .) BUILD_KNET_CB=1 BUILD_PSAMPLE=1 \
71+
KDIR=/usr/src/linux-headers-$(KERNVERSION)-common \
72+
$(MAKE) -C sdklt/ clean
7073
# rm -f driver/*.o driver/*.ko
7174
#
7275
### end KERNEL SETUP
@@ -100,6 +103,10 @@ build-arch-stamp:
100103
KERNEL_SRC=/usr/src/linux-headers-$(KERNVERSION)-amd64 \
101104
$(MAKE) -C systems/linux/user/x86-smp_generic_64-2_6
102105

106+
SDK=$(realpath .) BUILD_KNET_CB=1 BUILD_PSAMPLE=1 \
107+
KDIR=/usr/src/linux-headers-$(KERNVERSION)-common \
108+
$(MAKE) -C sdklt/ kmod
109+
103110
touch $@
104111

105112
#k = $(shell echo $(KVERS) | grep -q ^2.6 && echo k)
@@ -128,6 +135,10 @@ clean:
128135
KERNEL_SRC=/usr/src/linux-headers-$(KERNVERSION)-amd64 \
129136
$(MAKE) -C systems/linux/user/x86-smp_generic_64-2_6 clean
130137

138+
SDK=$(realpath .) BUILD_KNET_CB=1 BUILD_PSAMPLE=1 \
139+
KDIR=/usr/src/linux-headers-$(KERNVERSION)-common \
140+
$(MAKE) -C sdklt/ clean
141+
131142
dh_clean
132143

133144
install: DH_OPTIONS=

platform/broadcom/saibcm-modules/include/ibde.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/*
2-
* Copyright 2017 Broadcom
2+
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
3+
*
4+
* Permission is granted to use, copy, modify and/or distribute this
5+
* software under either one of the licenses below.
6+
*
7+
* License Option 1: GPL
38
*
49
* This program is free software; you can redistribute it and/or modify
510
* it under the terms of the GNU General Public License, version 2, as
@@ -12,6 +17,12 @@
1217
*
1318
* You should have received a copy of the GNU General Public License
1419
* version 2 (GPLv2) along with this source code.
20+
*
21+
*
22+
* License Option 2: Broadcom Open Network Switch APIs (OpenNSA) license
23+
*
24+
* This software is governed by the Broadcom Open Network Switch APIs license:
25+
* https://www.broadcom.com/products/ethernet-connectivity/software/opennsa
1526
*/
1627
/*
1728
* $Id: ibde.h,v 1.27 Broadcom SDK $

platform/broadcom/saibcm-modules/include/kcom.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/*
2-
* Copyright 2017 Broadcom
2+
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
3+
*
4+
* Permission is granted to use, copy, modify and/or distribute this
5+
* software under either one of the licenses below.
6+
*
7+
* License Option 1: GPL
38
*
49
* This program is free software; you can redistribute it and/or modify
510
* it under the terms of the GNU General Public License, version 2, as
@@ -12,6 +17,12 @@
1217
*
1318
* You should have received a copy of the GNU General Public License
1419
* version 2 (GPLv2) along with this source code.
20+
*
21+
*
22+
* License Option 2: Broadcom Open Network Switch APIs (OpenNSA) license
23+
*
24+
* This software is governed by the Broadcom Open Network Switch APIs license:
25+
* https://www.broadcom.com/products/ethernet-connectivity/software/opennsa
1526
*/
1627
/*
1728
* $Id: kcom.h,v 1.9 Broadcom SDK $
@@ -341,6 +352,8 @@ typedef struct kcom_msg_version_s {
341352
#define KSYNC_M_HW_DEINIT 1
342353
#define KSYNC_M_VERSION 2
343354
#define KSYNC_M_HW_TS_DISABLE 3
355+
#define KSYNC_M_MTP_TS_UPDATE_ENABLE 4
356+
#define KSYNC_M_MTP_TS_UPDATE_DISABLE 5
344357

345358
typedef struct kcom_clock_info_s {
346359
uint8 cmd;

platform/broadcom/saibcm-modules/include/sal/core/sync.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/*
2-
* Copyright 2017 Broadcom
2+
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
3+
*
4+
* Permission is granted to use, copy, modify and/or distribute this
5+
* software under either one of the licenses below.
6+
*
7+
* License Option 1: GPL
38
*
49
* This program is free software; you can redistribute it and/or modify
510
* it under the terms of the GNU General Public License, version 2, as
@@ -12,6 +17,12 @@
1217
*
1318
* You should have received a copy of the GNU General Public License
1419
* version 2 (GPLv2) along with this source code.
20+
*
21+
*
22+
* License Option 2: Broadcom Open Network Switch APIs (OpenNSA) license
23+
*
24+
* This software is governed by the Broadcom Open Network Switch APIs license:
25+
* https://www.broadcom.com/products/ethernet-connectivity/software/opennsa
1526
*/
1627
/*
1728
* $Id: sync.h,v 1.1 Broadcom SDK $

platform/broadcom/saibcm-modules/include/sal/core/thread.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/*
2-
* Copyright 2017 Broadcom
2+
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
3+
*
4+
* Permission is granted to use, copy, modify and/or distribute this
5+
* software under either one of the licenses below.
6+
*
7+
* License Option 1: GPL
38
*
49
* This program is free software; you can redistribute it and/or modify
510
* it under the terms of the GNU General Public License, version 2, as
@@ -12,6 +17,12 @@
1217
*
1318
* You should have received a copy of the GNU General Public License
1419
* version 2 (GPLv2) along with this source code.
20+
*
21+
*
22+
* License Option 2: Broadcom Open Network Switch APIs (OpenNSA) license
23+
*
24+
* This software is governed by the Broadcom Open Network Switch APIs license:
25+
* https://www.broadcom.com/products/ethernet-connectivity/software/opennsa
1526
*/
1627
/*
1728
* $Id: thread.h,v 1.1 Broadcom SDK $

0 commit comments

Comments
 (0)