[BFN] Update configuration files (#9913)

* [Barefoot] update switch-tna-sai.conf file

* remove deprecated conf files

* [Barefoot] update switch-tna-sai.conf file for Accton wedge100bf_32qs platform

* pdated switch-tna-sai.conf
This commit is contained in:
Kostiantyn Yarovyi 2022-03-09 06:27:08 +02:00 committed by GitHub
parent d112e7cca9
commit bf5f9c2918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 105 additions and 316 deletions

View File

@ -1,17 +1,9 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "sds_fw_path": "share/tofino_sds_fw/avago/firmware",
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0", "instance": 0
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
"p4_devices": [ "p4_devices": [
@ -28,7 +20,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -36,5 +27,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,33 +0,0 @@
{
"chip_list": [
{
"id": "asic-0",
"chip_family": "Tofino",
"instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:1c.4/0000:07:00.0",
"pcie_domain": 0,
"pcie_bus": 7,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
}
],
"instance": 0,
"p4_program_list": [
{
"id": "pgm-0",
"instance": 0,
"path": "switch",
"program-name": "switch",
"pd": "lib/tofinopd/switch/libpd.so",
"pd-thrift": "lib/tofinopd/switch/libpdthrift.so",
"table-config": "share/tofinopd/switch/context.json",
"tofino-bin": "share/tofinopd/switch/tofino.bin",
"switchapi": "lib/libswitchapi.so",
"sai": "lib/libsai.so",
"switchapi_port_add": false,
"non_default_port_ppgs": 5
}
]
}

View File

@ -1,16 +1,8 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware" "sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
@ -27,7 +19,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -35,5 +26,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,33 +0,0 @@
{
"chip_list": [
{
"id": "asic-0",
"chip_family": "Tofino",
"instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:1c.4/0000:07:00.0",
"pcie_domain": 0,
"pcie_bus": 7,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
}
],
"instance": 0,
"p4_program_list": [
{
"id": "pgm-0",
"instance": 0,
"path": "switch",
"program-name": "switch",
"pd": "lib/tofinopd/switch/libpd.so",
"pd-thrift": "lib/tofinopd/switch/libpdthrift.so",
"table-config": "share/tofinopd/switch/context.json",
"tofino-bin": "share/tofinopd/switch/tofino.bin",
"switchapi": "lib/libswitchapi.so",
"sai": "lib/libsai.so",
"switchapi_port_add": false,
"non_default_port_ppgs": 5
}
]
}

View File

@ -1,16 +1,8 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware" "sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
@ -27,7 +19,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -35,5 +26,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,33 +0,0 @@
{
"chip_list": [
{
"id": "asic-0",
"chip_family": "Tofino",
"instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:1c.4/0000:07:00.0",
"pcie_domain": 0,
"pcie_bus": 7,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
}
],
"instance": 0,
"p4_program_list": [
{
"id": "pgm-0",
"instance": 0,
"path": "switch",
"program-name": "switch",
"pd": "lib/tofinopd/switch/libpd.so",
"pd-thrift": "lib/tofinopd/switch/libpdthrift.so",
"table-config": "share/tofinopd/switch/context.json",
"tofino-bin": "share/tofinopd/switch/tofino.bin",
"switchapi": "lib/libswitchapi.so",
"sai": "lib/libsai.so",
"switchapi_port_add": false,
"non_default_port_ppgs": 5
}
]
}

View File

@ -1,16 +1,8 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware" "sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
@ -27,7 +19,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -35,5 +26,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,33 +0,0 @@
{
"chip_list": [
{
"id": "asic-0",
"chip_family": "Tofino",
"instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:1c.4/0000:07:00.0",
"pcie_domain": 0,
"pcie_bus": 7,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
}
],
"instance": 0,
"p4_program_list": [
{
"id": "pgm-0",
"instance": 0,
"path": "switch",
"program-name": "switch",
"pd": "lib/tofinopd/switch/libpd.so",
"pd-thrift": "lib/tofinopd/switch/libpdthrift.so",
"table-config": "share/tofinopd/switch/context.json",
"tofino-bin": "share/tofinopd/switch/tofino.bin",
"switchapi": "lib/libswitchapi.so",
"sai": "lib/libsai.so",
"switchapi_port_add": false,
"non_default_port_ppgs": 5
}
]
}

View File

@ -1,16 +1,8 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware" "sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
@ -27,7 +19,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -35,5 +26,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,17 +1,9 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino2", "chip_family": "Tofino2",
"instance": 0, "sds_fw_path": "share/tofino_sds_fw/avago/firmware",
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0", "instance": 0
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
"p4_devices": [ "p4_devices": [
@ -20,21 +12,28 @@
"agent0": "lib/platform/x86_64-accton_as9516bf_32d-r0/libpltfm_mgr.so", "agent0": "lib/platform/x86_64-accton_as9516bf_32d-r0/libpltfm_mgr.so",
"p4_programs": [ "p4_programs": [
{ {
"program-name": "switch",
"bfrt-config": "share/switch/bf-rt.json",
"p4_pipelines": [ "p4_pipelines": [
{ {
"p4_pipeline_name": "pipe", "p4_pipeline_name": "pipe",
"config": "share/switch/pipe/tofino2.bin", "config": "share/switch/pipe/tofino2.bin",
"context": "share/switch/pipe/context.json" "context": "share/switch/pipe/context.json"
} }
], ],
"program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
"non_default_port_ppgs": 5 "non_default_port_ppgs": 5
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,34 +0,0 @@
{
"chip_list": [
{
"id": "asic-0",
"chip_family": "Tofino",
"instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
}
],
"instance": 0,
"p4_program_list": [
{
"id": "pgm-0",
"instance": 0,
"path": "switch",
"program-name": "switch",
"pd": "lib/tofinopd/switch/libpd.so",
"pd-thrift": "lib/tofinopd/switch/libpdthrift.so",
"table-config": "share/tofinopd/switch/context.json",
"tofino-bin": "share/tofinopd/switch/tofino.bin",
"switchapi": "lib/libswitchapi.so",
"sai": "lib/libsai.so",
"agent0": "lib/platform/x86_64-accton_wedge100bf_32x-r0/libpltfm_mgr.so",
"switchapi_port_add": false,
"non_default_port_ppgs": 5
}
]
}

View File

@ -1,17 +1,9 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "sds_fw_path": "share/tofino_sds_fw/avago/firmware",
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0", "instance": 0
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
"p4_devices": [ "p4_devices": [
@ -28,7 +20,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -36,5 +27,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,34 +0,0 @@
{
"chip_list": [
{
"id": "asic-0",
"chip_family": "Tofino",
"instance": 0,
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
}
],
"instance": 0,
"p4_program_list": [
{
"id": "pgm-0",
"instance": 0,
"path": "switch",
"program-name": "switch",
"pd": "lib/tofinopd/switch/libpd.so",
"pd-thrift": "lib/tofinopd/switch/libpdthrift.so",
"table-config": "share/tofinopd/switch/context.json",
"tofino-bin": "share/tofinopd/switch/tofino.bin",
"switchapi": "lib/libswitchapi.so",
"sai": "lib/libsai.so",
"agent0": "lib/platform/x86_64-accton_wedge100bf_65x-r0/libpltfm_mgr.so",
"switchapi_port_add": false,
"non_default_port_ppgs": 5
}
]
}

View File

@ -1,17 +1,9 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "sds_fw_path": "share/tofino_sds_fw/avago/firmware",
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0", "instance": 0
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
"p4_devices": [ "p4_devices": [
@ -28,7 +20,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -36,5 +27,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,17 +1,9 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "sds_fw_path": "share/tofino_sds_fw/avago/firmware",
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0", "instance": 0
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
"p4_devices": [ "p4_devices": [
@ -28,7 +20,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -36,5 +27,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,17 +1,9 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "sds_fw_path": "share/tofino_sds_fw/avago/firmware",
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0", "instance": 0
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
"p4_devices": [ "p4_devices": [
@ -28,7 +20,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -36,5 +27,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }

View File

@ -1,17 +1,9 @@
{ {
"instance": 0,
"chip_list": [ "chip_list": [
{ {
"id": "asic-0",
"chip_family": "Tofino", "chip_family": "Tofino",
"instance": 0, "sds_fw_path": "share/tofino_sds_fw/avago/firmware",
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0", "instance": 0
"pcie_domain": 0,
"pcie_bus": 5,
"pcie_fn": 0,
"pcie_dev": 0,
"pcie_int_mode": 1,
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
} }
], ],
"p4_devices": [ "p4_devices": [
@ -28,7 +20,6 @@
} }
], ],
"program-name": "switch", "program-name": "switch",
"sai": "lib/libsai.so",
"bfrt-config": "share/switch/bf-rt.json", "bfrt-config": "share/switch/bf-rt.json",
"model_json_path" : "share/switch/aug_model.json", "model_json_path" : "share/switch/aug_model.json",
"switchapi_port_add": false, "switchapi_port_add": false,
@ -36,5 +27,13 @@
} }
] ]
} }
],
"switch_options": [
{
"device-id": 0,
"model_json_path": "share/switch/aug_model.json",
"non_default_port_ppgs": 5,
"switchapi_port_add": false
}
] ]
} }