Re: Fwd: netmap-ipfw on em0 em1

2015-05-04 Thread ulric
2015-05-04 17:29 skrev Barney Cordoba via freebsd-net: It's not faster than "wedging" into the if_input()s. It simply can't be. Your getting packets at interrupt time as soon as their processed and  you there's no network stack involved, and your able to receive and transmit without a process s

Re: Fwd: netmap-ipfw on em0 em1

2015-05-04 Thread Barney Cordoba via freebsd-net
Nothing freely available. Many commercial companies have done such things. Why limit the general community by force-feeding  a really fast packet generator into the mainstream by squashing other ideas in their infancy? Anyone who understands how the kernel works understands what I'm saying. A pa

Re: Fwd: netmap-ipfw on em0 em1

2015-05-04 Thread Ian Smith
On Mon, 4 May 2015 15:29:13 +, Barney Cordoba via freebsd-net wrote: > It's not faster than "wedging" into the if_input()s. It simply can't > be. Your getting packets at interrupt time as soon as their processed > and  you there's no network stack involved, and your able to receive > an

Re: Fwd: netmap-ipfw on em0 em1

2015-05-04 Thread Barney Cordoba via freebsd-net
It's not faster than "wedging" into the if_input()s. It simply can't be. Your getting packets at interrupt time as soon as their processed and  you there's no network stack involved, and your able to receive and transmit without a process switch. At worst it's the same, without the extra plumbin

Re: Fwd: netmap-ipfw on em0 em1

2015-05-03 Thread Luigi Rizzo
On Sun, May 3, 2015 at 6:17 PM, Barney Cordoba via freebsd-net < freebsd-net@freebsd.org> wrote: > Frankly I'm baffled by netmap. You can easily write a loadable kernel > module that moves packets from 1 interface to another and hook in the > firewall; why would you want to bring them up into user

Re: Fwd: netmap-ipfw on em0 em1

2015-05-03 Thread Barney Cordoba via freebsd-net
Frankly I'm baffled by netmap. You can easily write a loadable kernel module that moves packets from 1 interface to another and hook in the firewall; why would you want to bring them up into user space? It's 1000s of lines of unnecessary code. On Sunday, May 3, 2015 3:10 AM, Raimundo S

Fwd: netmap-ipfw on em0 em1

2015-05-03 Thread Raimundo Santos
Clarifying things for the sake of documentation: To use the host stack, append a ^ character after the name of the interface you want to use. (Info from netmap(4) shipped with FreeBSD 10.1 RELEASE.) Examples: "kipfw em0" does nothing useful. "kipfw netmap:em0" disconnects the NIC from the usual