netmap: how to bridge 2 eth?

2014-05-02 Thread upyzl
Hi all I'm doing to implement a simple openflow-based software switch(not same as OVS, much simpler to OVS) and I choose netmap for the network framework Now I try to do a simplest thing: there's 3 VMs, all are Ubuntu 12.04.4 x64 2 act as hosts, other 1 act as switch topo: [host1] eth0 - e

Re: kern/189234: [em] Big lag with Ethernet Connection I217-V

2014-05-02 Thread linimon
Synopsis: [em] Big lag with Ethernet Connection I217-V Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Sat May 3 02:37:06 UTC 2014 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=189234 __

Re: bridge Untagged packets on an interface

2014-05-02 Thread Özkan KIRIK
And also i tried ng_bpf + ng_eiface conjuction, but ng_bpf doesnt match "vlan" filter. With the script below, ng_bpf always calls ifNotMatch hook. When the pattern is "ip", ng_bpf matches frames have both vlan and ip headers. I think ng_bpf doesnt process ethernet header. Is there a way to proc

bridge Untagged packets on an interface

2014-05-02 Thread Özkan KIRIK
Hi, Assume that default vlan untagged and VLAN 10, 20, 30, 40 tagged on switch connected to em0 interface. i am trying to bridge only untagged frames on em0 with em1. Does if_vlan handle untagged frames? # ifconfig em0.0 create ifconfig: SIOCIFCREATE2: Invalid argument Any ideas? Best regards

9/STABLE Panic at netisr_dispatch_src w/ em(4) + PF

2014-05-02 Thread Nick Rogers
Hello, I am hoping someone can help me debug a kernel panic I have been experiencing on one of my production systems. The system is a PF+ALTQ firewall/gateway with about 1k simultaneous devices behind it at any given time, pushing no more than 100Mb/s of traffic. I have obtained a crash dump and t

Re: VLAN switching on freebsd

2014-05-02 Thread Özkan KIRIK
Thank you very much John, This approach is enlightened me. I'll try it. I couldnt think of use ng_vlan in front of ngeth nodes. I used openvswitch for this scenario, but performance is very very poor. I'm looking forward to release of the "in-kernel openvswitch on freebsd" project of Luigi Rizzo

Re: VLAN switching on freebsd

2014-05-02 Thread John-Mark Gurney
zkan KIRIK wrote this message on Fri, May 02, 2014 at 21:04 +0300: > i need to create a virtual interface that forwards only defined vlan tags. > Lets talk on a sample scenario : > > Assume that VLAN 10, 20, 30, 40 tagged on switch connected to em0 interface. > > create ngeth0 and ngeth1. ( i don

VLAN switching on freebsd

2014-05-02 Thread Özkan KIRIK
Hi, i need to create a virtual interface that forwards only defined vlan tags. Lets talk on a sample scenario : Assume that VLAN 10, 20, 30, 40 tagged on switch connected to em0 interface. create ngeth0 and ngeth1. ( i dont need netgraph interface, it can be a any virtual interface tap .. etc. )

Re: RX checksum offloading problem

2014-05-02 Thread Bjoern A. Zeeb
On 02 May 2014, at 10:22 , Michael Tuexen wrote: > Dear all, > > during testing I found that FreeBSD head (on a raspberry pi) accepts SCTP > packet > with bad checksums. After debugging this I figured out that this is a problem > with > the csum_flags defined in mbuf.h. > > The SCTP code on

RX checksum offloading problem

2014-05-02 Thread Michael Tuexen
Dear all, during testing I found that FreeBSD head (on a raspberry pi) accepts SCTP packet with bad checksums. After debugging this I figured out that this is a problem with the csum_flags defined in mbuf.h. The SCTP code on its input path checks for CSUM_SCTP_VALID, which is defined in mbuf.h:

Re: How to create an SCTP association

2014-05-02 Thread Michael Tuexen
On 02 May 2014, at 00:04, Bernd Walter wrote: > On Thu, May 01, 2014 at 11:06:09PM +0200, Michael Tuexen wrote: >> On 01 May 2014, at 22:42, Bernd Walter wrote: >> >>> On Thu, May 01, 2014 at 08:07:19PM +0200, Michael Tuexen wrote: On 01 May 2014, at 14:49, Bernd Walter wrote: >