[P4] T4P4S infók
Péter Vörös
vpetya at mensa.hu
Fri Nov 16 15:38:34 CET 2018
Sziasztok!
Elkezdtem debuggolni mi a gond a t4p4s-szal.
Az 1. gond a Cavummal, hogy ott az Ericssonos gépekről random csomagok
beesnek ha pktgen-t indítok. Ezeket majd el kellene dobálnunk, de ettől
eltekintve a hiba ugyanaz mint nálunk az egyetemi gépeken. Valamiért a
fizikai csomagkiküldés elhal.
Próbáltam 18.02, és 17.11-es DPDK verzióval is, mindkettőnél ugyanaz a
gond: a rte_eth_tx_burst, amit a send_burst hív meg epukkan. A 17.11-et
használtuk korábban a jenkins-szel szóval azzal tuti nem lehetne probléma.
A táblák jól feltöltődnek, a match is rendben van. Részletes debug lent...
További hiba, hogy ha drop-olni akarok és fordítom a P4 programot a
mark_to_drop függvényre implicit-function-declaration warning jön. És
nyilván emiatt nem is drop-olódik el a csomag.
Reprodukálni az egyes gépeken ezekkel a parancsokkal lehet:
jenkins at dpdk-switch:~/t4p4s16/t4p4s$ ./t4p4s.sh dbg examples/l2fwd.p4_14
jenkins at dpdk-pktgen:~$ ./run_pktgen.sh
Üdv,
Peti
=======================
LOG
=======================
dataplane.c@ 324 [CORE 0 at 0] Handling packet (port 0, 64 bytes) : aacc ddcc
0009 aabb bbaa 0003 0800 4500 0014 0001 0000 4000 b5eb c0a8 0065 0303 00ee
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
parser.c@ 26 [CORE 0 at 0] :::: Parser state start
parser.c@ 10 [CORE 0 at 0] :::: Parser state parse_ethernet
parser.c@ 18 [CORE 0 at 0] :: Extracted header ethernet (14 bytes):
aacc ddcc 0009 aabb bbaa 0003 0800
parser.c@ 34 [CORE 0 at 0] :::: Parser state accept
parser.c@ 35 [CORE 0 at 0] :: Packet is accepted
dataplane.c@ 198 [CORE 0 at 0] Entering control verifyChecksum...
dataplane.c@ 207 [CORE 0 at 0] Entering control ingress...
dataplane.c@ 81 [CORE 0 at 0] Lookup miss on table smac: action__nop_0
(default) <- aabb bbaa 0003
dataplane.c@ 91 [CORE 0 at 0] :: Executing action _nop_0 (default)...
dataplane.c@ 46 [CORE 0 at 0] Lookup miss on table dmac: action_forward_0
(default) <- aacc ddcc 0009
dataplane.c@ 52 [CORE 0 at 0] :: Executing action forward_0 (default)...
dataplane.c@ 220 [CORE 0 at 0] Entering control egress...
dataplane.c@ 229 [CORE 0 at 0] Entering control computeChecksum...
dataplane.c@ 238 [CORE 0 at 0] Entering control DeparserImpl...
dataplane.c@ 307 [CORE 0 at 0] :::: Reordering emit
dataplane.c@ 261 [CORE 0 at 0] :: Preparing 1 header instances for
storage...
dataplane.c@ 270 [CORE 0 at 0] : Storing 14 bytes (ethernet) : aacc ddcc
0009 aabb bbaa 0003 0800
dataplane.c@ 275 [CORE 0 at 0] :: Stored 14 bytes : aacc ddcc
0009 aabb bbaa 0003 0800
dataplane.c@ 280 [CORE 0 at 0] :: Emitting 14 bytes (no resize)
dataplane.c@ 301 [CORE 0 at 0] :: Headers: 14 bytes from storage : aacc
ddcc 0009 aabb bbaa 0003 0800
main.c@ 94 [CORE 0 at 0] :::: Egressing packet
dpdk_nicon.@ 170 [CORE 0 at 0] Emitting packet on port 1 (64 bytes): aacc ddcc
0009 aabb bbaa 0003 0800 4500 0014 0001 0000 4000 b5eb c0a8 0065 0303 00ee
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
dpdk_nicon.@ 176 [CORE 0 at 0] :: sending packet on port 1 (lcore 0)
Thread 1 "l2fwd" received signal SIGSEGV, Segmentation fault.
0x0000000000451317 in rte_eth_tx_burst (nb_pkts=<optimized out>,
tx_pkts=0xa90058 <lcore_conf+1176>, queue_id=<optimized out>, port_id=2)
at
/home/p4/dpdk-17.11/x86_64-native-linuxapp-gcc/include/rte_ethdev.h:3172
3172 return (*dev->tx_pkt_burst)(dev->data->tx_queues[queue_id],
tx_pkts, nb_pkts);
=======================
(gdb) bt
=======================
#0 0x0000000000451317 in rte_eth_tx_burst (nb_pkts=<optimized out>,
tx_pkts=0xa90058 <lcore_conf+1176>, queue_id=<optimized out>, port_id=2)
at
/home/p4/dpdk-17.11/x86_64-native-linuxapp-gcc/include/rte_ethdev.h:3172
#1 send_burst (port=2 '\002', n=<optimized out>, conf=<optimized out>)
at /home/jenkins/t4p4s16/t4p4s/build/l2fwd at std
//../../src/hardware_dep/dpdk/dpdk_nicon.c:38
#2 tx_burst_queue_drain (lcdata=0x7fffffffe080)
at /home/jenkins/t4p4s16/t4p4s/build/l2fwd at std
//../../src/hardware_dep/dpdk/dpdk_nicon.c:55
#3 main_loop_pre_rx (lcdata=lcdata at entry=0x7fffffffe080)
at /home/jenkins/t4p4s16/t4p4s/build/l2fwd at std
//../../src/hardware_dep/dpdk/dpdk_nicon.c:253
#4 0x0000000000454368 in dpdk_main_loop ()
at /home/jenkins/t4p4s16/t4p4s/build/l2fwd at std
//../../src/hardware_dep/dpdk/main.c:142
#5 0x00000000004543f3 in launch_one_lcore (dummy=<optimized out>)
at /home/jenkins/t4p4s16/t4p4s/build/l2fwd at std
//../../src/hardware_dep/dpdk/main.c:156
#6 0x00000000004b8d13 in rte_eal_mp_remote_launch ()
#7 0x0000000000454412 in launch_dpdk ()
at /home/jenkins/t4p4s16/t4p4s/build/l2fwd at std
//../../src/hardware_dep/dpdk/main.c:162
#8 0x0000000000447238 in main (argc=<optimized out>, argv=<optimized out>)
at /home/jenkins/t4p4s16/t4p4s/build/l2fwd at std
//../../src/hardware_dep/dpdk/main.c:196
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://plc.inf.elte.hu/pipermail/p4/attachments/20181116/eb40bffb/attachment.html>
More information about the P4
mailing list