{"action":"closed","issue":{"url":"https://api.github.com/repos/pktgen/Pktgen-DPDK/issues/77","repository_url":"https://api.github.com/repos/pktgen/Pktgen-DPDK","labels_url":"https://api.github.com/repos/pktgen/Pktgen-DPDK/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/pktgen/Pktgen-DPDK/issues/77/comments","events_url":"https://api.github.com/repos/pktgen/Pktgen-DPDK/issues/77/events","html_url":"https://github.com/pktgen/Pktgen-DPDK/issues/77","id":169771607,"number":77,"title":"Segmentation fault when blacklisting PCI device","user":{"login":"cjdoucette","id":1501593,"avatar_url":"https://avatars.githubusercontent.com/u/1501593?v=3","gravatar_id":"","url":"https://api.github.com/users/cjdoucette","html_url":"https://github.com/cjdoucette","followers_url":"https://api.github.com/users/cjdoucette/followers","following_url":"https://api.github.com/users/cjdoucette/following{/other_user}","gists_url":"https://api.github.com/users/cjdoucette/gists{/gist_id}","starred_url":"https://api.github.com/users/cjdoucette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjdoucette/subscriptions","organizations_url":"https://api.github.com/users/cjdoucette/orgs","repos_url":"https://api.github.com/users/cjdoucette/repos","events_url":"https://api.github.com/users/cjdoucette/events{/privacy}","received_events_url":"https://api.github.com/users/cjdoucette/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-06T23:31:38Z","updated_at":"2016-08-07T16:44:16Z","closed_at":"2016-08-07T16:44:16Z","body":"I'm trying to generate and receive packets using pktgen on two DPDK-enabled interfaces, but I'm not sure that I have the correct memory and PCI device blacklisting setup. Thanks for any time and help you can give.\r\n\r\nMy setup is two 10Gb NICs, both with two ports. DPDK recognizes card A to have ports 0 and 2, and card B to have ports 1 and 3. I've connected ports 0 and 1 as well as ports 2 and 3 via cables.\r\n\r\nI am using pktgen to send packets from port 0 and receive them on port 1 using the following commands:\r\n\r\n    $ sudo ./pktgen -c 7 --socket-mem 256 --file-prefix pg1 -b 85:00.0 -- -T -P -m \"[1:2].0\"\r\n\r\n    $ sudo ./pktgen -c 70 --socket-mem 256 --file-prefix pg2 -b 83:00.0 -- -T -P -m \"[5:6].1\"\r\n\r\nThis works fine. But when I try to do this with ports 2 and 3, I get a segmentation fault when trying to run pktgen on port 3:\r\n\r\n    $ # works:\r\n    $ sudo ./pktgen -c 7 --socket-mem 256 --file-prefix pg1 -b 85:00.1 -- -T -P -m \"[1:2].2\"\r\n\r\n    $ # doesn't work:\r\n    $ sudo ./pktgen -c 70 --socket-mem 256 --file-prefix pg2 -b 83:00.1 -- -T -P -m \"[5:6].3\"\r\n\r\nThis is the error message I get when trying to run that command on port 3:\r\n\r\n    === port to lcore mapping table (# lcores 3) ===\r\n       lcore:     4     5     6 \r\n    port   3:  D: T  1: 0  0: 1 =  1: 1\r\n    Total   :  0: 0  1: 0  0: 1\r\n        Display and Timer on lcore 4, rx:tx counts per port/lcore\r\n\r\n    Configuring 3 ports, MBUF Size 1920, MBUF Cache Size 512\r\n    Lcore:\r\n        5, RX-Only\r\n                    RX( 1): ( 3: 0) \r\n        6, TX-Only\r\n                    TX( 1): ( 3: 0) \r\n    \r\n    Port :\r\n        3, nb_lcores  2, private (nil), lcores:  5  6 \r\n    \r\n    \r\n                                                                          Total memory used =      0 KB\r\n    \r\n    \r\n    === Display processing on lcore 4\r\n      RX processing lcore:   5 rx:  1 tx:  0\r\n    Segmentation fault (core dumped)`\r\n    \r\nThis happens if I blacklist any of the other PCI devices (83:00.0, 83:00.1, or 85:00.0), but if I don't blacklist any, then the segmentation fault doesn't happen. Any ideas what I'm doing incorrectly here?\r\n\r\nHere's some information about the devices:\r\n\r\n    $ lspci | grep Ethernet\r\n    <omitted>\r\n    83:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)\r\n    83:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)\r\n    85:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)\r\n    85:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)"}}
{"actor":{"display_login":"cjdoucette"}}