Skip to content

Commit 4f35cce

Browse files
akokhanlguohan
authored andcommitted
[bfn] added TNA config for all devices (#3029)
Signed-off-by: Andriy Kokhan <akokhan@barefootnetworks.com>
1 parent 9cf34ec commit 4f35cce

5 files changed

Lines changed: 198 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"instance": 0,
3+
"chip_list": [
4+
{
5+
"id": "asic-0",
6+
"chip_family": "Tofino",
7+
"instance": 0,
8+
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
9+
"pcie_domain": 0,
10+
"pcie_bus": 5,
11+
"pcie_fn": 0,
12+
"pcie_dev": 0,
13+
"pcie_int_mode": 1,
14+
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
15+
}
16+
],
17+
"p4_devices": [
18+
{
19+
"device-id": 0,
20+
"p4_programs": [
21+
{
22+
"p4_pipelines": [
23+
{
24+
"p4_pipeline_name": "pipe",
25+
"config": "share/tofinopd/switch/pipe/tofino.bin",
26+
"context": "share/tofinopd/switch/pipe/context.json"
27+
}
28+
],
29+
"program-name": "switch",
30+
"switchsai": "lib/libswitchsai.so",
31+
"bfrt-config": "share/tofinopd/switch/bf-rt.json",
32+
"model_json_path" : "share/switch/aug_model.json",
33+
"switchapi_port_add": false,
34+
"non_default_port_ppgs": 5
35+
}
36+
]
37+
}
38+
]
39+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"instance": 0,
3+
"chip_list": [
4+
{
5+
"id": "asic-0",
6+
"chip_family": "Tofino",
7+
"instance": 0,
8+
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
9+
"pcie_domain": 0,
10+
"pcie_bus": 5,
11+
"pcie_fn": 0,
12+
"pcie_dev": 0,
13+
"pcie_int_mode": 1,
14+
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
15+
}
16+
],
17+
"p4_devices": [
18+
{
19+
"device-id": 0,
20+
"p4_programs": [
21+
{
22+
"p4_pipelines": [
23+
{
24+
"p4_pipeline_name": "pipe",
25+
"config": "share/tofinopd/switch/pipe/tofino.bin",
26+
"context": "share/tofinopd/switch/pipe/context.json"
27+
}
28+
],
29+
"program-name": "switch",
30+
"switchsai": "lib/libswitchsai.so",
31+
"bfrt-config": "share/tofinopd/switch/bf-rt.json",
32+
"model_json_path" : "share/switch/aug_model.json",
33+
"switchapi_port_add": false,
34+
"non_default_port_ppgs": 5
35+
}
36+
]
37+
}
38+
]
39+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"instance": 0,
3+
"chip_list": [
4+
{
5+
"id": "asic-0",
6+
"chip_family": "Tofino",
7+
"instance": 0,
8+
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
9+
"pcie_domain": 0,
10+
"pcie_bus": 5,
11+
"pcie_fn": 0,
12+
"pcie_dev": 0,
13+
"pcie_int_mode": 1,
14+
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
15+
}
16+
],
17+
"p4_devices": [
18+
{
19+
"device-id": 0,
20+
"agent0": "lib/platform/x86_64-ingrasys_s9180_32x-r0/libpltfm_mgr.so",
21+
"p4_programs": [
22+
{
23+
"p4_pipelines": [
24+
{
25+
"p4_pipeline_name": "pipe",
26+
"config": "share/tofinopd/switch/pipe/tofino.bin",
27+
"context": "share/tofinopd/switch/pipe/context.json"
28+
}
29+
],
30+
"program-name": "switch",
31+
"switchsai": "lib/libswitchsai.so",
32+
"bfrt-config": "share/tofinopd/switch/bf-rt.json",
33+
"model_json_path" : "share/switch/aug_model.json",
34+
"switchapi_port_add": false,
35+
"non_default_port_ppgs": 5
36+
}
37+
]
38+
}
39+
]
40+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"instance": 0,
3+
"chip_list": [
4+
{
5+
"id": "asic-0",
6+
"chip_family": "Tofino",
7+
"instance": 0,
8+
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
9+
"pcie_domain": 0,
10+
"pcie_bus": 5,
11+
"pcie_fn": 0,
12+
"pcie_dev": 0,
13+
"pcie_int_mode": 1,
14+
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
15+
}
16+
],
17+
"p4_devices": [
18+
{
19+
"device-id": 0,
20+
"agent0": "lib/platform/x86_64-ingrasys_s9280_64x-r0/libpltfm_mgr.so",
21+
"p4_programs": [
22+
{
23+
"p4_pipelines": [
24+
{
25+
"p4_pipeline_name": "pipe",
26+
"config": "share/tofinopd/switch/pipe/tofino.bin",
27+
"context": "share/tofinopd/switch/pipe/context.json"
28+
}
29+
],
30+
"program-name": "switch",
31+
"switchsai": "lib/libswitchsai.so",
32+
"bfrt-config": "share/tofinopd/switch/bf-rt.json",
33+
"model_json_path" : "share/switch/aug_model.json",
34+
"switchapi_port_add": false,
35+
"non_default_port_ppgs": 5
36+
}
37+
]
38+
}
39+
]
40+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"instance": 0,
3+
"chip_list": [
4+
{
5+
"id": "asic-0",
6+
"chip_family": "Tofino",
7+
"instance": 0,
8+
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0",
9+
"pcie_domain": 0,
10+
"pcie_bus": 5,
11+
"pcie_fn": 0,
12+
"pcie_dev": 0,
13+
"pcie_int_mode": 1,
14+
"sds_fw_path": "share/tofino_sds_fw/avago/firmware"
15+
}
16+
],
17+
"p4_devices": [
18+
{
19+
"device-id": 0,
20+
"agent0": "lib/platform/x86_64-wnc_osw1800-r0/libpltfm_mgr.so",
21+
"p4_programs": [
22+
{
23+
"p4_pipelines": [
24+
{
25+
"p4_pipeline_name": "pipe",
26+
"config": "share/tofinopd/switch/pipe/tofino.bin",
27+
"context": "share/tofinopd/switch/pipe/context.json"
28+
}
29+
],
30+
"program-name": "switch",
31+
"switchsai": "lib/libswitchsai.so",
32+
"bfrt-config": "share/tofinopd/switch/bf-rt.json",
33+
"model_json_path" : "share/switch/aug_model.json",
34+
"switchapi_port_add": false,
35+
"non_default_port_ppgs": 5
36+
}
37+
]
38+
}
39+
]
40+
}

0 commit comments

Comments
 (0)