Skip to content

Commit 4b5bdcd

Browse files
committed
Merge remote-tracking branch 'up/main'
2 parents c33ff05 + ced2e0e commit 4b5bdcd

File tree

4 files changed

+32
-7
lines changed

4 files changed

+32
-7
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ Some things not included, that one must get from Intel:
4040
+ BSPs (Board Support Packages) that enable the SDE to access and
4141
configure hardware on a physical board, e.g. configuring physical
4242
Ethernet ports and manage related components, such as repeaters,
43-
retimers, SFPs, QSFPs, etc.
43+
retimers, SFPs, QSFPs, etc. Reach out to Intel
44+
([email protected]) for the BSP package.
4445
+ ASIC-specific Serdes drivers. These are not necessary for running
4546
the simulation model, but essential for running the code on the real
4647
ASICs. See instructions in the directory `hw`. The necessary code

hw/rdc_setup.sh

+11-5
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,25 @@ rdc_setup(){
3232
cp $RDC_BFD/$SUBDIR/CMakeLists.txt $OS_BFD/$SUBDIR/CMakeLists.txt
3333

3434
SUBDIR="src"
35-
DIRS=("alphawave" "credo" "firmware" "microp")
35+
DIRS=("alphawave" "credo" "avago" "microp")
3636
replace "$SUBDIR" 1 "${DIRS[@]}"
3737
cp $RDC_BFD/$SUBDIR/CMakeLists.txt $OS_BFD/$SUBDIR/CMakeLists.txt
3838

39+
cp $RDC_BFD/libavago* $OS_BFD
40+
41+
SUBDIR="include/avago"
42+
FILES=("aapl.h" "avago_aapl.h" "avago_dox.h")
43+
replace "$SUBDIR" 0 "${FILES[@]}"
44+
3945
SUBDIR="src/port_mgr"
4046
# If port_mgr_dev.c or port_mgr_physical_dev.c are modified by the open source community, those changes must be merged manually by the user
41-
FILES=("CMakeLists.txt" "bf_ll_umac3_if.c" "bf_ll_umac_4_if.c" "port_mgr_dev.c" "post_mgr_physical_dev.c" "port_mgr_umac_access.c" "t3-csr/tf3-csr-gen.py")
42-
DIRS=("csr" "crdo" "aw-gen")
47+
FILES=("CMakeLists.txt" "bf_ll_umac3_if.c" "bf_ll_umac4_if.c" "port_mgr_dev.c" "port_mgr_physical_dev.h" "port_mgr_umac_access.c")
48+
DIRS=("csr" "crdo" "aw-gen" "t3-csr")
4349
replace "$SUBDIR" 1 "${DIRS[@]}"
4450
replace "$SUBDIR" 0 "${FILES[@]}"
4551

4652
SUBDIR="src/port_mgr/port_mgr_tof1"
47-
FILES=("bf_serdes_if.c" "comira_reg_access_autogen.c" "comira_reg_access_autogen.h" "comira_reg_def_autogen.h" "comira_reg_strs.h" "port_mgr_av_sd.c" "port_mgr_av_sd_an.c" "port_mgr_mac.c" "port_mgr_port_diag.c" "port_mgr_serdes.c" "port_mgr_serdes_diag.c" "port_mgr_serdes_sbus_map.c" "port_mgr_ucli.c")
53+
FILES=("bf_serdes_if.c" "comira_reg_access_autogen.c" "comira_reg_access_autogen.h" "comira_reg_def_autogen.h" "comira_reg_strs.h" "port_mgr_av_sd.c" "port_mgr_av_sd.h" "port_mgr_av_sd_an.c" "port_mgr_av_sd_an.h" "port_mgr_mac.c" "port_mgr_port_diag.c" "port_mgr_serdes.c" "port_mgr_serdes_diag.c" "port_mgr_serdes_sbus_map.c" "port_mgr_ucli.c" "bf_fsm_hdlrs.c" )
4854
replace "$SUBDIR" 0 "${FILES[@]}"
4955

5056
SUBDIR="src/port_mgr/port_mgr_tof2"
@@ -54,7 +60,7 @@ rdc_setup(){
5460
SUBDIR="src/port_mgr/port_mgr_tof3"
5561
# If aw_if.h, aw_mss.h, or bf_tof3_serdes_utils.h are modified by the open source community, those changes must be merged manually by the user
5662
FILES=("aw_driver_sim.c" "aw_driver_sim.h" "aw_if.h" "aw_io.c" "aw_io.h" "aw_mss.h" "aw_reg_dbg.c" "aw_reg_dbg.h" "aw_types.h" "aw_vector_types.h" "bf_aw_pmd.c" "bf_aw_vfld_pmd.c" "bf_ll_tof3_eth400g_app_rspec_if.c" "bf_ll_tof3_eth400g_app_rspec_if.h" "bf_ll_tof3_eth400g_mac_rspec_if.c" "bf_ll_tof3_eth400g_mac_rspec_if.h" "bf_ll_tof3_eth400g_sys_rspec_if.c" "bf_ll_tof3_eth400g_sys_rspec_if.h" "bf_tof3_serdes_if.c" "bf_tof3_serdes_utils.c" "bf_tof3_serdes_utils.h" "port_mgr_tof3.c" "port_mgr_tof3_dev.c" "port_mgr_tof3_map.c" "port_mgr_tof3_microp.c" "port_mgr_tof3_port.c" "port_mgr_tof3_serdes.c" "port_mgr_tof3_serdes_map.c" "port_mgr_tof3_tmac.c" "svdpi.c" "svdpi.h" "tmac_access.c" "tmac_access.h" "tof3-autogen-required-headers.h" "tof3_eth400g_app_rspec_access.c" "tof3_eth400g_app_rspec_access.h" "tof3_eth400g_mac_rspec_access.c" "tof3_eth400g_mac_rspec_access.h" "tof3_eth400g_sys_rspec_access.c" "tof3_eth400g_sys_rspec_access.h" "vfld_vec_name.h" "vfld_vec_type.h")
57-
DIRS=("aw-reg-gen" "aw_16ln")
63+
DIRS=("aw-reg-gen" "aw_16ln" "aw_4ln")
5864
replace "$SUBDIR" 1 "${DIRS[@]}"
5965
replace "$SUBDIR" 0 "${FILES[@]}"
6066
}

p4studio/workspace/sde_workspace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def bsp_path(self) -> Optional[Path]:
7171

7272
def _sde_version(self) -> Optional[str]:
7373
manifest_possible_file_paths = glob(str(self.root_path / "bf-sde-*.manifest"))
74-
if manifest_possible_file_paths == 0:
74+
if len(manifest_possible_file_paths) == 0:
7575
return None
7676
manifest_filename = Path(manifest_possible_file_paths[0]).name
7777
regex = r"bf-sde-(?P<version>\d+\.\d+\.\d+(?:\.\d+)*(?:-cpr|-pr)?).manifest"

pkgsrc/ptf-modules/bf-pktpy/bf_pktpy/ptf/packet_pktpy.py

+18
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
see PTF documentation (section "Pluggable packet manipulation module").
2020
"""
2121
import bf_pktpy.packets
22+
import bf_pktpy.commands
2223
from bf_pktpy.all import hexdump as bf_pktpy_hexdump, ls as bf_pktpy_ls
2324
from ptf import config
2425

@@ -119,3 +120,20 @@ def get_erspan_alternative():
119120
# bf_pktpy implementation of hexdump
120121
hexdump = bf_pktpy_hexdump
121122
ls = bf_pktpy_ls
123+
124+
# The names below are assigned here so that, like the other names
125+
# above, they can be used by importers of the ptf.packet module as if
126+
# they were defined inside of ptf.packet, and they are commonly
127+
# available as ptf.packet.<name> regardless whether you use scapy or
128+
# bf-pktpy as the packet manipulation module.
129+
130+
send = bf_pktpy.commands.send
131+
sendp = bf_pktpy.commands.sendp
132+
sr = bf_pktpy.commands.sr
133+
sr1 = bf_pktpy.commands.sr1
134+
srp = bf_pktpy.commands.srp
135+
srp1 = bf_pktpy.commands.srp1
136+
srloop = bf_pktpy.commands.srloop
137+
srploop = bf_pktpy.commands.srploop
138+
sniff = bf_pktpy.commands.sniff
139+
bridge_and_sniff = bf_pktpy.commands.bridge_and_sniff

0 commit comments

Comments
 (0)