{"action":"created","issue":{"url":"https://api.github.com/repos/luigirizzo/netmap/issues/118","repository_url":"https://api.github.com/repos/luigirizzo/netmap","labels_url":"https://api.github.com/repos/luigirizzo/netmap/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/luigirizzo/netmap/issues/118/comments","events_url":"https://api.github.com/repos/luigirizzo/netmap/issues/118/events","html_url":"https://github.com/luigirizzo/netmap/issues/118","id":122487707,"number":118,"title":"pkt-gen or netmap not working on veth interfaces","user":{"login":"Hesam-Naderi-Dehkordi","id":8275634,"avatar_url":"https://avatars.githubusercontent.com/u/8275634?v=3","gravatar_id":"","url":"https://api.github.com/users/Hesam-Naderi-Dehkordi","html_url":"https://github.com/Hesam-Naderi-Dehkordi","followers_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/followers","following_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/following{/other_user}","gists_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/gists{/gist_id}","starred_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/subscriptions","organizations_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/orgs","repos_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/repos","events_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/events{/privacy}","received_events_url":"https://api.github.com/users/Hesam-Naderi-Dehkordi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2015-12-16T11:52:25Z","updated_at":"2016-12-10T11:09:03Z","closed_at":"2016-12-10T11:09:03Z","body":"I have spend weeks of time on search of how to do a high speed packet generation in the internet. I found moongen,pf_ring,... but found that your framework maybe my only chose, because my setup is in virtual network and i need high speed packet generation on veth interfaces.\nI have successfully build netmap and driver and modules, and loaded them. for example output for veth module built with the framework and copied to the kernel drivers directory :\nmodinfo veth\nfilename:       /lib/modules/3.16.7-29-desktop/kernel/drivers/net/veth.ko\nalias:          rtnl-link-veth\nlicense:        GPL v2\ndescription:    Virtual Ethernet Tunnel\nsrcversion:     1AE927BF04FA0D8C8752F49\ndepends:        netmap\nvermagic:       3.16.7-29-desktop SMP preempt mod_unload modversions \n\nI mean that I think made netmap in the correct way but when I try some test with pkt-gen I get the following results :\n\n ./pkt-gen -i eth0 -f tx -n 500111222 -l 60 -w 5\n039.779148 main [1930] interface is eth0\n039.779283 main [2050] running on 1 cpus (have 8)\n039.779946 extract_ip_range [367] range is 10.0.0.1:0 to 10.0.0.1:0\n039.779962 extract_ip_range [367] range is 10.1.0.1:0 to 10.1.0.1:0\n039.780244 main [2148] mapped 334980KB at 0x7f622fb9f000\nSending on netmap:eth0: 1 queues, 1 threads and 1 cpus.\n10.0.0.1 -> 10.1.0.1 (00:00:00:00:00:00 -> ff:ff:ff:ff:ff:ff)\n039.780277 main [2233] Sending 512 packets every  0.000000000 s\n039.780283 main [2235] Wait 5 secs for phy reset\n044.780965 main [2237] Ready...\n044.781304 sender_body [1211] start, fd 17 main_fd 17\n045.783182 main_thread [1720] 1.021 Kpps (1.023 Kpkts 491.040 Kbps in 1001978 usec) 511.50 avg_batch 0 min_space\n046.784829 sender_body [1280] poll error/timeout on queue 0: Success\n046.784854 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1001675 usec) 0.00 avg_batch 99999 min_space\n047.786888 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1002034 usec) 0.00 avg_batch 99999 min_space\n048.786863 sender_body [1280] poll error/timeout on queue 0: Success\n048.788286 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1001398 usec) 0.00 avg_batch 99999 min_space\n049.789788 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1001502 usec) 0.00 avg_batch 99999 min_space\n^C050.517705 sigint_h [404] received control-C on thread 0x7f6244c7c700\n050.517759 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 727971 usec) 0.00 avg_batch 99999 min_space\n050.789891 sender_body [1326] flush tail 1023 head 1023 on thread 0x7f622fb9e700\n050.789932 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n050.790039 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n050.790884 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n050.791880 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n050.792890 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n051.000157 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n051.001141 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n051.002160 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n051.003147 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n051.004161 sender_body [1334] pending tx tail 1023 head 1023 on ring 0\n051.519753 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1001994 usec) 0.00 avg_batch 99999 min_space\n\nno packet is send at all. Can you guide me what's wrong?Or maybe it's a bug?\n\nmy setup is linux 3.16.7 (opensuse 13.2), netmap downloaded from master branch and virtual switch and hosts are made by mininet and orginal openvswitch (newest,not patched to the old days 2012).\n"},"comment":{"url":"https://api.github.com/repos/luigirizzo/netmap/issues/comments/266200581","html_url":"https://github.com/luigirizzo/netmap/issues/118#issuecomment-266200581","issue_url":"https://api.github.com/repos/luigirizzo/netmap/issues/118","id":266200581,"user":{"login":"vmaffione","id":4920001,"avatar_url":"https://avatars.githubusercontent.com/u/4920001?v=3","gravatar_id":"","url":"https://api.github.com/users/vmaffione","html_url":"https://github.com/vmaffione","followers_url":"https://api.github.com/users/vmaffione/followers","following_url":"https://api.github.com/users/vmaffione/following{/other_user}","gists_url":"https://api.github.com/users/vmaffione/gists{/gist_id}","starred_url":"https://api.github.com/users/vmaffione/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmaffione/subscriptions","organizations_url":"https://api.github.com/users/vmaffione/orgs","repos_url":"https://api.github.com/users/vmaffione/repos","events_url":"https://api.github.com/users/vmaffione/events{/privacy}","received_events_url":"https://api.github.com/users/vmaffione/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T11:09:03Z","updated_at":"2016-12-10T11:09:03Z","body":"Too many topics here,please open other issues if appropriate"}}
{"actor":{"display_login":"vmaffione"}}