Closed daoxuans closed 5 years ago
to be honest, I've never tested it in SR-IOV mode. I also don't have an Intel NIC available to do those tests. Did you try running the L2Fwd example that comes with DPDK? Does it work?
Yes, i tried DPDK L2Fwd example, it works fine. I'think some configurations are unsupported in SR-IOV mode, unfortunately, I didn't find out which configuration it was.
That's interesting. Unfortunately I don't have access to a system like you have so it won't be an easy thing to debug. Could you please describe what do you see?
A1: not crashing. A2: it can processing incoming packets. A3: can't see any packets going out on the other side.
Can you please try the other example: https://github.com/seladb/PcapPlusPlus/tree/master/Examples/DpdkExample-FilterTraffic and let me know if it works as expected?
The other example doesn't send any packets, it just processes incoming packets. If it works it probably means the problem lies in the send packets mechanism.
Could you please try to run the other example mentioned above and let me know the results?
Sorry, I am on vacation, I will try ASAP.
Examples/DpdkExample-FilterTraffic can't works correctly, similar to the previous example. I think it is related to dpdk configuration. But beyond that, i found a problem, at Examples/DpdkExample-FilterTraffic/AppWorkerThread.h :Line 131 "sendPacketsTo->sendPacket(*packetArr[i], 0);" all threads using "txq=0", is that safe?
@shidaoxuan
Concurrent usage of single Rx/Tx queue is never safe except when PMD supports DEV_TX_OFFLOAD_MT_LOCKFREE
for Tx queues
@shidaoxuan could you please specify which part in DpdkExample-FilterTraffic
doesn't work as expected? Is the app receiving packets?
In SRIOV Mode, "DpdkExample-FilterTraffic" and "dpdkbridge" can't send packets, i can't find the root cause.
Just to double check: this is happening only with PcapPlusPlus examples, right? On built-in DPDK examples you see packet being sent?
Yes, dpdk l2fw-jobstats example is ok.
I can try help you debug if you can somehow share your environment (you can also reach out to me by email)
please let me know what could be the next steps
I emailed my leader for debugging dpdk example, but he didn't allow it. i suggest hanging up this issue first.
What do you mean by hanging up this issue?
I‘ll reopen it when there are new discoveries.
i have a Intel X520 NIC using SR-IOV mode. when test dpdkbridge example using vf nic ports, i found this process cann't forward packets to another port. In contrast, this example works fine when using pf nics. Can you give me some advice?