From owner-freebsd-net@freebsd.org Wed Jun 24 13:00:19 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84770915EAB for ; Wed, 24 Jun 2015 13:00:19 +0000 (UTC) (envelope-from stell@genossen.ru) Received: from dutch.chaklun.ru (unknown [IPv6:2a01:7c8:aab0:135::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 51D7118C6 for ; Wed, 24 Jun 2015 13:00:18 +0000 (UTC) (envelope-from stell@genossen.ru) Received: from mx.ddosprevention.ru ([212.65.69.58] helo=[127.0.0.1]) by dutch.chaklun.ru with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1Z7kHn-000Hft-61 for freebsd-net@freebsd.org; Wed, 24 Jun 2015 16:00:15 +0300 Message-ID: <558AA9D6.2040406@genossen.ru> Date: Wed, 24 Jun 2015 16:00:06 +0300 From: Sergey Akhmatov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: [RESOLVED] Re: oce(4) promiscous mode bug(?) References: <5581427D.9070007@genossen.ru> In-Reply-To: <5581427D.9070007@genossen.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2015 13:00:19 -0000 Hello, In case someone's interested: I've contacted Emulex technical support and they've confirmed promisc mode bug, it would be fixed with the next driver update. Meanwhile Emulex kindly provided me updated version, the patch is very simple: --- sys/dev/oce/oce_mbox.c.orig 2015-06-24 15:51:28.000000000 +0300 +++ sys/dev/oce/oce_mbox.c 2015-06-24 15:51:32.000000000 +0300 @@ -865,7 +865,7 @@ req->iface_flags = MBX_RX_IFACE_FLAGS_PROMISCUOUS; if (enable & 0x02) - req->iface_flags = MBX_RX_IFACE_FLAGS_VLAN_PROMISCUOUS; + req->iface_flags |= MBX_RX_IFACE_FLAGS_VLAN_PROMISCUOUS; req->if_id = sc->if_id;