From owner-freebsd-net@FreeBSD.ORG Fri Mar 2 23:55:18 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B16A016A400 for ; Fri, 2 Mar 2007 23:55:18 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id 8C3DE13C49D for ; Fri, 2 Mar 2007 23:55:18 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 777A41F43AA for ; Fri, 2 Mar 2007 18:55:18 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by out1.internal (MEProxy); Fri, 02 Mar 2007 18:55:18 -0500 X-Sasl-enc: pmhqGYKPfADfn9N1pfH1Rng3xQh3zztIoskw0GqclzDY 1172879718 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 34DFD14055 for ; Fri, 2 Mar 2007 18:55:18 -0500 (EST) Message-ID: <45E8B964.2090200@incunabulum.net> Date: Fri, 02 Mar 2007 23:55:16 +0000 From: Bruce M Simpson User-Agent: Thunderbird 1.5.0.9 (X11/20070125) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [PATCH] Ethernet cleanup; 802.1p input and M_PROMISC X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2007 23:55:18 -0000 Hello all, I would like to announce an updated version of the 802.1p input patch, available at: http://people.freebsd.org/~bms/dump/latest-8021p.diff I have cut down the original scope of the patch. I previously ran into problems when I tried to move VLAN tag input and output processing into if_ethersubr.c. FreeBSD should now accept VLAN 0 traffic on input with this patch. In addition to this, the M_PROMISC flag is now used, which considerably simplifies the Ethernet input path in general. I have performed some light testing on a 1Gbps COTS switch with 802.1q encapsulation and without, with carp and vlan, with and without hardware VLAN tagging, and all looks OK. I would greatly appreciate further testing, particularly with if_bridge and ng_ether which I have not tried. If all goes to plan, I would hope to commit this code to -CURRENT within the next 10 days. Regards, BMS