Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5f16e96
Add the test signing certificates for secure boot (#4866)
xumia Jun 29, 2020
ef994a1
syslog changes Multi ASIC platforms (#4738)
arlakshm Jun 30, 2020
22bf545
[sonic-platform-common] Update submodule (#4871)
vboykox Jun 30, 2020
ba234ab
[mellanox]: Update SAI to 1.16.5 (#4873)
keboliu Jun 30, 2020
6e1ae35
Support for connecting to DB in namespace via TCP port in multi-asic …
judyjoseph Jun 30, 2020
ed7fafc
[sonic-sairedis] sonic-sairedis submodule update (#4847)
smaheshm Jun 30, 2020
2187144
[docker-nat]: Updated the NAT iptables patch for 4.19 buster (#4843)
AkhileshSamineni Jul 1, 2020
243268f
Fix in libsaibcm for high CPU utilization of syncd (#4874)
smaheshm Jul 1, 2020
e66cb47
[sonic-buildimage] Changes to make network specific sysctl common for…
abdosi Jul 1, 2020
2e0aa4f
[pfx_filter]: Add a prefix mask by default in pfx_filter, when there …
pavel-shirshov Jul 2, 2020
b72fed7
Tests of FRR templates which rendered by sonic-cfggen (#4875)
pavel-shirshov Jul 2, 2020
cae65a4
[config]: Loopback Interface changes for multi ASIC devices (#4825)
arlakshm Jul 2, 2020
a4253af
Added new pip packages, required by kube.py (kubernetes CLI). (#4884)
renukamanavalan Jul 2, 2020
5f31842
Revert "[config]: Loopback Interface changes for multi ASIC devices (…
lguohan Jul 3, 2020
c4b5b00
[docker-orchagent]: make build depends only on sairedis package (#4880)
lguohan Jul 3, 2020
eebca91
[Dell]: DellEMC S6100 disable pericom/xlinx chipset (#4868)
Jul 3, 2020
4240c8c
[sonic-platform-daemons] Update submodule (#4887)
jleveque Jul 3, 2020
0a260b7
[docker-orchagent]: upgrade docker-orchagent to buster (#4889)
lguohan Jul 3, 2020
90dcbe1
[barefoot][SAI v1.6.3] Update SAI and platform packages to 20200701 (…
vboykox Jul 3, 2020
405033b
Fix dpkg cache hash value relative to file path issue (#4894)
xumia Jul 4, 2020
20698aa
Skip thermalctld for arista platforms (#4893)
zzhiyuan Jul 5, 2020
31baf38
"[config]: Multi ASIC loopback changes (#4895)
arlakshm Jul 6, 2020
1e20620
Add platfrom snj60b0-320f (TH3)
Jul 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.cache
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
# Run the 'touch cache.skip.common' command in the base directory to exclude the common files from caching
SONIC_COMMON_FILES_LIST := $(if $(wildcard cache.skip.common),, .platform slave.mk rules/functions Makefile.cache)
SONIC_COMMON_FLAGS_LIST := $(CONFIGURED_PLATFORM) \
$(SONIC_DPKG_CACHE_SOURCE) $(SONIC_DEBUGGING_ON) \
$(SONIC_DEBUGGING_ON) \
$(SONIC_PROFILING_ON) $(SONIC_ENABLE_SYNCD_RPC)
SONIC_COMMON_DPKG_LIST := debian/control debian/changelog debian/rules \
debian/compat debian/install debian/copyright
Expand Down
57 changes: 11 additions & 46 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -389,61 +389,26 @@ rm /files/lib/systemd/system/rsyslog.service/Service/ExecStart/arguments
set /files/lib/systemd/system/rsyslog.service/Service/ExecStart/arguments/1 -n
"

## Config sysctl
sudo mkdir -p $FILESYSTEM_ROOT/var/core

# Config sysctl
sudo augtool --autosave "
set /files/etc/sysctl.conf/kernel.core_pattern '|/usr/bin/coredump-compress %e %t %p'

set /files/etc/sysctl.conf/kernel.softlockup_panic 1
set /files/etc/sysctl.conf/kernel.panic 10
set /files/etc/sysctl.conf/vm.panic_on_oom 2
set /files/etc/sysctl.conf/fs.suid_dumpable 2
" -r $FILESYSTEM_ROOT

set /files/etc/sysctl.conf/net.ipv4.conf.default.forwarding 1
set /files/etc/sysctl.conf/net.ipv4.conf.all.forwarding 1
set /files/etc/sysctl.conf/net.ipv4.conf.eth0.forwarding 0

set /files/etc/sysctl.conf/net.ipv4.conf.default.arp_accept 0
set /files/etc/sysctl.conf/net.ipv4.conf.default.arp_announce 0
set /files/etc/sysctl.conf/net.ipv4.conf.default.arp_filter 0
set /files/etc/sysctl.conf/net.ipv4.conf.default.arp_notify 0
set /files/etc/sysctl.conf/net.ipv4.conf.default.arp_ignore 0
set /files/etc/sysctl.conf/net.ipv4.conf.all.arp_accept 0
set /files/etc/sysctl.conf/net.ipv4.conf.all.arp_announce 1
set /files/etc/sysctl.conf/net.ipv4.conf.all.arp_filter 0
set /files/etc/sysctl.conf/net.ipv4.conf.all.arp_notify 1
set /files/etc/sysctl.conf/net.ipv4.conf.all.arp_ignore 2

set /files/etc/sysctl.conf/net.ipv4.neigh.default.base_reachable_time_ms 1800000
set /files/etc/sysctl.conf/net.ipv6.neigh.default.base_reachable_time_ms 1800000
set /files/etc/sysctl.conf/net.ipv4.neigh.default.gc_thresh1 1024
set /files/etc/sysctl.conf/net.ipv6.neigh.default.gc_thresh1 1024
set /files/etc/sysctl.conf/net.ipv4.neigh.default.gc_thresh2 2048
set /files/etc/sysctl.conf/net.ipv6.neigh.default.gc_thresh2 2048
set /files/etc/sysctl.conf/net.ipv4.neigh.default.gc_thresh3 4096
set /files/etc/sysctl.conf/net.ipv6.neigh.default.gc_thresh3 4096

set /files/etc/sysctl.conf/net.ipv6.conf.default.forwarding 1
set /files/etc/sysctl.conf/net.ipv6.conf.all.forwarding 1
set /files/etc/sysctl.conf/net.ipv6.conf.eth0.forwarding 0

set /files/etc/sysctl.conf/net.ipv6.conf.default.accept_dad 0
set /files/etc/sysctl.conf/net.ipv6.conf.all.accept_dad 0
set /files/etc/sysctl.conf/net.ipv6.conf.eth0.accept_dad 0

set /files/etc/sysctl.conf/net.ipv6.conf.default.keep_addr_on_down 1
set /files/etc/sysctl.conf/net.ipv6.conf.all.keep_addr_on_down 1
set /files/etc/sysctl.conf/net.ipv6.conf.eth0.keep_addr_on_down 1

set /files/etc/sysctl.conf/net.ipv4.tcp_l3mdev_accept 1
set /files/etc/sysctl.conf/net.ipv4.udp_l3mdev_accept 1

set /files/etc/sysctl.conf/net.core.rmem_max 2097152
set /files/etc/sysctl.conf/net.core.wmem_max 2097152

set /files/etc/sysctl.conf/net.core.somaxconn 512
sysctl_net_cmd_string=""
while read line; do
[[ "$line" =~ ^#.*$ ]] && continue
sysctl_net_conf_key=`echo $line | awk -F '=' '{print $1}'`
sysctl_net_conf_value=`echo $line | awk -F '=' '{print $2}'`
sysctl_net_cmd_string=$sysctl_net_cmd_string"set /files/etc/sysctl.conf/$sysctl_net_conf_key $sysctl_net_conf_value"$'\n'
done < files/image_config/sysctl/sysctl-net.conf

" -r $FILESYSTEM_ROOT
sudo augtool --autosave "$sysctl_net_cmd_string" -r $FILESYSTEM_ROOT

## docker Python API package is needed by Ansible docker module
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'docker==4.1.0'
Expand Down
10 changes: 9 additions & 1 deletion build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,15 @@ elif [ "$IMAGE_TYPE" = "aboot" ]; then
if [ "$SONIC_ENABLE_IMAGE_SIGNATURE" = "y" ]; then
TARGET_CA_CERT="$TARGET_PATH/ca.cert"
rm -f "$TARGET_CA_CERT"
[ -f "$CA_CERT" ] && cp "$CA_CERT" "$TARGET_CA_CERT"

# If the ca certificate does not exist, the test certificate will be used to sign the image
if [ ! -f "$CA_CERT" ]; then
TEST_CERT_PATH=files/image_config/secureboot/test-certs
CA_CERT="${TEST_CERT_PATH}/ca.cert"
SIGNING_KEY="${TEST_CERT_PATH}/signing.key"
SIGNING_CERT="${TEST_CERT_PATH}/signing.cert"
fi
cp "$CA_CERT" "$TARGET_CA_CERT"
./scripts/sign_image.sh -i "$OUTPUT_ABOOT_IMAGE" -k "$SIGNING_KEY" -c "$SIGNING_CERT" -a "$TARGET_CA_CERT"
fi
else
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't0' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

{%- set default_cable = '40m' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"egress_lossy_pool": {
"size": "67108864",
"type": "egress",
"mode": "dynamic"
},
"ingress_lossless_pool": {
"mode": "dynamic",
"size": "59001152",
"xoff": "7428992",
"type": "ingress"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"static_th":"67108864"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"0",
"dynamic_th":"3"
}
},
{%- endmacro %}

{%- macro generate_pg_profils(port_names_active) %}
"BUFFER_PG": {
"{{ port_names_active }}|0": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}
},
{%- endmacro %}

{% macro generate_queue_buffers(port_names_active) %}
"BUFFER_QUEUE": {
"{{ port_names_active }}|0-6": {
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
}
}
{% endmacro %}

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

{%- set default_cable = '40m' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"egress_lossy_pool": {
"size": "67108864",
"type": "egress",
"mode": "dynamic"
},
"ingress_lossless_pool": {
"mode": "dynamic",
"size": "59001152",
"xoff": "7428992",
"type": "ingress"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"static_th":"67108864"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"0",
"dynamic_th":"3"
}
},
{%- endmacro %}

{%- macro generate_pg_profils(port_names_active) %}
"BUFFER_PG": {
"{{ port_names_active }}|0": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}
},
{%- endmacro %}

{% macro generate_queue_buffers(port_names_active) %}
"BUFFER_QUEUE": {
"{{ port_names_active }}|0-6": {
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
}
}
{% endmacro %}

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
10000 5m 1270 0 190500 -2 2540
25000 5m 1270 0 190500 -2 2540
40000 5m 1270 0 190500 -2 2540
50000 5m 1270 0 190500 -2 2540
100000 5m 1270 0 190500 -2 2540
200000 5m 1270 0 190500 -2 2540
400000 5m 1270 0 190500 -2 2540
10000 40m 1270 0 190500 -2 2540
25000 40m 1270 0 190500 -2 2540
40000 40m 1270 0 190500 -2 2540
50000 40m 1270 0 190500 -2 2540
100000 40m 1270 0 190500 -2 2540
200000 40m 1270 0 190500 -2 2540
400000 40m 1270 0 190500 -2 2540
10000 300m 1270 0 190500 -2 2540
25000 300m 1270 0 190500 -2 2540
40000 300m 1270 0 190500 -2 2540
50000 300m 1270 0 190500 -2 2540
100000 300m 1270 0 190500 -2 2540
200000 300m 1270 0 190500 -2 2540
400000 300m 1270 0 190500 -2 2540
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# name lanes alias index speed
Ethernet0 1,2,3,4,5,6,7,8 Ethernet1/0/1 0 400000
Ethernet8 9,10,11,12,13,14,15,16 Ethernet1/0/9 1 400000
Ethernet16 17,18,19,20,21,22,23,24 Ethernet1/0/17 2 400000
Ethernet24 25,26,27,28,29,30,31,32 Ethernet1/0/25 3 400000
Ethernet32 33,34,35,36,37,38,39,40 Ethernet1/0/33 4 400000
Ethernet40 41,42,43,44,45,46,47,48 Ethernet1/0/41 5 400000
Ethernet48 49,50,51,52,53,54,55,56 Ethernet1/0/48 6 400000
Ethernet56 57,58,59,60,61,62,63,64 Ethernet1/0/57 7 400000
Ethernet64 65,66,67,68,69,70,71,72 Ethernet1/0/65 8 400000
Ethernet72 73,74,75,76,77,78,79,80 Ethernet1/0/73 9 400000
Ethernet80 81,82,83,84,85,86,87,88 Ethernet1/0/81 10 400000
Ethernet88 89,90,91,92,93,94,95,96 Ethernet1/0/89 11 400000
Ethernet96 97,98,99,100,101,102,103,104 Ethernet1/0/97 12 400000
Ethernet104 105,106,107,108,109,110,111,112 Ethernet1/0/105 13 400000
Ethernet112 113,114,115,116,117,118,119,120 Ethernet1/0/113 14 400000
Ethernet120 121,122,123,124,125,126,127,128 Ethernet1/0/121 15 400000
Ethernet128 129,130,131,132,133,134,135,136 Ethernet1/0/129 16 400000
Ethernet136 137,138,139,140,141,142,143,144 Ethernet1/0/137 17 400000
Ethernet144 145,146,147,148,149,150,151,152 Ethernet1/0/145 18 400000
Ethernet152 153,154,155,156,157,158,159,160 Ethernet1/0/153 19 400000
Ethernet160 161,162,163,164,165,166,167,168 Ethernet1/0/161 20 400000
Ethernet168 169,170,171,172,173,174,175,176 Ethernet1/0/169 21 400000
Ethernet176 177,178,179,180,181,182,183,184 Ethernet1/0/177 22 400000
Ethernet184 185,186,187,188,189,190,191,192 Ethernet1/0/185 23 400000
Ethernet192 193,194,195,196,197,198,199,200 Ethernet1/0/193 24 400000
Ethernet200 201,202,203,204,205,206,207,208 Ethernet1/0/201 25 400000
Ethernet208 209,210,211,212,213,214,215,216 Ethernet1/0/209 26 400000
Ethernet216 217,218,219,220,221,222,223,224 Ethernet1/0/217 27 400000
Ethernet224 225,226,227,228,229,230,231,232 Ethernet1/0/225 28 400000
Ethernet232 233,234,235,236,237,238,239,240 Ethernet1/0/233 29 400000
Ethernet240 241,242,243,244,245,246,247,248 Ethernet1/0/241 30 400000
Ethernet248 249,250,251,252,253,254,255,256 Ethernet1/0/249 31 400000
Ethernet256 257 Ethernet1/0/257 32 10000
Ethernet257 258 Ethernet1/0/258 33 10000
Loading