Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2015 14:27:51 -0700 (MST)
From:      petersnows <pmneveshi5@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   netmap fails to send packets: on unbuntu 14.04 kernel 3.16.7 with virtio
Message-ID:  <1438378071155-6029579.post@n5.nabble.com>

next in thread | raw e-mail | index | archive | help
Hi,

Net map fails to send more than 255 packets.

My set up is:
 netmap (latest) 
 unbuntu 14.04 
 kernel 3.16.7 (rebuild)
 virtio
   
On this site they have the opposite problem. Receiving fails.
http://stackoverflow.com/questions/27071992/for-linux-3-10-what-what-changes-do-i-need-to-make-to-get-netmap-virtio-net-work

I would apreciate any help.

I have another question.
I am using the latest code 
  wget https://github.com/luigirizzo/netmap/archive/master.zip
But since is not working with tcpreplay, I want to get a older release,

Is 11.1 (Oct 29, 2014) the most recent release ?  
  https://github.com/luigirizzo/netmap/releases/tag/v11.1

Thanks,

Pedro


** configure

root@ronin02:~/netmap-master/LINUX# ./configure  --mod-name=netmap_lin 
--kernel-sources=/mnt/data/kernel/linux-lts-utopic-3.16.0
--driver-suffix=_nm
kernel directory            /lib/modules/3.16.7-ckt14pneves/build
linux version               31007  [3.16.7]
module file                 netmap_lin.ko
subsystems                  generic monitor pipe vale
kernel sources              /mnt/data/kernel/linux-lts-utopic-3.16.0
drivers                     ixgbe igb e1000e e1000 veth.c forcedeth.c
virtio_net.c r8169.c

Contents of the drivers.mak file:
########################################
#  configure generated values          #
########################################
e1000-src :=
/mnt/data/kernel/linux-lts-utopic-3.16.0/drivers/net/ethernet/intel/e1000
e1000-patch := patches/diff--e1000--20620--31200
e1000e-src :=
/mnt/data/kernel/linux-lts-utopic-3.16.0/drivers/net/ethernet/intel/e1000e
e1000e-patch := patches/diff--e1000e--30f00--40000
forcedeth.c-src :=
/mnt/data/kernel/linux-lts-utopic-3.16.0/drivers/net/ethernet/nvidia/forcedeth.c
forcedeth.c-patch := patches/diff--forcedeth.c--20626--99999
igb-src :=
/mnt/data/kernel/linux-lts-utopic-3.16.0/drivers/net/ethernet/intel/igb
igb-patch := patches/diff--igb--30f00--40100
ixgbe-src :=
/mnt/data/kernel/linux-lts-utopic-3.16.0/drivers/net/ethernet/intel/ixgbe
ixgbe-patch := patches/diff--ixgbe--30f00--31300
veth.c-src := /mnt/data/kernel/linux-lts-utopic-3.16.0/drivers/net/veth.c
veth.c-patch := patches/diff--veth.c--30f00--99999
virtio_net.c-src :=
/mnt/data/kernel/linux-lts-utopic-3.16.0/drivers/net/virtio_net.c
virtio_net.c-patch := patches/diff--virtio_net.c--30b00--31100
root@ronin02:~/netmap-master/LINUX# 

** linux info
root@ronin02:~/netmap-master/LINUX# lsmod | grep netmap
netmap_lin            114840  1 virtio_net_nm

root@ronin02:~/netmap-master/LINUX# uname -a
Linux ronin02 3.16.7-ckt14pneves #5 SMP Thu Jul 30 04:15:10 PDT 2015 x86_64
x86_64 x86_64 GNU/Linux

root@ronin02:~/netmap-master/LINUX# ethtool -i eth0
driver: virtio_net_nm
version: 1.0.0
firmware-version:
bus-info: 0000:00:03.0
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
root@ronin02:~/netmap-master/LINUX#


** sending
tcpreplay -i eth0 -tK --loop 5 --netmap \root\smallFlows.pcap
root@ronin02:~/netmap-master/examples# 
root@ronin02:~/netmap-master/examples# ./pkt-gen -i eth0 -f tx -l 1500  -d
192.168.1.130 -s 192.168.1.131
083.032277 main [1767] interface is eth0
083.032332 main [1878] running on 1 cpus (have 2)
083.032439 extract_ip_range [299] range is 192.168.1.131:0 to
192.168.1.131:0
083.032443 extract_ip_range [299] range is 192.168.1.130:0 to
192.168.1.130:0
083.032569 main [1976] mapped 334980KB at 0x7f3e659b2000
Sending on netmap:eth0: 1 queues, 1 threads and 1 cpus.
192.168.1.131 -> 192.168.1.130 (00:00:00:00:00:00 -> ff:ff:ff:ff:ff:ff)
083.032581 main [2061] Sending 512 packets every  0.000000000 s
083.032583 main [2063] Wait 2 secs for phy reset
085.034360 main [2065] Ready...
085.034787 sender_body [1076] start, fd 3 main_fd 3
086.035247 main_thread [1557] 255.000 pps (255.000 pkts 3.060 Mbps in
1000614 usec) 255.00 avg_batch
087.037303 main_thread [1557] 0.000 pps (0.000 pkts 0.000 bps in 1002057
usec) 0.00 avg_batch
087.037354 sender_body [1141] poll error/timeout on queue 0: Success
088.039375 main_thread [1557] 0.000 pps (0.000 pkts 0.000 bps in 1002072
usec) 0.00 avg_batch
089.040984 sender_body [1141] poll error/timeout on queue 0: Success
089.041024 main_thread [1557] 0.000 pps (0.000 pkts 0.000 bps in 1001649
usec) 0.00 avg_batch
090.041845 main_thread [1557] 0.000 pps (0.000 pkts 0.000 bps in 1000821
usec) 0.00 avg_batch
091.043756 main_thread [1557] 0.000 pps (0.000 pkts 0.000 bps in 1001911
usec) 0.00 avg_batch
091.044278 sender_body [1141] poll error/timeout on queue 0: Success
092.046214 main_thread [1557] 0.000 pps (0.000 pkts 0.000 bps in 1002459
usec) 0.00 avg_batch
093.047400 sender_body [1141] poll error/timeout on queue 0: Success


** receiving 
root@ronin02:~/netmap-master/examples# 
root@ronin02:~/netmap-master/examples# ./pkt-gen -i eth0 -f rx
811.717995 main [1767] interface is eth0
811.718114 main [1878] running on 1 cpus (have 2)
811.718264 extract_ip_range [299] range is 10.0.0.1:0 to 10.0.0.1:0
811.718273 extract_ip_range [299] range is 10.1.0.1:0 to 10.1.0.1:0
811.718449 main [1976] mapped 334980KB at 0x7f02d7228000
Receiving from netmap:eth0: 1 queues, 1 threads and 1 cpus.
811.718470 main [2063] Wait 2 secs for phy reset
813.719597 main [2065] Ready...
813.719783 receiver_body [1267] reading from netmap:eth0 fd 3 main_fd 3
814.719920 main_thread [1557] 94.000 pps (94.000 pkts 417.416 Kbps in
1000198 usec) 9.40 avg_batch
815.722346 main_thread [1557] 16.000 pps (16.000 pkts 20.832 Kbps in 1002426
usec) 1.45 avg_batch
816.725977 main_thread [1557] 97.000 pps (97.000 pkts 199.568 Kbps in
1003631 usec) 2.42 avg_batch
817.727087 main_thread [1557] 13.000 pps (13.000 pkts 9.264 Kbps in 1001111
usec) 1.18 avg_batch
818.728785 main_thread [1557] 24.000 pps (24.000 pkts 164.504 Kbps in
1001697 usec) 3.43 avg_batch
819.730331 main_thread [1557] 23.000 pps (23.000 pkts 30.256 Kbps in 1001545
usec) 1.28 avg_batch




--
View this message in context: http://freebsd.1045724.n5.nabble.com/netmap-fails-to-send-packets-on-unbuntu-14-04-kernel-3-16-7-with-virtio-tp6029579.html
Sent from the freebsd-net mailing list archive at Nabble.com.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1438378071155-6029579.post>