Date: Thu, 18 Oct 2007 21:22:15 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net ethernet.h if_bridge.c if_ethersubr.c if_vlan.c Message-ID: <200710182122.l9ILMGZV014265@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
thompsa 2007-10-18 21:22:15 UTC FreeBSD src repository Modified files: sys/net ethernet.h if_bridge.c if_ethersubr.c if_vlan.c Log: The bridging output function puts the mbuf directly on the interfaces send queue so the output network card must support the same tagging mechanism as how the frame was input (prepended Ethernet header tag or stripped HW mflag). Now the vlan Ethernet header is _always_ stripped in ether_input and the mbuf flagged, only only network cards with VLAN_HWTAGGING enabled would properly re-tag any outgoing vlan frames. If the outgoing interface does not support hardware tagging then readd the vlan header to the front of the frame. Move the common vlan encapsulation in to ether_vlanencap(). Reported by: Erik Osterholm, Jon Otterholm MFC after: 1 week Revision Changes Path 1.33 +1 -0 src/sys/net/ethernet.h 1.104 +17 -1 src/sys/net/if_bridge.c 1.237 +28 -0 src/sys/net/if_ethersubr.c 1.125 +1 -28 src/sys/net/if_vlan.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710182122.l9ILMGZV014265>