Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into syslog_telemetry_…
Browse files Browse the repository at this point in the history
…shared
  • Loading branch information
renukamanavalan committed Aug 2, 2022
2 parents 3e9a073 + 847a290 commit b8e0b3d
Show file tree
Hide file tree
Showing 43 changed files with 630 additions and 308 deletions.
4 changes: 2 additions & 2 deletions .azure-pipelines/azure-pipelines-UpgrateVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
name: sonic-net/sonic-buildimage
ref: master
endpoint: build
endpoint: sonic-net

pool: sonicbld

Expand Down
12 changes: 10 additions & 2 deletions .azure-pipelines/azure-pipelines-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ parameters:
- name: 'jobGroups'
type: object
default: ''
- name: 'qemuOrCrossBuild'
type: boolean
default: false

jobs:
- template: azure-pipelines-image-template.yml
Expand All @@ -36,6 +39,9 @@ jobs:
docker_syncd_rpc_image: no
syncd_rpc_image: no
platform_rpc: no
${{ if parameters.qemuOrCrossBuild }}:
SONIC_SLAVE_DOCKER_DRIVER: 'vfs'
CACHE_MODE: 'none'
${{ if ne(parameters.jobGroups, '') }}:
jobGroups: ${{ parameters.jobGroups }}
${{ if eq(parameters.jobGroups, '') }}:
Expand Down Expand Up @@ -67,7 +73,8 @@ jobs:
platform_rpc: centec

- name: centec-arm64
pool: sonicbld-arm64
${{ if not(parameters.qemuOrCrossBuild) }}:
pool: sonicbld-arm64
timeoutInMinutes: 2880
variables:
PLATFORM_ARCH: arm64
Expand All @@ -81,7 +88,8 @@ jobs:
dbg_image: yes

- name: marvell-armhf
pool: sonicbld-armhf
${{ if not(parameters.qemuOrCrossBuild) }}:
pool: sonicbld-armhf
timeoutInMinutes: 2880
variables:
PLATFORM_ARCH: armhf
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/build-commonlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
name: sonic-net/sonic-buildimage
ref: master
endpoint: build
endpoint: sonic-net

jobs:
- template: .azure-pipelines/template-commonlib.yml@buildimage
4 changes: 2 additions & 2 deletions .azure-pipelines/docker-sonic-slave-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
name: sonic-net/sonic-buildimage
ref: master
endpoint: build
endpoint: sonic-net

schedules:
- cron: "0 8 * * *"
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/docker-sonic-slave-armhf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
name: sonic-net/sonic-buildimage
ref: master
endpoint: build
endpoint: sonic-net

schedules:
- cron: "0 8 * * *"
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/docker-sonic-slave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
name: sonic-net/sonic-buildimage
ref: master
endpoint: build
endpoint: sonic-net

schedules:
- cron: "0 8 * * *"
Expand Down
6 changes: 4 additions & 2 deletions .azure-pipelines/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ resources:
repositories:
- repository: buildimage
type: github
name: Azure/sonic-buildimage
name: sonic-net/sonic-buildimage
ref: master
endpoint: build
endpoint: sonic-net

trigger: none
pr: none
Expand All @@ -44,3 +44,5 @@ stages:
parameters:
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
jobFilters: none
${{ if contains(variables['Build.DefinitionName'], 'cross') }}:
qemuOrCrossBuild: true
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ resources:
endpoint: sonic-net
- repository: buildimage
type: github
name: Azure/sonic-buildimage
endpoint: build
name: sonic-net/sonic-buildimage
endpoint: sonic-net
ref: master

variables:
Expand Down Expand Up @@ -185,7 +185,7 @@ stages:
- job:
pool: sonictest-t1-lag
displayName: "kvmtest-t1-lag"
timeoutInMinutes: 300
timeoutInMinutes: 360

steps:
- template: .azure-pipelines/run-test-template.yml
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@
{%- endmacro %}

{% import 'buffers_extra_queues.j2' as defs1 with context %}
{% import 'buffers_extra_pgs.j2' as defs2 with context %}

{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
{{ defs1.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }}
{%- endmacro %}
{%- macro generate_pg_buffers_with_extra_lossy_pgs(port_names, port_names_require_no_extra_pgs) %}
{{ defs2.generate_pg_buffers_with_extra_lossy_pgs(port_names, port_names_require_no_extra_pgs) }}
{%- endmacro %}
67 changes: 67 additions & 0 deletions device/common/profiles/th2/7260/BALANCED/qos.json.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% if ('type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] == 'LeafRouter') %}
{% set different_dscp_to_tc_map = true %}
{%- macro generate_dscp_to_tc_map() %}
"DSCP_TO_TC_MAP": {
"AZURE": {
Expand Down Expand Up @@ -66,6 +67,72 @@
"61": "1",
"62": "1",
"63": "1"
},
"AZURE_UPLINK": {
"0" : "1",
"1" : "1",
"2" : "1",
"3" : "3",
"4" : "4",
"5" : "1",
"6" : "1",
"7" : "1",
"8" : "0",
"9" : "1",
"10": "1",
"11": "1",
"12": "1",
"13": "1",
"14": "1",
"15": "1",
"16": "1",
"17": "1",
"18": "1",
"19": "1",
"20": "1",
"21": "1",
"22": "1",
"23": "1",
"24": "1",
"25": "1",
"26": "1",
"27": "1",
"28": "1",
"29": "1",
"30": "1",
"31": "1",
"32": "1",
"33": "1",
"34": "1",
"35": "1",
"36": "1",
"37": "1",
"38": "1",
"39": "1",
"40": "1",
"41": "1",
"42": "1",
"43": "1",
"44": "1",
"45": "1",
"46": "5",
"47": "1",
"48": "7",
"49": "1",
"50": "1",
"51": "1",
"52": "1",
"53": "1",
"54": "1",
"55": "1",
"56": "1",
"57": "1",
"58": "1",
"59": "1",
"60": "1",
"61": "1",
"62": "1",
"63": "1"
}
},
{%- endmacro %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@
{%- endmacro %}

{% import 'buffers_extra_queues.j2' as defs1 with context %}
{% import 'buffers_extra_pgs.j2' as defs2 with context %}

{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
{{ defs1.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }}
{%- endmacro %}
{%- macro generate_pg_buffers_with_extra_lossy_pgs(port_names, port_names_require_no_extra_pgs) %}
{{ defs2.generate_pg_buffers_with_extra_lossy_pgs(port_names, port_names_require_no_extra_pgs) }}
{%- endmacro %}

66 changes: 66 additions & 0 deletions device/common/profiles/th2/7260/RDMA-CENTRIC/qos.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,72 @@
"61": "1",
"62": "1",
"63": "1"
},
"AZURE_UPLINK": {
"0" : "1",
"1" : "1",
"2" : "1",
"3" : "3",
"4" : "4",
"5" : "1",
"6" : "1",
"7" : "1",
"8" : "0",
"9" : "1",
"10": "1",
"11": "1",
"12": "1",
"13": "1",
"14": "1",
"15": "1",
"16": "1",
"17": "1",
"18": "1",
"19": "1",
"20": "1",
"21": "1",
"22": "1",
"23": "1",
"24": "1",
"25": "1",
"26": "1",
"27": "1",
"28": "1",
"29": "1",
"30": "1",
"31": "1",
"32": "1",
"33": "1",
"34": "1",
"35": "1",
"36": "1",
"37": "1",
"38": "1",
"39": "1",
"40": "1",
"41": "1",
"42": "1",
"43": "1",
"44": "1",
"45": "1",
"46": "5",
"47": "1",
"48": "7",
"49": "1",
"50": "1",
"51": "1",
"52": "1",
"53": "1",
"54": "1",
"55": "1",
"56": "1",
"57": "1",
"58": "1",
"59": "1",
"60": "1",
"61": "1",
"62": "1",
"63": "1"
}
},
{%- endmacro %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@
{% endfor %}
{% for port in port_names_active.split(',') %}
{% if port not in port_names_extra_queues.split(',') %}
{% if port_names_extra_queues|length > 0 %}
"{{ port }}|5-7": {
{% else %}
"{{ port }}|5-6": {
{% endif %}
"profile" : "q_lossy_profile"
}{% if not loop.last %},{% endif %}

Expand Down Expand Up @@ -187,7 +191,11 @@
},
{% endfor %}
{% for port in port_names_inactive.split(',') %}
{% if port_names_extra_queues|length > 0 %}
"{{ port }}|5-7": {
{% else %}
"{{ port }}|5-6": {
{% endif %}
"profile" : "q_lossy_profile"
}{% if not loop.last %},{% endif %}

Expand All @@ -204,7 +212,11 @@
},
{% endfor %}
{% for port in port_names_inactive.split(',') %}
{% if port_names_extra_queues|length > 0 %}
"{{ port }}|5-7": {
{% else %}
"{{ port }}|5-6": {
{% endif %}
"profile" : "egress_lossy_zero_profile"
}{% if not loop.last %},{% endif %}

Expand Down
Loading

0 comments on commit b8e0b3d

Please sign in to comment.