From owner-freebsd-current@FreeBSD.ORG Tue May 22 11:58:12 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 45C5816A478 for ; Tue, 22 May 2007 11:58:12 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id 0FEE113C469 for ; Tue, 22 May 2007 11:58:11 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:cc:From:Subject:In-Reply-To:X-Attribution:Date:Message-Id; b=I6QOrIBWbcFZ6irywEPgHn5XYkvrshb9mjAKdV8Rf5cz0rEtAMWV9EfmOsqNWiPsfNGLeEoBtMR/x5qPHoKtLP3pp4NsXfiRJ4Ks+c3qec3VqsgJwCo3dq7g1LXIA4XtyI5kQPB+G4jTy1jAh2T7X1t9kTh1/TBcE7aaJqvXwSLmFwK2msb5xssrVkAX/t2q17XcHscp8oJ1pxKquWQsFRdHNYs+a7hiHJRXWjc9vvGbTSpXlc8eoL2dNnTmuuDB; Received: from uucp by munchkin.clue.co.za with local (Exim 4.66) (envelope-from ) id 1HqT0E-0005zo-JB; Tue, 22 May 2007 11:58:10 +0000 Received: from cluetoy.clue.co.za ([10.0.0.19] helo=clue.co.za) by urchin.clue.co.za with esmtpa (Exim 4.66) (envelope-from ) id 1HqSzo-0003vl-U5; Tue, 22 May 2007 11:57:44 +0000 Received: from localhost ([127.0.0.1]) by clue.co.za with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HqSzn-0001Eu-On; Tue, 22 May 2007 13:57:43 +0200 To: "Jack Vogel" From: Ian FREISLICH In-Reply-To: Message from "Jack Vogel" of "Tue, 22 May 2007 00:49:26 MST." <2a41acea0705220049w32b50fc6m37a2e2fef5c8837e@mail.gmail.com> X-Attribution: BOFH Date: Tue, 22 May 2007 13:57:43 +0200 Message-Id: Cc: freebsd-current@freebsd.org Subject: Re: em0 hijacking traffic to port 623 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: Tue, 22 May 2007 11:58:12 -0000 "Jack Vogel" wrote: > On 5/21/07, Ian FREISLICH wrote: > > Looking at the new source, I'm not sure it will stop this adaptor > > gobbling port 623. It's a 82546EB, e1000_82546_rev_3 e1000_mac_type. > > In em_init_manageability(), it looks like it's only disabled for > > e1000_mac_type >= e1000_82571 which excludes this adaptor: > > > > /* enable receiving management packets to the host */ > > if (adapter->hw.mac.type >= e1000_82571) { > > manc |= E1000_MANC_EN_MNG2HOST; > > #define E1000_MNG2HOST_PORT_623 (1 << 5) > > #define E1000_MNG2HOST_PORT_664 (1 << 6) > > manc2h |= E1000_MNG2HOST_PORT_623; > > manc2h |= E1000_MNG2HOST_PORT_664; > > E1000_WRITE_REG(&adapter->hw, E1000_MANC2H, manc2h) ; > > } > > > > I'll give the driver a whirl anyway. If it doesn't, is it safe to write > > 'manc |= E1000_MANC_EN_MNG2HOST' for adapter->hw.mac.type >= e1000_82546? > > If you can test that would be useful. FWIW, the new driver doesn't disable RCMP filtering on this NIC. :( But, doing this to the new driver solves the immediate problem for me: diff -u -d -r1.3 e1000_82540.c --- e1000_82540.c 16 May 2007 00:14:23 -0000 1.3 +++ e1000_82540.c 22 May 2007 11:21:02 -0000 @@ -316,6 +316,7 @@ /* Disable HW ARPs on ASF enabled adapters */ manc = E1000_READ_REG(hw, E1000_MANC); manc &= ~E1000_MANC_ARP_EN; + manc &= ~(E1000_MANC_RMCP_EN | E1000_MANC_0298_EN); E1000_WRITE_REG(hw, E1000_MANC, manc); E1000_WRITE_REG(hw, E1000_IMC, 0xffffffff); If you can point me to the propper place or way to effect this. I can see situations where someone would not want to turn this filtering off - if they have the IPMI daughterboard on their motherboard. Ian -- Ian Freislich