Friday, September 30, 2016

D-Bus user session

I noticed that I cannot open the user dbus in Ubuntu while I could do that in Arch Linux. It seems there is no user dbus by default in Ubuntu (or Ubuntu server at least). To have one:

$ sudo apt install dbus-user-session

Then `sudo systemctl start --user dbus` or reboot.

Monday, September 12, 2016

Mysterious crashes in DPDK application when using the pcap driver.

I was experiencing mysterious crashes in my DPDK application when using pcap virtual devices (using the --vdev option). What's more, when there was more crashes, I didn't seem to be getting all the packets I should have. So I investigated, and found out I was attempting to capture packets from multiple threads. That seems to be a no no with the pcap driver, considering it explicitly does not support multiple queues. I limited the number of cores available to my application using the -c option, and everything was solved.

Fixing "no driver found for eth_pcap0"

I was getting a "no driver found for eth_pcap0" error message whenever I wanted to use an "eth_pcap" virtual device with my DPDK application. But the DPDK sample app "test-pmd" worked just fine with those. So I took a look at its Makefile and found out adding this line to my Makefile fixes the issue:

DEPDIRS-y += lib drivers