Thanks for your reply.
I will check and try an older version of netmap.

Pedro



On 31-07-2015 4:42 PM, Fredrick Klassen wrote:
Unfortunately, this seems to happen a lot with netmap. Their API has no backward compatibility. I have asked them to be careful with this in the past, but it appears that their new version no longer works with anything older. Therefore, I either have to write a version of tcpreplay for every version of netmap, or else I will have to fork their code and hard wire to a specific version.

I'll try to come up with a solution. In the mean time, I have opened the following issue https://github.com/appneta/tcpreplay/issues/195

The quick_tx issue is a known issue. Unfortunately it does not work on every driver/NIC combination. I will see if the author has time to look at this, otherwise I will try to get up to speed on it myself.

Fred.

On Thu, Jul 30, 2015 at 4:35 PM, Pedro Neves <pmne...@gmail.com <mailto:pmne...@gmail.com>> wrote:

    ***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:~#





--
*Fred Klassen*
Vice President, Advanced Technology | AppNeta
O: 604.433.2333 x117 <tel:604.433.2333+x117> | M: 604.760.9461 <tel:604.760.9461> Website <http://www.appneta.com/> | Facebook <https://www.facebook.com/AppNeta> | Twitter <https://twitter.com/appneta> | LinkedIn <https://www.linkedin.com/company/21636?trk=vsrp_companies_hero_photo&trkInfo=VSRPsearchId%3A576997201421180438741%2CVSRPtargetId%3A21636%2CVSRPcmpt%3Ahero>


------------------------------------------------------------------------------


_______________________________________________
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

Reply via email to