Skip to content

Commit 8c45a4b

Browse files
authored
Merge branch 'sonic-net:master' into Fix_sm_mnt
2 parents f067078 + 7f1f300 commit 8c45a4b

File tree

600 files changed

+62522
-12628
lines changed

Some content is hidden

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

600 files changed

+62522
-12628
lines changed

.azure-pipelines/docker-sonic-mgmt-py3-only.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,15 @@ stages:
3838
- template: cleanup.yml
3939
- checkout: self
4040
clean: true
41+
42+
- script: |
43+
set -x
44+
sudo setfacl -R -b $(Agent.BuildDirectory)
45+
displayName: 'setfacl'
46+
4147
- bash: |
4248
set -xe
43-
git submodule update --init --recursive -- src/sonic-platform-daemons src/sonic-genl-packet src/sonic-sairedis src/ptf src/sonic-device-data
49+
git submodule update --init --recursive -- src/sonic-platform-daemons src/sonic-genl-packet src/sonic-sairedis src/ptf src/sonic-device-data src/sonic-dash-api
4450
4551
make SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y configure PLATFORM=generic
4652
make -f Makefile.work BLDENV=bullseye SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y LEGACY_SONIC_MGMT_DOCKER=n target/docker-sonic-mgmt.gz

.azure-pipelines/docker-sonic-mgmt.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ stages:
3838
- template: cleanup.yml
3939
- checkout: self
4040
clean: true
41+
- script: |
42+
set -x
43+
sudo setfacl -R -b $(Agent.BuildDirectory)
44+
displayName: 'setfacl'
45+
4146
- bash: |
4247
set -xe
43-
git submodule update --init --recursive -- src/sonic-platform-daemons src/sonic-genl-packet src/sonic-sairedis src/ptf src/sonic-device-data
48+
git submodule update --init --recursive -- src/sonic-platform-daemons src/sonic-genl-packet src/sonic-sairedis src/ptf src/sonic-device-data src/sonic-dash-api
4449
4550
make SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y configure PLATFORM=generic
4651
make -f Makefile.work BLDENV=bullseye SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y LEGACY_SONIC_MGMT_DOCKER=y target/docker-sonic-mgmt.gz

build_debian.sh

+17-3
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/linux-image-${LINUX_KERNEL_VERSI
169169
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
170170
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install acl
171171
if [[ $CONFIGURED_ARCH == amd64 ]]; then
172-
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install dmidecode hdparm
172+
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install hdparm
173173
fi
174174

175175
## Update initramfs for booting with squashfs+overlay
@@ -379,6 +379,7 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
379379
haveged \
380380
fdisk \
381381
gpg \
382+
dmidecode \
382383
jq \
383384
auditd \
384385
linux-perf \
@@ -391,6 +392,12 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
391392
zstd \
392393
nvme-cli
393394

395+
sudo cp files/initramfs-tools/pzstd $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/pzstd
396+
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/pzstd
397+
398+
sudo cp files/initramfs-tools/file $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/file
399+
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/file
400+
394401
# Have systemd create the auditd log directory
395402
sudo mkdir -p ${FILESYSTEM_ROOT}/etc/systemd/system/auditd.service.d
396403
sudo tee ${FILESYSTEM_ROOT}/etc/systemd/system/auditd.service.d/log-directory.conf >/dev/null <<EOF
@@ -747,7 +754,10 @@ if [[ $TARGET_BOOTLOADER == uboot ]]; then
747754
elif [[ $CONFIGURED_ARCH == arm64 ]]; then
748755
if [[ $CONFIGURED_PLATFORM == pensando ]]; then
749756
## copy device tree file into boot (XXX: need to compile dtb from dts)
750-
sudo cp -v $PLATFORM_DIR/pensando/elba-asic-psci.dtb $FILESYSTEM_ROOT/boot/
757+
sudo cp -v $FILESYSTEM_ROOT/usr/lib/linux-image-${LINUX_KERNEL_VERSION}-${CONFIGURED_ARCH}/pensando/elba-asic-psci.dtb $FILESYSTEM_ROOT/boot/
758+
sudo cp -v $FILESYSTEM_ROOT/usr/lib/linux-image-${LINUX_KERNEL_VERSION}-${CONFIGURED_ARCH}/pensando/elba-asic-psci-lipari.dtb $FILESYSTEM_ROOT/boot/
759+
sudo cp -v $FILESYSTEM_ROOT/usr/lib/linux-image-${LINUX_KERNEL_VERSION}-${CONFIGURED_ARCH}/pensando/elba-asic-psci-mtfuji.dtb $FILESYSTEM_ROOT/boot/
760+
sudo cp -v $PLATFORM_DIR/pensando/install_file $FILESYSTEM_ROOT/boot/
751761
## make kernel as gzip file
752762
sudo LANG=C chroot $FILESYSTEM_ROOT gzip /boot/${KERNEL_FILE}
753763
sudo LANG=C chroot $FILESYSTEM_ROOT mv /boot/${KERNEL_FILE}.gz /boot/${KERNEL_FILE}
@@ -851,7 +861,11 @@ if [[ $MULTIARCH_QEMU_ENVIRON == y || $CROSS_BUILD_ENVIRON == y ]]; then
851861
fi
852862

853863
## Compress docker files
854-
pushd $FILESYSTEM_ROOT && sudo tar -I pigz -cf $OLDPWD/$FILESYSTEM_DOCKERFS -C ${DOCKERFS_PATH}var/lib/docker .; popd
864+
if [ "$BUILD_REDUCE_IMAGE_SIZE" = "y" ]; then
865+
pushd $FILESYSTEM_ROOT && sudo tar -I pzstd -cf $OLDPWD/$FILESYSTEM_DOCKERFS -C ${DOCKERFS_PATH}var/lib/docker .; popd
866+
else
867+
pushd $FILESYSTEM_ROOT && sudo tar -I pigz -cf $OLDPWD/$FILESYSTEM_DOCKERFS -C ${DOCKERFS_PATH}var/lib/docker .; popd
868+
fi
855869

856870
## Compress together with /boot, /var/lib/docker and $PLATFORM_DIR as an installer payload zip file
857871
pushd $FILESYSTEM_ROOT && sudo tar -I pigz -cf platform.tar.gz -C $PLATFORM_DIR . && sudo zip -n .gz $OLDPWD/$INSTALLER_PAYLOAD -r boot/ platform.tar.gz; popd

device/arista/x86_64-arista_7800r3_48cq2_lc/Arista-7800R3-48CQ2-C48/pg_profile_lookup.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# speed cable size xon xoff threshold xon_offset
33
40000 300m 0 2560 69632 -6 181753
44
100000 300m 0 2560 110592 -6 363506
5-
400000 300m 0 2560 315392 -6 1454025
5+
400000 300m 0 2560 315392 -5 1454025
66
40000 1000m 0 2560 114688 -6 181753
77
100000 1000m 0 2560 225280 -6 363506
8-
400000 1000m 0 2560 778240 -6 1454025
8+
400000 1000m 0 2560 778240 -5 1454025
99
40000 2000m 0 2560 184320 -6 181753
1010
100000 2000m 0 2560 393216 -6 363506
11-
400000 2000m 0 2560 1445888 -6 1454025
11+
400000 2000m 0 2560 1445888 -5 1454025
1212
40000 80000m 0 2560 5369856 -6 181753
1313
100000 80000m 0 2560 13357056 -6 363506
14-
400000 80000m 0 2560 53305344 -6 1454025
14+
400000 80000m 0 2560 53305344 -5 1454025
1515
40000 120000m 0 2560 8028160 -6 181753
1616
100000 120000m 0 2560 20004864 -6 363506
17-
400000 120000m 0 2560 79900672 -6 1454025
17+
400000 120000m 0 2560 79900672 -5 1454025

device/arista/x86_64-arista_7800r3_48cqm2_lc/Arista-7800R3-48CQM2-C48/pg_profile_lookup.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# speed cable size xon xoff threshold xon_offset
33
40000 300m 0 2560 69632 -6 181753
44
100000 300m 0 2560 110592 -6 363506
5-
400000 300m 0 2560 315392 -6 1454025
5+
400000 300m 0 2560 315392 -5 1454025
66
40000 1000m 0 2560 114688 -6 181753
77
100000 1000m 0 2560 225280 -6 363506
8-
400000 1000m 0 2560 778240 -6 1454025
8+
400000 1000m 0 2560 778240 -5 1454025
99
40000 2000m 0 2560 184320 -6 181753
1010
100000 2000m 0 2560 393216 -6 363506
11-
400000 2000m 0 2560 1445888 -6 1454025
11+
400000 2000m 0 2560 1445888 -5 1454025
1212
40000 80000m 0 2560 5369856 -6 181753
1313
100000 80000m 0 2560 13357056 -6 363506
14-
400000 80000m 0 2560 53305344 -6 1454025
14+
400000 80000m 0 2560 53305344 -5 1454025
1515
40000 120000m 0 2560 8028160 -6 181753
1616
100000 120000m 0 2560 20004864 -6 363506
17-
400000 120000m 0 2560 79900672 -6 1454025
17+
400000 120000m 0 2560 79900672 -5 1454025

device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/0/pg_profile_lookup.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# speed cable size xon xoff threshold xon_offset
33
40000 300m 0 2560 69632 -6 181753
44
100000 300m 0 2560 110592 -6 363506
5-
400000 300m 0 2560 315392 -6 1454025
5+
400000 300m 0 2560 315392 -5 1454025
66
40000 1000m 0 2560 114688 -6 181753
77
100000 1000m 0 2560 225280 -6 363506
8-
400000 1000m 0 2560 778240 -6 1454025
8+
400000 1000m 0 2560 778240 -5 1454025
99
40000 2000m 0 2560 184320 -6 181753
1010
100000 2000m 0 2560 393216 -6 363506
11-
400000 2000m 0 2560 1445888 -6 1454025
11+
400000 2000m 0 2560 1445888 -5 1454025
1212
40000 80000m 0 2560 5369856 -6 181753
1313
100000 80000m 0 2560 13357056 -6 363506
14-
400000 80000m 0 2560 53305344 -6 1454025
14+
400000 80000m 0 2560 53305344 -5 1454025
1515
40000 120000m 0 2560 8028160 -6 181753
1616
100000 120000m 0 2560 20004864 -6 363506
17-
400000 120000m 0 2560 79900672 -6 1454025
17+
400000 120000m 0 2560 79900672 -5 1454025

device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/1/pg_profile_lookup.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# speed cable size xon xoff threshold xon_offset
33
40000 300m 0 2560 69632 -6 181753
44
100000 300m 0 2560 110592 -6 363506
5-
400000 300m 0 2560 315392 -6 1454025
5+
400000 300m 0 2560 315392 -5 1454025
66
40000 1000m 0 2560 114688 -6 181753
77
100000 1000m 0 2560 225280 -6 363506
8-
400000 1000m 0 2560 778240 -6 1454025
8+
400000 1000m 0 2560 778240 -5 1454025
99
40000 2000m 0 2560 184320 -6 181753
1010
100000 2000m 0 2560 393216 -6 363506
11-
400000 2000m 0 2560 1445888 -6 1454025
11+
400000 2000m 0 2560 1445888 -5 1454025
1212
40000 80000m 0 2560 5369856 -6 181753
1313
100000 80000m 0 2560 13357056 -6 363506
14-
400000 80000m 0 2560 53305344 -6 1454025
14+
400000 80000m 0 2560 53305344 -5 1454025
1515
40000 120000m 0 2560 8028160 -6 181753
1616
100000 120000m 0 2560 20004864 -6 363506
17-
400000 120000m 0 2560 79900672 -6 1454025
17+
400000 120000m 0 2560 79900672 -5 1454025

device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/0/pg_profile_lookup.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# speed cable size xon xoff threshold xon_offset
33
40000 300m 0 2560 69632 -6 181753
44
100000 300m 0 2560 110592 -6 363506
5-
400000 300m 0 2560 315392 -6 1454025
5+
400000 300m 0 2560 315392 -5 1454025
66
40000 1000m 0 2560 114688 -6 181753
77
100000 1000m 0 2560 225280 -6 363506
8-
400000 1000m 0 2560 778240 -6 1454025
8+
400000 1000m 0 2560 778240 -5 1454025
99
40000 2000m 0 2560 184320 -6 181753
1010
100000 2000m 0 2560 393216 -6 363506
11-
400000 2000m 0 2560 1445888 -6 1454025
11+
400000 2000m 0 2560 1445888 -5 1454025
1212
40000 80000m 0 2560 5369856 -6 181753
1313
100000 80000m 0 2560 13357056 -6 363506
14-
400000 80000m 0 2560 53305344 -6 1454025
14+
400000 80000m 0 2560 53305344 -5 1454025
1515
40000 120000m 0 2560 8028160 -6 181753
1616
100000 120000m 0 2560 20004864 -6 363506
17-
400000 120000m 0 2560 79900672 -6 1454025
17+
400000 120000m 0 2560 79900672 -5 1454025

device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/1/pg_profile_lookup.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# speed cable size xon xoff threshold xon_offset
33
40000 300m 0 2560 69632 -6 181753
44
100000 300m 0 2560 110592 -6 363506
5-
400000 300m 0 2560 315392 -6 1454025
5+
400000 300m 0 2560 315392 -5 1454025
66
40000 1000m 0 2560 114688 -6 181753
77
100000 1000m 0 2560 225280 -6 363506
8-
400000 1000m 0 2560 778240 -6 1454025
8+
400000 1000m 0 2560 778240 -5 1454025
99
40000 2000m 0 2560 184320 -6 181753
1010
100000 2000m 0 2560 393216 -6 363506
11-
400000 2000m 0 2560 1445888 -6 1454025
11+
400000 2000m 0 2560 1445888 -5 1454025
1212
40000 80000m 0 2560 5369856 -6 181753
1313
100000 80000m 0 2560 13357056 -6 363506
14-
400000 80000m 0 2560 53305344 -6 1454025
14+
400000 80000m 0 2560 53305344 -5 1454025
1515
40000 120000m 0 2560 8028160 -6 181753
1616
100000 120000m 0 2560 20004864 -6 363506
17-
400000 120000m 0 2560 79900672 -6 1454025
17+
400000 120000m 0 2560 79900672 -5 1454025
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# PG lossless profiles.
22
# speed cable size xon xoff threshold xon_offset
3-
40000 300m 0 2560 69632 -5 181753
4-
100000 300m 0 2560 110592 -5 363506
3+
40000 300m 0 2560 69632 -6 181753
4+
100000 300m 0 2560 110592 -6 363506
55
400000 300m 0 2560 315392 -5 1454025
6-
40000 1000m 0 2560 114688 -5 181753
7-
100000 1000m 0 2560 225280 -5 363506
6+
40000 1000m 0 2560 114688 -6 181753
7+
100000 1000m 0 2560 225280 -6 363506
88
400000 1000m 0 2560 778240 -5 1454025
9-
40000 2000m 0 2560 184320 -5 181753
10-
100000 2000m 0 2560 393216 -5 363506
9+
40000 2000m 0 2560 184320 -6 181753
10+
100000 2000m 0 2560 393216 -6 363506
1111
400000 2000m 0 2560 1445888 -5 1454025
12-
40000 80000m 0 2560 5369856 -5 181753
13-
100000 80000m 0 2560 13357056 -5 363506
12+
40000 80000m 0 2560 5369856 -6 181753
13+
100000 80000m 0 2560 13357056 -6 363506
1414
400000 80000m 0 2560 53305344 -5 1454025
15-
40000 120000m 0 2560 8028160 -5 181753
16-
100000 120000m 0 2560 20004864 -5 363506
15+
40000 120000m 0 2560 8028160 -6 181753
16+
100000 120000m 0 2560 20004864 -6 363506
1717
400000 120000m 0 2560 79900672 -5 1454025
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# PG lossless profiles.
22
# speed cable size xon xoff threshold xon_offset
3-
40000 300m 0 2560 69632 -5 181753
4-
100000 300m 0 2560 110592 -5 363506
3+
40000 300m 0 2560 69632 -6 181753
4+
100000 300m 0 2560 110592 -6 363506
55
400000 300m 0 2560 315392 -5 1454025
6-
40000 1000m 0 2560 114688 -5 181753
7-
100000 1000m 0 2560 225280 -5 363506
6+
40000 1000m 0 2560 114688 -6 181753
7+
100000 1000m 0 2560 225280 -6 363506
88
400000 1000m 0 2560 778240 -5 1454025
9-
40000 2000m 0 2560 184320 -5 181753
10-
100000 2000m 0 2560 393216 -5 363506
9+
40000 2000m 0 2560 184320 -6 181753
10+
100000 2000m 0 2560 393216 -6 363506
1111
400000 2000m 0 2560 1445888 -5 1454025
12-
40000 80000m 0 2560 5369856 -5 181753
13-
100000 80000m 0 2560 13357056 -5 363506
12+
40000 80000m 0 2560 5369856 -6 181753
13+
100000 80000m 0 2560 13357056 -6 363506
1414
400000 80000m 0 2560 53305344 -5 1454025
15-
40000 120000m 0 2560 8028160 -5 181753
16-
100000 120000m 0 2560 20004864 -5 363506
15+
40000 120000m 0 2560 8028160 -6 181753
16+
100000 120000m 0 2560 20004864 -6 363506
1717
400000 120000m 0 2560 79900672 -5 1454025
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/pmon_daemon_control.json
1+
../x86_64-arista_common/pmon_daemon_control_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/system_health_monitoring_config.json
1+
../x86_64-arista_common/system_health_monitoring_config_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/thermal_policy.json
1+
../x86_64-arista_common/thermal_policy_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/pmon_daemon_control.json
1+
../x86_64-arista_common/pmon_daemon_control_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/system_health_monitoring_config.json
1+
../x86_64-arista_common/system_health_monitoring_config_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/thermal_policy.json
1+
../x86_64-arista_common/thermal_policy_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/pmon_daemon_control.json
1+
../x86_64-arista_common/pmon_daemon_control_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/system_health_monitoring_config.json
1+
../x86_64-arista_common/system_health_monitoring_config_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/thermal_policy.json
1+
../x86_64-arista_common/thermal_policy_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/pmon_daemon_control.json
1+
../x86_64-arista_common/pmon_daemon_control_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/system_health_monitoring_config.json
1+
../x86_64-arista_common/system_health_monitoring_config_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/thermal_policy.json
1+
../x86_64-arista_common/thermal_policy_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/pmon_daemon_control.json
1+
../x86_64-arista_common/pmon_daemon_control_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/system_health_monitoring_config.json
1+
../x86_64-arista_common/system_health_monitoring_config_linecard.json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../x86_64-arista_common/thermal_policy.json
1+
../x86_64-arista_common/thermal_policy_linecard.json

device/marvell/arm64-marvell_db98cx8580_16cd-r0/FALCON16X25G/buffers_defaults_t1.j2

-36
This file was deleted.

0 commit comments

Comments
 (0)