Re: netmap-ipfw on em0 em1

2014-11-08 Thread Evandro Nunes
On Sat, Nov 8, 2014 at 5:26 AM, Mahnaz Talebi mhnz.tal...@gmail.com wrote: Hi Evandro. I've tested netmap-ipfw on real NICs. Use ./kipfw -i netmap:em0 -i netmap:em1 to run netmap-ipfw on em0 and em1. ipfw works as a bridge and copy incoming packets to em0 to em1 if they pass defined

Re: netmap-ipfw on em0 em1

2014-11-08 Thread Patrick Tracanelli
!! :-D Enviada do meu iPad Em 09/11/2014, às 00:13, Evandro Nunes evandronune...@gmail.com escreveu: On Sat, Nov 8, 2014 at 5:26 AM, Mahnaz Talebi mhnz.tal...@gmail.com wrote: Hi Evandro. I've tested netmap-ipfw on real NICs. Use ./kipfw -i netmap:em0 -i netmap:em1 to run netmap-ipfw

Re: netmap-ipfw on em0 em1

2014-11-07 Thread Evandro Nunes
On Thu, Nov 6, 2014 at 9:24 PM, Luigi Rizzo ri...@iet.unipi.it wrote: The code on code.google.com/p/netmap-ipfw/ works well for me on physical interfaces. For using the nics many of your examples show that you are not using the various programs correctly. There is clearly a mismatch between

Re: netmap-ipfw on em0 em1

2014-11-07 Thread Luigi Rizzo
On Fri, Nov 7, 2014 at 5:02 AM, Evandro Nunes evandronune...@gmail.com wrote: On Thu, Nov 6, 2014 at 9:24 PM, Luigi Rizzo ri...@iet.unipi.it wrote: The code on code.google.com/p/netmap-ipfw/ works well for me on physical interfaces. For using the nics many of your examples show that you

Re: netmap-ipfw on em0 em1

2014-11-07 Thread Evandro Nunes
On Fri, Nov 7, 2014 at 4:08 PM, Luigi Rizzo ri...@iet.unipi.it wrote: On Fri, Nov 7, 2014 at 5:02 AM, Evandro Nunes evandronune...@gmail.com wrote: On Thu, Nov 6, 2014 at 9:24 PM, Luigi Rizzo ri...@iet.unipi.it wrote: The code on code.google.com/p/netmap-ipfw/ works well for me

Re: netmap-ipfw on em0 em1

2014-11-07 Thread Mahnaz Talebi
Hi Evandro. I've tested netmap-ipfw on real NICs. Use ./kipfw -i netmap:em0 -i netmap:em1 to run netmap-ipfw on em0 and em1. ipfw works as a bridge and copy incoming packets to em0 to em1 if they pass defined rules (and vice versa, from em1 to em0). If you still have problem with ipfw-netmap

Re: IPSEC in GENERIC [was: Re: netmap in GENERIC, by default, on HEAD]

2014-11-06 Thread Olivier Cochard-Labbé
How to correctly bench IPSec performance ? For benching forwarding performance I generate minimum-size packet (2000 flows: 100 different source IP * 20 different destination IP) like with this netmap's pkt-gen example: pkt-gen -i ix0 -f tx -n 10 -l 60 -d 9.1.1.1:2000-9.1.1.100 -s

Re: IPSEC in GENERIC [was: Re: netmap in GENERIC, by default, on HEAD]

2014-11-06 Thread Bjoern A. Zeeb
On 06 Nov 2014, at 01:10 , George Neville-Neil g...@neville-neil.com wrote: On 5 Nov 2014, at 9:20, Alexander V. Chernikov wrote: On 05.11.2014 19:39, George Neville-Neil wrote: Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device

Re: IPSEC in GENERIC [was: Re: netmap in GENERIC, by default, on HEAD]

2014-11-06 Thread Hooman Fazaeli
On 11/6/2014 1:30 PM, Olivier Cochard-Labbé wrote: How to correctly bench IPSec performance ? For benching forwarding performance I generate minimum-size packet (2000 flows: 100 different source IP * 20 different destination IP) like with this netmap's pkt-gen example: pkt-gen -i ix0 -f tx -n

Re: IPSEC in GENERIC [was: Re: netmap in GENERIC, by default, on HEAD]

2014-11-06 Thread Olivier Cochard-Labbé
On Thu, Nov 6, 2014 at 3:46 PM, Hooman Fazaeli hoomanfaza...@gmail.com wrote: = This permit me to obtain the maximum PPS forwarded by the server. May be off-topic: How much PPS and on which hardware? It seems I'm not clear: My question is just What is the correct methodology for benching

Re: netmap-ipfw on em0 em1

2014-11-06 Thread Evandro Nunes
that coming netmap. hello dear patrick thank you, yes it did work now at least it is counting packets but things are still weird, even though I have only count and allow rules, and yes they are counting packets, when I run kipfw, every packet on em1 and em2 gets dropped immediately

netmap in GENERIC, by default, on HEAD

2014-11-05 Thread George Neville-Neil
Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device enabled. This is to increase the breadth of our testing of that feature prior to the release of FreeBSD 11. In two weeks I will enable IPSec by default, again in preparation for 11. Best

Re: netmap in GENERIC, by default, on HEAD

2014-11-05 Thread Andrey V. Elsukov
On 05.11.2014 18:39, George Neville-Neil wrote: Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device enabled. This is to increase the breadth of our testing of that feature prior to the release of FreeBSD 11. In two weeks I will enable

Re: netmap in GENERIC, by default, on HEAD

2014-11-05 Thread Eric L. Camachat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 11/05/2014 07:52, Andrey V. Elsukov wrote: On 05.11.2014 18:39, George Neville-Neil wrote: Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device enabled. This is to increase the breadth of our

Re: netmap-ipfw on em0 em1

2014-11-05 Thread Evandro Nunes
packets are actually getting transmitted, and it is... you cannot run two netmap clients on the same NIC at the same time (unless you know how to do that, and avoid they stomp on each other). In this particular case it means that you should test things as follows machine A: pkt-gen -i em1 -f

Re: netmap in GENERIC, by default, on HEAD

2014-11-05 Thread Evandro Nunes
On Wed, Nov 5, 2014 at 1:52 PM, Andrey V. Elsukov bu7c...@yandex.ru wrote: On 05.11.2014 18:39, George Neville-Neil wrote: Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device enabled. This is to increase the breadth of our testing

Re: netmap in GENERIC, by default, on HEAD

2014-11-05 Thread Andrey V. Elsukov
On 05.11.2014 19:06, Eric L. Camachat wrote: In two weeks I will enable IPSec by default, again in preparation for 11. Hi, recently we did some IP forwarding tests and the GENERIC kernel is several times faster than GENERIC+IPSEC. Even when IPSEC has no SA. I didn't do test on vanilla

Re: netmap in GENERIC, by default, on HEAD

2014-11-05 Thread Andrey V. Elsukov
On 05.11.2014 19:18, Evandro Nunes wrote: On Wed, Nov 5, 2014 at 1:52 PM, Andrey V. Elsukov bu7c...@yandex.ru wrote: On 05.11.2014 18:39, George Neville-Neil wrote: Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device enabled

IPSEC in GENERIC [was: Re: netmap in GENERIC, by default, on HEAD]

2014-11-05 Thread Alexander V. Chernikov
On 05.11.2014 19:39, George Neville-Neil wrote: Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device enabled. This is to increase the breadth of our testing of that feature prior to the release of FreeBSD 11. In two weeks I will enable IPSec

Re: netmap in GENERIC, by default, on HEAD

2014-11-05 Thread Andrey V. Elsukov
On 05.11.2014 18:52, Andrey V. Elsukov wrote: recently we did some IP forwarding tests and the GENERIC kernel is several times faster than GENERIC+IPSEC. Even when IPSEC has no SA. I didn't do test on vanilla kernel, but our kernel is able forward IPv4/IPv6 on rate close to 8.6 Mpps. The

Re: netmap in GENERIC, by default, on HEAD

2014-11-05 Thread Jim Thompson
On Nov 5, 2014, at 9:47 AM, Andrey V. Elsukov bu7c...@yandex.ru wrote: Sorry, I showed wrong numbers here. IPSEC kernel in this test gives 2.4 Mpps, but with encryption only 180 kpps. This is more in-line with what I'd expect, assuming AES-CBC-HMAC. Improving the situation wrt encryption

Re: netmap-ipfw on em0 em1

2014-11-05 Thread Evandro Nunes
in RX mode in a separate machine, but this is just for reference, to make sure packets are actually getting transmitted, and it is... you cannot run two netmap clients on the same NIC at the same time (unless you know how to do that, and avoid they stomp on each other). In this particular

Re: netmap-ipfw on em0 em1

2014-11-05 Thread Patrick Tracanelli
is showing errors. If you could read the output you would probably get something like “error opening em0” or something like that coming netmap. -- Patrick Tracanelli FreeBSD Brasil LTDA. Tel.: (31) 3516-0800 316...@sip.freebsdbrasil.com.br http://www.freebsdbrasil.com.br Long live Hanin Elias

Re: netmap-ipfw on em0 em1

2014-11-05 Thread Evandro Nunes
to redirect kipfw output to somewhere you are not reading only *after* you are sure the output is showing errors. If you could read the output you would probably get something like “error opening em0” or something like that coming netmap. hello dear patrick thank you, yes it did work now at least

Re: IPSEC in GENERIC [was: Re: netmap in GENERIC, by default, on HEAD]

2014-11-05 Thread George Neville-Neil
On 5 Nov 2014, at 9:20, Alexander V. Chernikov wrote: On 05.11.2014 19:39, George Neville-Neil wrote: Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device enabled. This is to increase the breadth of our testing of that feature prior

Re: netmap in GENERIC, by default, on HEAD

2014-11-05 Thread George Neville-Neil
, on HEAD has the netmap device enabled. This is to increase the breadth of our testing of that feature prior to the release of FreeBSD 11. In two weeks I will enable IPSec by default, again in preparation for 11. Hi, recently we did some IP forwarding tests and the GENERIC kernel is several

Re: IPSEC in GENERIC [was: Re: netmap in GENERIC, by default, on HEAD]

2014-11-05 Thread John-Mark Gurney
George Neville-Neil wrote this message on Wed, Nov 05, 2014 at 17:10 -0800: On 5 Nov 2014, at 9:20, Alexander V. Chernikov wrote: On 05.11.2014 19:39, George Neville-Neil wrote: Howdy, Last night (Pacific Time) I committed a change so that GENERIC, on HEAD has the netmap device enabled

netmap-ipfw on em0 em1

2014-11-04 Thread Evandro Nunes
hello, I am trying to do some basic stateless filtering with netmap-ipfw. what i have running is: ./kipfw em1 em2 lo0 and when i do ipfw/ipfw show: ipfw/ipfw show connected to 127.0.0.1: nalloc 2248 nbytes 136 ptr 0x0 00100 0 0 allow ip from any to any via lo0 65535 0 0 allow ip from any

Re: netmap-ipfw on em0 em1

2014-11-04 Thread Evandro Nunes
btw, I am generating traffic via pkt-gen which I can see os received on the other side: # /usr/src/tools/tools/netmap/netmap-7e9e5e7602f5/examples/pkt-gen -i em1 -f tx -l 60 -d 172.16.250.10 643.417060 main [1649] interface is em1 643.417344 extract_ip_range [287] range is 10.0.0.1:0 to 10.0.0.1

Re: netmap-ipfw on em0 em1

2014-11-04 Thread Luigi Rizzo
​the user space netmap-ipfw only supports two interfaces, The hard problem in moving to 3+ interfaces is not much the code but deciding where to send a packet once it has passed the filter. Basically, passing things through the kernel stack is simple but performance is going to be no better than

Re: netmap-ipfw on em0 em1

2014-11-04 Thread Evandro Nunes
/tools/netmap/netmap-7e9e5e7602f5/examples/pkt-gen -i em1 -f tx -l 60 -d 172.16.250.10 112.372344 main [1649] interface is em1 112.372597 extract_ip_range [287] range is 10.0.0.1:0 to 10.0.0.1:0 112.372622 extract_ip_range [287] range is 172.16.250.10:0 to 172.16.250.10:0 112.388845 main [1840] mapped

Re: netmap-ipfw on em0 em1

2014-11-04 Thread Luigi Rizzo
0.0 0.0 18804 1864 2 S+5:07PM 0:00.00 grep kipfw # /usr/src/tools/tools/netmap/netmap-7e9e5e7602f5/examples/pkt-gen -i em1 -f tx -l 60 -d 172.16.250.10 112.372344 main [1649] interface is em1 112.372597 extract_ip_range [287] range is 10.0.0.1:0 to 10.0.0.1:0 112.372622

Re: netmap-ipfw on em0 em1

2014-11-04 Thread Evandro Nunes
1824 2 S 5:06PM 0:02.95 ./kipfw em1 em2 root 61518 0.0 0.0 18804 1864 2 S+5:07PM 0:00.00 grep kipfw # /usr/src/tools/tools/netmap/netmap-7e9e5e7602f5/examples/pkt-gen -i em1 -f tx -l 60 -d 172.16.250.10 112.372344 main [1649] interface is em1 112.372597

Re: netmap-ipfw on em0 em1

2014-11-04 Thread Michal Buchtík
Dne 4.11.2014 20:44, Evandro Nunes napsal(a): # ifconfig em2 | grep flags em2: flags=28d02BROADCAST,PROMISC,OACTIVE,SIMPLEX,MULTICAST,PPROMISC metric 0 mtu 1500 Hi, interface is OACTIVE and down. Do you try ifconfig em2 up ? Michal ___

Re: netmap-ipfw on em0 em1

2014-11-04 Thread Evandro Nunes
,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,PPROMISC metric 0 mtu 1500 ifconfig em1 | grep flags em1: flags=28943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,PPROMISC metric 0 mtu 1500 but still netmap-ipfw is not incrementing counters... Michal

Re: netmap-ipfw on em0 em1

2014-11-04 Thread Luigi Rizzo
in ??? ??? ???pkt-gen is connected to. I am running one pkt-gen in TX mode on the same machine, and another one in RX mode in a separate machine, but this is just for reference, to make sure packets are actually getting transmitted, and it is... you cannot run two netmap clients on the same

netmap: add extra interface on bridge

2014-11-03 Thread upyzl
@@ main(int argc, char **argv) if (argc 2) ifb = argv[2]; if (argc 3) +ifc = argv[3]; +if (argc 4) burst = atoi(argv[3]); if (!ifb) ifb = ifa; @@ -227,6 +231,7 @@ main(int argc, char **argv) /* setup netmap interface #1. */ me[0

How do I poll() over just one ring on netmap?

2014-11-03 Thread David
hi, I've been working with netmap with great results. My problem now is that I haven't figure out how to poll on just one TX ring to check for space available. I have several tx ring connected. I've been working with the pkt-gen example and I found a call to poll(), but when I step into the code

Re: netmap: add extra interface on bridge

2014-11-03 Thread Luigi Rizzo
. Ignore performance, for simplicity; thingd are already hard enough. Ignore the fact you are using netmap, that is just a detail, you can design your pseudo code as something that reads one packet at a time and writes one packet at a time. In the process, define what is your policy for dealing

Re: How do I poll() over just one ring on netmap?

2014-11-03 Thread Luigi Rizzo
On Monday, November 3, 2014, David dajos...@gmail.com wrote: hi, I've been working with netmap with great results. My problem now is that I haven't figure out how to poll on just one TX ring to check for space available. You have to specify a single ring index as the argument

Re: netmap: add extra interface on bridge

2014-11-03 Thread upyzl
interfaces. Write a second handler that takes packets from an output queue and pushes them to a port. Ignore performance, for simplicity; thingd are already hard enough. Ignore the fact you are using netmap, that is just a detail, you can design your pseudo code as something that reads one packet

Errors initializing Snort with netmap support

2014-10-28 Thread C. L. Martinez
Hi all, Starting Snort with netmap support in DAQ, returns me the following error: FATAL ERROR: Can't start DAQ (-1) - start_instance: Netmap registration for em0 failed: Invalid argument (22)! DAQ conf: config daq: netmap config daq_dir: /opt/daq/lib/daq config daq_mode: passive #config

Is it needed to install netmap-libpcap in FreeBSD 10.1?

2014-10-24 Thread C. L. Martinez
Hi all, Someone knows if is it needed to install netmap-libpcap in FreeBSD 10.1 or is libpcap already patched to use with netmap in a default FreeBSD 10.1 installation? Thanks. ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: Netmap: head vs cur vs tail?

2014-10-18 Thread Matthew P. Grosvenor
to understand how to use the netmap framework, specifically how the head, tail and current “pointers” interact with each other. Looking in man NETMAP(4) (http://www.freebsd.org/cgi/man.cgi?query=netmapsektion=4) under data structures, struct netmap_ring it says: contains the index of he

Netmap: head vs cur vs tail?

2014-10-17 Thread Matthew P. Grosvenor
Hi all, I’m trying to understand how to use the netmap framework, specifically how the head, tail and current “pointers” interact with each other. Looking in man NETMAP(4) (http://www.freebsd.org/cgi/man.cgi?query=netmapsektion=4) under data structures, struct netmap_ring it says

Re: Netmap: head vs cur vs tail?

2014-10-17 Thread Luigi Rizzo
On Fri, Oct 17, 2014 at 9:55 AM, Matthew P. Grosvenor matthew.grosve...@cl.cam.ac.uk wrote: Hi all, I’m trying to understand how to use the netmap framework, specifically how the head, tail and current “pointers” interact with each other. Looking in man NETMAP(4) ( http://www.freebsd.org

netmap-ipfw

2014-10-13 Thread Roman Shevchenko via freebsd-net
I have a trouble while compile netmap-ipfw. make NETMAP_INC=./sys Building userspace ... gmake[1]: Entering directory `/root/netmap-ipfw/ipfw' (cd ../objs; gmake -f ../Makefile.kipfw include_e) gmake[2]: Entering directory `/root/netmap-ipfw/objs' Building /root/netmap-ipfw/objs/../objs/include_e

Re: netmap-ipfw

2014-10-13 Thread Luigi Rizzo
On Mon, Oct 13, 2014 at 10:51 PM, Roman Shevchenko via freebsd-net freebsd-net@freebsd.org wrote: I have a trouble while compile netmap-ipfw. make NETMAP_INC=./sys Building userspace ... gmake[1]: Entering directory `/root/netmap-ipfw/ipfw' (cd ../objs; gmake -f ../Makefile.kipfw include_e

Netmap. Example to understand?

2014-10-09 Thread Jog Lie
Hello I have three boxes running linux or freebsd. A is a loadbalancer to b and c. Same network. A has three nics: one for internet, one connected with B and one connected with C to avoid another switch for a small configuration. I wish to understand how netmap can help me saturating a 10Gbit

RE: Netmap. Example to understand?

2014-10-09 Thread Jog Lie
Ok got it! https://github.com/fichtner/netmap/blob/master/examples/bridge.c From: deco33...@hotmail.com To: freebsd-net@freebsd.org Subject: Netmap. Example to understand? Date: Thu, 9 Oct 2014 10:05:56 +0200 Hello I have three boxes running linux or freebsd. A is a loadbalancer to b

Netmap: Failed to run multi-thread using pkt-gen

2014-10-07 Thread Yue Zhuo
Hi there, I was testing the newest netmap on a dual-port x520-T2 adapter using a 6-core machine. However, I always get error in* nm_txsync_prologue *for n - 1 threads when I try to use n threads (n 1), which indicates the cur pointer points to a wrong place. At last, only one thread works

Re: Netmap: Failed to run multi-thread using pkt-gen

2014-10-07 Thread Luigi Rizzo
how many queues are available cheers luigi On Tue, Oct 7, 2014 at 5:29 PM, Yue Zhuo zyue1...@tamu.edu wrote: Hi there, I was testing the newest netmap on a dual-port x520-T2 adapter using a 6-core machine. However, I always get error in* nm_txsync_prologue *for n - 1 threads when I try

Re: Netmap: Failed to run multi-thread using pkt-gen

2014-10-07 Thread Yue Zhuo
the driver might limit the number to 8 (this is what happens on FreeBSD). pkt-gen with a single thread should tell you how many queues are available cheers luigi On Tue, Oct 7, 2014 at 5:29 PM, Yue Zhuo zyue1...@tamu.edu wrote: Hi there, I was testing the newest netmap on a dual-port x520-T2

adding netmap support to libpcap in FreeBSD

2014-10-02 Thread Luigi Rizzo
I want to bring netmap support into our libpcap. The patch is attached, and as you can see changes are trivial, with the new methods contained in a new file pcap-netmap.c I would love to upstream this to the libpcap project (I even have the necessary configure* patches, see code.google.com/p

Netmap - Packet generating performance changes

2014-10-01 Thread Long Tran
Hello, I am experimenting netmap and see one strange behavior. When I am generating packets using pkt-gen example from PC1 to PC2, the rate is about 3Mpps. But when I run pkg-gen -f rx -i p1p1 from PC2, the generating rate in PC1 goes up to 14.66Mpps. I thought the performance of netmap in one

Re: Netmap - Packet generating performance changes

2014-10-01 Thread Luigi Rizzo
On Wed, Oct 01, 2014 at 03:42:06AM -0500, Long Tran wrote: Hello, I am experimenting netmap and see one strange behavior. When I am generating packets using pkt-gen example from PC1 to PC2, the rate is about 3Mpps. But when I run pkg-gen -f rx -i p1p1 from PC2, the generating rate in PC1

Re: netmap on ubuntu 14.04?

2014-10-01 Thread Eggert, Lars
On 2014-9-30, at 11:25, Stefano Garzarella stefanogarzare...@gmail.com wrote: for linux 3.16, can you try with next branch in https://code.google.com/p/netmap/? Can confirm that the next branch works (as in, drivers compile correctly for 3.16). Not tested behavior/performance yet. Lars

Re: netmap on ubuntu 14.04?

2014-09-30 Thread Eggert, Lars
On 2014-9-26, at 15:19, Leupoldt, Martin martin.leupo...@hob.de wrote: has anyone experience about netmap on a Ubuntu 14.04 machine? I've compiled it with 3.13 under Debian; 3.16 fails to compile because the patch doesn't apply cleanly. Lars signature.asc Description: Message signed

Re: netmap on ubuntu 14.04?

2014-09-30 Thread Stefano Garzarella
Hi Lars, for linux 3.16, can you try with next branch in https://code.google.com/p/netmap/? Thanks, Stefano 2014-09-30 9:27 GMT+02:00 Eggert, Lars l...@netapp.com: On 2014-9-26, at 15:19, Leupoldt, Martin martin.leupo...@hob.de wrote: has anyone experience about netmap on a Ubuntu 14.04

Will netmap-ipfw fwd?

2014-09-30 Thread Eduardo Meyer
I have a problem, where I need to fwd a high rate of pps, and I dont have enough CPU. It's around 900Kpps, so I would like to know if ipfw userland version with netmap support will do fwd? Here are my current rules: 00100 fwd 10.1.2.1 tag tcp from table(100) to any dst-port 80,1024-65535

Re: Will netmap-ipfw fwd?

2014-09-30 Thread Luigi Rizzo
Should work. Please try the latest version from code.google.com/p/netmap-ipfw/ Cheers Luigi On Tuesday, September 30, 2014, Eduardo Meyer dudu.me...@gmail.com wrote: I have a problem, where I need to fwd a high rate of pps, and I dont have enough CPU. It's around 900Kpps, so I would like

Re: Will netmap-ipfw fwd?

2014-09-30 Thread Marcelo Gondim
On 30/09/2014 13:49, Luigi Rizzo wrote: Should work. Please try the latest version from code.google.com/p/netmap-ipfw/ Cheers Luigi Hi Luigi, The netmap-ipfw be included in the FreeBSD 10.1 final? Cheers, Gondim On Tuesday, September 30, 2014, Eduardo Meyer dudu.me...@gmail.com wrote

Re: Will netmap-ipfw fwd?

2014-09-30 Thread Luigi Rizzo
On Tue, Sep 30, 2014 at 8:19 PM, Marcelo Gondim gon...@bsdinfo.com.br wrote: On 30/09/2014 13:49, Luigi Rizzo wrote: Should work. Please try the latest version from code.google.com/p/netmap-ipfw/ Cheers Luigi Hi Luigi, The netmap-ipfw be included in the FreeBSD 10.1 final

Re: Will netmap-ipfw fwd?

2014-09-30 Thread Eduardo Meyer
On Tue, Sep 30, 2014 at 1:49 PM, Luigi Rizzo ri...@iet.unipi.it wrote: Should work. Please try the latest version from code.google.com/p/netmap-ipfw/ Cheers Luigi OK just cloned. What should tbe topology be like? igb(4) - netmap bridge - vale - ipfw? will lagg0 - netmap bridge - ipfw

Re: Will netmap-ipfw fwd?

2014-09-30 Thread Luigi Rizzo
On Tue, Sep 30, 2014 at 8:57 PM, Eduardo Meyer dudu.me...@gmail.com wrote: On Tue, Sep 30, 2014 at 1:49 PM, Luigi Rizzo ri...@iet.unipi.it wrote: Should work. Please try the latest version from code.google.com/p/netmap-ipfw/ Cheers Luigi OK just cloned. What should tbe topology

Re: Will netmap-ipfw fwd?

2014-09-30 Thread Eduardo Meyer
/netmap-ipfw/ Cheers Luigi OK just cloned. What should tbe topology be like? igb(4) - netmap bridge - vale - ipfw? will lagg0 - netmap bridge - ipfw work too? netmap-ipfw runs directly on top of the interfaces. please try to understand the model of operation of netmap before using

Re: Will netmap-ipfw fwd?

2014-09-30 Thread Luigi Rizzo
wrote: Should work. Please try the latest version from code.google.com/p/netmap-ipfw/ Cheers Luigi OK just cloned. What should tbe topology be like? igb(4) - netmap bridge - vale - ipfw? will lagg0 - netmap bridge - ipfw work too? netmap-ipfw runs directly on top of the interfaces

Re: Compiling netmap in Ubuntu 1.04 in VMWare

2014-09-29 Thread Long Tran
ixgbevf Kconfig Makefile In the patches directory, I found these: e1000 e1000e igb ixgbe So I guess my kernel has the drivers supported by netmap. Also, I forgot to include the error when I run the make command. Here it is: make -C /lib/modules/3.13.0-29-generic/build M=/home/kl/Workspaces/netmap

Re: Compiling netmap in Ubuntu 1.04 in VMWare

2014-09-29 Thread Long Tran
Hi Mahnaz, Thank you. I just got it worked without drivers. Could you please explain how netmap can be used without drivers? I thought it required the NIC's driver to run. Thanks, Long. *Long Tran* Research Assistant MS in Network Communications and Technology Project Management University

Compiling netmap in Ubuntu 14.04 in VMWare

2014-09-28 Thread Long Tran
Hello, I am trying to compile netmap on my VM Ubuntu 14.04 but getting this error: make -C /lib/modules/3.13.0-29-generic/build M=/home/kl/Workspaces/netmap/LINUX CONFIG_NETMAP=m CONFIG_E1000=m CONFIG_E1000E=m CONFIG_IXGBE=m CONFIG_IGB=m CONFIG_BNX2X=m CONFIG_MLX4=m CONFIG_VIRTIO_NET=m

Re: Compiling netmap in Ubuntu 14.04 in VMWare

2014-09-28 Thread Mahnaz Talebi
Are you install kernel sources and headers? ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

Re: Compiling netmap in Ubuntu 1.04 in VMWare

2014-09-28 Thread Long Tran
Hi Mahnaz, I installed the headers and sources using these commands: sudo apt-get install linux-headers-3.13.0-29 sudo apt-get install linux-source-3.13.0 Thanks, -- *Long Tran* Research Assistant MS in Network Communications and Technology Project Management University of Houston

Re: Compiling netmap in Ubuntu 14.04 in VMWare

2014-09-28 Thread Andreas Nilsson
On Sun, Sep 28, 2014 at 10:09 AM, Long Tran kyle.longt...@gmail.com wrote: Hello, I am trying to compile netmap on my VM Ubuntu 14.04 but getting this error: make -C /lib/modules/3.13.0-29-generic/build M=/home/kl/Workspaces/netmap/LINUX CONFIG_NETMAP=m CONFIG_E1000=m CONFIG_E1000E=m

netmap on ubuntu 14.04?

2014-09-26 Thread Leupoldt, Martin
Hello together, has anyone experience about netmap on a Ubuntu 14.04 machine? Actually we have compiled netmap including the module linux_lin.ko and have successfully loaded it. But everytime we try to start the bridge, we´re getting the following error: ./bridge built Sep 10 2014 09:37:00

Re: netmap on ubuntu 14.04?

2014-09-26 Thread Stefano Garzarella
Hi Martin, can you try in this way sudo ./bridge -i netmap:eth1? netmap:eth1 means that eth1 is put in netmap mode. Cheers, Stefano 2014-09-26 16:19 GMT+03:00 Leupoldt, Martin martin.leupo...@hob.de: Hello together, has anyone experience about netmap on a Ubuntu 14.04 machine? Actually we

[patch] netmap not building

2014-09-25 Thread Daniel Peyrolon
Hello everyone, I've tried to build netmap on CURRENT, and to my surprise, I couldn't load the module. Thanks to Sean, I managed to find the cause. One file from the netmap code was not included as SRC. Patch attached. -- Daniel patchnetmap Description: Binary data

Re: [patch] netmap not building

2014-09-25 Thread Luigi Rizzo
thanks, committed in r272108 On Thu, Sep 25, 2014 at 3:19 PM, Daniel Peyrolon tucha...@gmail.com wrote: Hello everyone, I've tried to build netmap on CURRENT, and to my surprise, I couldn't load the module. Thanks to Sean, I managed to find the cause. One file from the netmap code

Re: [netmap/vale-ctl] when could process packet

2014-09-18 Thread upyzl
(forgot cc before) Hi, Jim thanks for reply this is my graduate design project my aim is to implement a simple software switch based on openflow using FreeBSD netmap as network I/O framework besides, I'm succeed doing on bridge.c at 2 interfaces add like /* Func: int main

Re: [netmap/vale-ctl] when could process packet

2014-09-18 Thread upyzl
which match the rules(flow table), forward only matched packets to em2 em3 (forward itself using netmap) ( I use like this: ./vale-ctl -a vale0:em0 ./vale-ctl -a vale0:em1 ./vale-ctl -a vale0:em2 ./vale-ctl -a vale0:em3 then host1 send packets ) the point is, I don't know when/where to process

[netmap/vale-ctl] when could process packet

2014-09-17 Thread upyzl
Hi, I think it's right place to talk about FreeBSD 10 - netmap question (location at FreeBSD 10: /usr/src/tools/tools/netmap ; with kernel device netmap on) I'm (entry) study on openflow software switch based on netmap/vale It seems very simple in vale-ctl.c and hard to add features for packet

Re: [netmap/vale-ctl] when could process packet

2014-09-17 Thread Jim Thompson
Jaye, I’d really like to see this work happen. Let me know if I can help. Jim On Sep 17, 2014, at 9:39 PM, upyzl zj262...@gmail.com wrote: Hi, I think it's right place to talk about FreeBSD 10 - netmap question (location at FreeBSD 10: /usr/src/tools/tools/netmap ; with kernel device

Re: netmap BUG found on big endian machine

2014-09-15 Thread Matthias Andree
Am 14.09.2014 um 18:42 schrieb Adrian Chadd: Hi! Good catch! Would you mind filing a bug so we don't forget? http://bugs.freebsd.org/submit/ The proposed fix, while it might fix the immediate issue, might still not fix pointer aliasing. Perhaps there needs to be some struct or union

Is this a netmap bug?

2014-09-15 Thread mirnshi
Hi, I wrote a very simple netmap program on FreeBSD 10, run one or more times, kernel crashed. Kernel configuration is GENERIC, only added netmap. The host is VM, running in vmplayer, one nic. How to repeat: 1. log into the system via ssh 2. run one or more times the program in the terminal

netmap BUG found on big endian machine

2014-09-14 Thread dongshan
Hi, I have tested netmap on freescale PowerPC board, it is a big endian machine, when I test the example app pkt-gen, I found one bug, really it is bug of netmap souce code. The commit id is “d39c4411a2129926d262f9faffacaf876392c7cd”, the bug locates in “netmap_mem2.c

Re: netmap BUG found on big endian machine

2014-09-14 Thread Adrian Chadd
Hi! Good catch! Would you mind filing a bug so we don't forget? http://bugs.freebsd.org/submit/ Thanks! -a On 14 September 2014 07:42, dongshan thomasyang1...@126.com wrote: Hi, I have tested netmap on freescale PowerPC board, it is a big endian machine, when I test

Re: netmap wishlist

2014-09-12 Thread Luigi Rizzo
On Fri, Sep 12, 2014 at 7:59 AM, Eggert, Lars l...@netapp.com wrote: Hi Luigi, I've started to play with netmap, like it a lot, and would like it to grow support for some additional features that I'd need. I wonder if you could comment on how likely support for any of the following

Re: netmap wishlist

2014-09-12 Thread Eggert, Lars
Hi, On 2014-9-12, at 9:31, Luigi Rizzo ri...@iet.unipi.it wrote: there is something already available/in progress for some of the above, but here are my thoughts on the various subjects: - netmap is designed to work with large frames, by setting the buffer size to something suitable

help creating a send-receive test suit using netmap

2014-09-12 Thread David
Hi I am trying to compare the performance of sending packets using netmap, socket and packet mmap. Right now I am working on top of pkt-gen and some other implementations for socket and packet mmap. I'm interested on the relation between packet size and packets I can send per second. I

netmap and jumbo packets

2014-09-11 Thread David
Hi, I am learning to use netmap. Currently I got pkt-gen working (without drivers). When I try to set packet size above 2048 I got an error. Searching through the code I found in sys/dev/netmap/netmap_mem2.c the size constrain. I change it like this: diff --git a/sys/dev/netmap/netmap_mem2.c b

Re: help porting netmap to new driver

2014-09-11 Thread David
I was able to work this around. The problem was in the driver. Now I start working on customizing the driver to use netmap optimized regards 2014-09-08 9:54 GMT-06:00 David dajos...@gmail.com: Hi Sorry for the late response, I'll be using an ARM processor for a 1G link. My first issue

Re: help porting netmap to new driver

2014-09-08 Thread David
Hi Sorry for the late response, I'll be using an ARM processor for a 1G link. My first issue came when doing what you suggested, and try the emulated netmap mode. I need to cross compile the code from my x86, which I think I did correctly by setting up my arm toolchain and passing the kernel

netmap pkt-gen

2014-09-07 Thread Mahnaz Talebi
Hi Dear Luigi, I use your netmap pkt-gen for testing my applications and thanks you for your great nice work. I want to modify (if I can!) your pkt-gen such that I can insert timestamps in udp packets in order to find delay of receiving packets (that forward from my DUT). ِDo you have any

Re: netmap extra rings and buffers

2014-09-05 Thread Eggert, Lars
() can translate buffer indexes for any netmap buffer, even those not in a ring. All it does is grab the base address of the buffer pool from the ring, and add the buffer index times the buffer size. So you can navigate the pool of extra buffers as follows uint32_t x = nifp-ni_bufs_head

netmap extra rings and buffers

2014-09-04 Thread Eggert, Lars
Hi Luigi, I'm allocating extra rings and/or extra buffers via the nr_arg1/nr_arg3 parameters for NIOCREGIF. Once I've done that, how do I actually access those rings and buffers? For extra rings, the documentation and example code don't really say anything. For extra buffers, the

Re: netmap extra rings and buffers

2014-09-04 Thread Luigi Rizzo
for a VALE port has also space to host some pipes. Otherwise, for physical ports (which at the moment all share the same address space) there is not a real need to specify it. For the extra buffers, remember that NETMAP_BUF() can translate buffer indexes for any netmap buffer, even those not in a ring. All

Re: tutorial on Netmap in Mountain View - Aug.28

2014-09-01 Thread Eggert, Lars
On 2014-8-18, at 12:29, Carlos Ferreira carlosmf...@gmail.com wrote: Do you have presentations or tutorial code from that tutorial, that you can share here? +1 Lars signature.asc Description: Message signed with OpenPGP using GPGMail

help porting netmap to new driver

2014-08-27 Thread David
Hi, I'm needing to use netmap on a custom driver, I don't understand the content of the functions I need to implement and that are detailed on PORTING file. can someone give a hand to understand it better? regards -- David Díaz Barquero Ingeniería en Computadores Tecnológico de Costa Rica

Re: help porting netmap to new driver

2014-08-27 Thread Luigi Rizzo
On Wed, Aug 27, 2014 at 3:18 PM, David dajos...@gmail.com wrote: Hi, I'm needing to use netmap on a custom driver, I don't understand the content of the functions I need to implement and that are detailed on PORTING file. ​sometimes (often, actually) the hw has bottlenecks that make native

9.3 RELEASE not forwarding pkt-gen (netmap) packets over XenServer

2014-08-26 Thread Raimundo Santos
) as generator, with one Intel NIC. netmap + XEMHVM kernel. One VM (vm2) as consumer, with one Intel NIC. netmap + XEMHVM kernel. When I connect vm1 to vm2 directly, traffic flows without problem, no matter how I select the source an destination IP and MAC addresses. When I connect through vm0, just enabling

Re: 9.3 RELEASE not forwarding pkt-gen (netmap) packets over XenServer

2014-08-26 Thread Raimundo Santos
That is what a tcpdump says (in vm0, the router): 15:38:13.286112 00:1b:21:53:51:3d 00:1b:21:53:51:39, ethertype IPv4 (0x0800), length 60: (tos 0x10, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 46) 10.0.0.1.0 192.168.10.1.0: [udp sum ok] UDP, length 18 15:38:13.286119

<    5   6   7   8   9   10   11   12   13   >