From owner-freebsd-net@FreeBSD.ORG Sat Mar 30 18:04:47 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0C92C61F; Sat, 30 Mar 2013 18:04:47 +0000 (UTC) (envelope-from rlp@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id B7BBC396; Sat, 30 Mar 2013 18:04:46 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 9B3D4D4C44; Sat, 30 Mar 2013 19:04:44 +0100 (CET) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id Bg6ssCl7Fqd5; Sat, 30 Mar 2013 19:04:44 +0100 (CET) Received: from webmail.semihalf.com (semihalf.com [206.130.101.55]) by smtp.semihalf.com (Postfix) with ESMTPSA id 14C13D4C25; Sat, 30 Mar 2013 19:04:42 +0100 (CET) MIME-Version: 1.0 Date: Sat, 30 Mar 2013 12:04:40 -0600 From: Pablo Ribalta Lorenzo To: Adrian Chadd Subject: Re: vlan with modified MAC fails to communicate In-Reply-To: References: <1364561838.74177.YahooMailClassic@web121605.mail.ne1.yahoo.com> <51559F9B.3060608@semihalf.com> Message-ID: <29d7f4b41db63f9410075b1881f813b6@smtp.semihalf.com> X-Sender: rlp@semihalf.com User-Agent: RoundCube Webmail/0.2.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Cc: Barney Cordoba , Ryan Stone , freebsd-net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Mar 2013 18:04:47 -0000 Hi guys, In my case, my NIC driver is strictly for ethernet, if not Adrian's idea would be a phenomenal solution for my issue, but maybe it's useful for me in the long run, so thanks for providing some insight. As for if_vlan.c, I verified that in the case when NIC's MAC adress is modified, it updates the values in the vlan to keep them in sync. However, I don't see this behavior when the changes are performed over the vlan. >From what I see, looks like this behavior from FreeBSD side is expected and the changes should be incorporated to my NIC. Set the NIC to promisc mode whenever both MAC addresses are not equal looks like a good workaround, however try to work out some improvement in the packet filtering method looks more like a fix to me. What holds me back is the inherent loss of performance in promisc mode, but I need to see if I'm able to live with this overhead :)