Yes, netmap and quick_tx are installed and loaded: netmap_lin 114840 1 virtio_net_nm virtio_net_nm 32932 0 quick_tx 59489 0
But I can not use any of them Any ideas ? I see on syslog virtio_netmap_config virtio config txq=1, txd=256 rxq=1, rxd=256 generic_netmap_dtor Restored native NA (null) Pedro ***tcpreplay + netmap root@ronin02:~# date;tcpreplay -i eth0 -tK --loop 5 --netmap smallFlows.pcap;date Thu Jul 30 16:31:48 PDT 2015 Switching network driver for eth0 to netmap bypass mode... Warning: ioctl error -1 35142:21 failed! Switching network driver for eth0 to normal mode... Fatal Error: failed to open device eth0: nm_do_ioctl: Operation not supported Thu Jul 30 16:31:53 PDT 2015 root@ronin02:~# tail /var/log/syslog Jul 30 16:31:48 ronin02 kernel: [ 1725.743162] 108.705867 [ 544] virtio_netmap_config virtio config txq=1, txd=256 rxq=1, rxd=256 Jul 30 16:31:48 ronin02 kernel: [ 1725.743179] 108.705888 [ 800] generic_netmap_dtor Restored native NA (null) Jul 30 16:31:49 ronin02 kernel: [ 1726.744882] 109.707579 [ 544] virtio_netmap_config virtio config txq=1, txd=256 rxq=1, rxd=256 Jul 30 16:31:49 ronin02 kernel: [ 1726.745016] 109.707721 [ 176] virtio_netmap_clean_used_rings got 1 used bufs on queue tx-0 Jul 30 16:31:49 ronin02 kernel: [ 1726.745023] 109.707729 [ 187] virtio_netmap_clean_used_rings got 0 used bufs on queue rx-0 Jul 30 16:31:49 ronin02 kernel: [ 1726.745112] 109.707819 [ 520] virtio_netmap_init_buffers added 255 inbufs on queue 0 Jul 30 16:31:53 ronin02 kernel: [ 1730.746755] 113.709454 [ 176] virtio_netmap_clean_used_rings got 0 used bufs on queue tx-0 Jul 30 16:31:53 ronin02 kernel: [ 1730.746771] 113.709477 [ 187] virtio_netmap_clean_used_rings got 68 used bufs on queue rx-0 Jul 30 16:31:53 ronin02 kernel: [ 1730.746779] 113.709485 [ 258] virtio_netmap_reg detached 0 pending bufs on queue tx-0 Jul 30 16:31:53 ronin02 kernel: [ 1730.746888] 113.709595 [ 270] virtio_netmap_reg detached 187 pending bufs on queue rx-0 root@ronin02:~# *** tcpreplay +quick-tx root@ronin02:~# date Thu Jul 30 16:25:38 PDT 2015 root@ronin02:~# tcpreplay -i eth0 -tK --loop 5 --quick-tx smallFlows.pcap Fatal Error: failed to open device eth0: [quick_tx] error while opening device Check that the QuickTX module is loaded and the interface name is correct root@ronin02:~# tail /var/log/syslog Jul 30 16:18:12 ronin02 whoopsie[905]: Response code: 200 Jul 30 16:18:12 ronin02 whoopsie[905]: Got command: OOPSID Jul 30 16:23:25 ronin02 kernel: [ 1222.169767] 605.194834 [1221] netmap_mem_global_config reconfiguring Jul 30 16:23:25 ronin02 kernel: [ 1222.241298] Netfilter messages via NETLINK v0.30. Jul 30 16:23:25 ronin02 kernel: [ 1222.249001] 605.274034 [ 544] virtio_netmap_config virtio config txq=1, txd=256 rxq=1, rxd=256 Jul 30 16:23:25 ronin02 kernel: [ 1222.249018] 605.274052 [ 800] generic_netmap_dtor Restored native NA (null) Jul 30 16:23:35 ronin02 kernel: [ 1232.034635] 615.054772 [ 544] virtio_netmap_config virtio config txq=1, txd=256 rxq=1, rxd=256 Jul 30 16:23:35 ronin02 kernel: [ 1232.034654] 615.054794 [ 800] generic_netmap_dtor Restored native NA (null) Jul 30 16:25:47 ronin02 kernel: [ 1364.688471] 747.651176 [ 544] virtio_netmap_config virtio config txq=1, txd=256 rxq=1, rxd=256 Jul 30 16:25:47 ronin02 kernel: [ 1364.688491] 747.651199 [ 800] generic_netmap_dtor Restored native NA (null) *** lsmod root@ronin02:~# lsmod Module Size Used by vboxsf 43786 0 snd_intel8x0 38292 2 snd_ac97_codec 130384 1 snd_intel8x0 ac97_bus 12730 1 snd_ac97_codec snd_pcm 104112 2 snd_ac97_codec,snd_intel8x0 snd_seq_midi 13564 0 snd_seq_midi_event 14899 1 snd_seq_midi snd_rawmidi 30876 1 snd_seq_midi crct10dif_pclmul 14307 0 crc32_pclmul 13133 0 rfcomm 69427 0 bnep 19624 2 snd_seq 63074 2 snd_seq_midi_event,snd_seq_midi bluetooth 446286 10 bnep,rfcomm ghash_clmulni_intel 13230 0 6lowpan_iphc 18702 1 bluetooth aesni_intel 152552 0 snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi aes_x86_64 17131 1 aesni_intel lrw 13286 1 aesni_intel gf128mul 14951 1 lrw glue_helper 13990 1 aesni_intel ablk_helper 13597 1 aesni_intel cryptd 20359 3 ghash_clmulni_intel,aesni_intel,ablk_helper snd_timer 29507 2 snd_pcm,snd_seq joydev 17393 0 vboxvideo 12669 1 serio_raw 13483 0 ppdev 17635 0 snd 79468 11 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_seq_device parport_pc 32741 0 virtio_net_nm 32932 0 video 20077 0 netmap_lin 114840 1 virtio_net_nm i2c_piix4 22166 0 mac_hid 13227 0 soundcore 15047 1 snd drm 310895 3 vboxvideo vboxguest 272683 6 vboxsf quick_tx 59489 0 lp 17759 0 parport 42313 3 lp,ppdev,parport_pc hid_generic 12559 0 usbhid 52574 0 hid 110337 2 hid_generic,usbhid psmouse 106767 0 ahci 34142 3 libahci 32424 1 ahci pata_acpi 13053 0 root@ronin02:~# On 30-07-2015 8:56 PM, Fredrick Klassen wrote: > You did what I was just about to suggest. You must see netmap in your > “tcpreplay -V”. > > Are you sure that netmap module is loaded? Do “lsmod” to ensure it is there. > If not, install it with insmod. > > Fred. > >> On Jul 30, 2015, at 12:41 PM, Pedro Neves <pmne...@gmail.com> wrote: >> >> I found the problem. >> --with-netmap=/root/netmap-master/ >> instead of >> --with-netmap=/root/netmap-master/LINUX >> >> >> >> root@ronin02:~/tcpreplay-4.1.0# tcpreplay -i eth0 -tK --loop 5 --netmap >> smallFlows.pcap >> Switching network driver for eth0 to netmap bypass mode... Warning: >> ioctl error -1 35142:21 >> failed! >> Switching network driver for eth0 to normal mode... >> Fatal Error: failed to open device eth0: nm_do_ioctl: Operation not >> supported >> root@ronin02:~/tcpreplay-4.1.0# >> >> >> Not sure what the problem is. >> Do you think is a netmap problem or a tcpreplay one ? >> >> Thanks, >> >> Pedro >> >> >> >> >> On 30-07-2015 7:57 PM, Pedro Neves wrote: >>> ....... >>> >>> ** tcpreplay config >>> ./configure --enable-quick-tx >>> --with-kernel=/mnt/data/kernel/linux-lts-utopic-3.16.0 >>> --with-netmap=/root/netmap-master/LINUX >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Tcpreplay-users mailing list >> Tcpreplay-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > > ------------------------------------------------------------------------------ > _______________________________________________ > Tcpreplay-users mailing list > Tcpreplay-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support ------------------------------------------------------------------------------ _______________________________________________ Tcpreplay-users mailing list Tcpreplay-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support