[P4] T4P4S Debug
Péter Vörös
vpetya at mensa.hu
Wed Nov 21 12:41:15 CET 2018
Sziasztok!
Kidebuggoltuk mi az elsődleges hiba oka:
src/hardware_dep/dpdk/dpdk_nicon.c 51.sor
for (unsigned portid = 0; portid < RTE_MAX_ETHPORTS; portid++) {
Az RTE_MAX_ETHPORTS az 32, emiatt döglik el a csomagtovábításunk, ezért hal
el a 2. porton a send burst.
Ideiglenes bugfix:
for (unsigned portid = 0; portid < 2; portid++) {
Levi + infó a debuggoláshoz:
Így tudod elindítani gdb-vel a programokat:
Controller:
./src/hardware_dep/shared/ctrl_plane/dpdk_portfwd_controller
examples/portfwd_table.txt &
Switch:
sudo gdb --args
/home/jenkins/t4p4s16/t4p4s/build/portfwd at std/build/app/portfwd
-c 0x3 -n 1 -w 0000:0b:00.0 -w 0000:0b:00.1 -- -p 0x3 --config
"\"(0,0,0),(1,0,1)\""
Üdv,
Peti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://plc.inf.elte.hu/pipermail/p4/attachments/20181121/7952c1f4/attachment.html>
More information about the P4
mailing list