From owner-freebsd-current@FreeBSD.ORG Mon Aug 31 10:57:06 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B9251065679 for ; Mon, 31 Aug 2009 10:57:06 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from inbound01.jnb1.gp-online.net (inbound01.jnb1.gp-online.net [41.161.16.135]) by mx1.freebsd.org (Postfix) with ESMTP id 1979D8FC21 for ; Mon, 31 Aug 2009 10:57:05 +0000 (UTC) Received: from [41.161.16.10] (helo=clue.co.za) by inbound01.jnb1.gp-online.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Mi4ZK-00010W-Oi for current@freebsd.org; Mon, 31 Aug 2009 12:57:02 +0200 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Mi4Zb-0005Sw-Ae for current@freebsd.org; Mon, 31 Aug 2009 12:57:19 +0200 To: current@freebsd.org From: "Ian Freislich" X-Attribution: BOFH Date: Mon, 31 Aug 2009 12:57:19 +0200 Message-Id: Cc: Subject: igb(4) promiscuous mode bug. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2009 10:57:06 -0000 Hi It appears that the igb(4) driver or hardware doesn't correctly handle 802.1Q frames when placed in promiscuous mode if vlanhwtag is enabled. The NIC omits to tag and untag the frames when placed in promiscuous mode. The following output shows the bridge address table on the connected switch with the 4 NICs (82575GB) with and without vlan hardware assistance enabled. The interfaces are placed in promiscuous mode by the carp(4) driver. With hwtag in promiscuous mode: sw3.cab10# sh bridge address-table port-channel 1 Aging time is 300 sec Vlan Mac Address Port Type -------- --------------------- ------ ---------- 1 00:1b:21:1f:01:00 ch1 dynamic 1 00:1b:21:1f:01:01 ch1 dynamic 1 00:1b:21:1f:01:04 ch1 dynamic 1 00:1b:21:1f:01:05 ch1 dynamic Without hwtag in promiscuous mode: sw3.cab10# sh bridge address-table port-channel 1 Aging time is 300 sec Vlan Mac Address Port Type -------- --------------------- ------ ---------- 1 00:1b:21:1f:01:00 ch1 dynamic 1 00:1b:21:1f:01:01 ch1 dynamic 1 00:1b:21:1f:01:04 ch1 dynamic 1 00:1b:21:1f:01:05 ch1 dynamic 2 00:1b:21:1f:01:00 ch1 dynamic 3 00:1b:21:1f:01:00 ch1 dynamic 4 00:1b:21:1f:01:00 ch1 dynamic 5 00:1b:21:1f:01:00 ch1 dynamic 6 00:1b:21:1f:01:00 ch1 dynamic 7 00:1b:21:1f:01:00 ch1 dynamic 9 00:1b:21:1f:01:00 ch1 dynamic 14 00:1b:21:1f:01:00 ch1 dynamic 19 00:1b:21:1f:01:00 ch1 dynamic 20 00:1b:21:1f:01:00 ch1 dynamic 21 00:1b:21:1f:01:00 ch1 dynamic 23 00:1b:21:1f:01:00 ch1 dynamic 25 00:1b:21:1f:01:00 ch1 dynamic 26 00:1b:21:1f:01:00 ch1 dynamic 27 00:1b:21:1f:01:00 ch1 dynamic Ian -- Ian Freislich