From owner-freebsd-net@FreeBSD.ORG Sun Jun 9 18:46:08 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 6F98E64C; Sun, 9 Jun 2013 18:46:08 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pb0-x234.google.com (mail-pb0-x234.google.com [IPv6:2607:f8b0:400e:c01::234]) by mx1.freebsd.org (Postfix) with ESMTP id 3FD1F19BC; Sun, 9 Jun 2013 18:46:08 +0000 (UTC) Received: by mail-pb0-f52.google.com with SMTP id xa12so6502298pbc.11 for ; Sun, 09 Jun 2013 11:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=nNjUAJmFn79l1m0FsW6u8rOTczMdqUPfMsNzPEsOZmE=; b=vhhia6nYBPKBUbnU1uZqfO04huYgVMAe/oCCtzU4TaU4qxf+d0ofsVmhcGI4Zq39C9 TyOyLFMk1QaYeeKZa8OBNWKaKKVwUgqBGhsBUK+EUpf7UbPpZKQMzvyohvdCev7o45xQ qdCX33x96OqMBjczSD5p94RsZh1hvjExvu95kIADMg2trD505e9cNKxi3xhkgFtob7A7 5EmRAun0eVO+m1cw0GtPfKnqZFnu3kTaJ4wPYCxU+2mz1WA7ZQp8NlpF3sb8bC3SYAq3 lXU8VmYDnC5YNdxIjTdErdzHtZTtBnLTWDlZsSB1nS4fKxf4oRyAqzYEYzs4/WpFqHbE g56A== X-Received: by 10.66.17.137 with SMTP id o9mr11129956pad.142.1370803568035; Sun, 09 Jun 2013 11:46:08 -0700 (PDT) Received: from [192.168.20.5] (c-98-203-241-95.hsd1.wa.comcast.net. [98.203.241.95]) by mx.google.com with ESMTPSA id p2sm12252558pag.22.2013.06.09.11.46.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Jun 2013 11:46:07 -0700 (PDT) Subject: Re: Mellanox NIC names changed, each kldunload/kldload mlx4ib module Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: <64DAB3164E410447932305F50F896D8D6AF6D2E6@MTLDAG01.mtl.com> Date: Sun, 9 Jun 2013 11:46:04 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <03D4440E-2D1D-497C-B084-CAB47DE5F880@gmail.com> References: <64DAB3164E410447932305F50F896D8D6AF6D2E6@MTLDAG01.mtl.com> To: Alex Liptsin X-Mailer: Apple Mail (2.1283) Cc: "freebsd-infiniband@freebsd.org" , Regev Lev , "freebsd-questions@freebsd.org" , "freebsd-net@freebsd.org" 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: Sun, 09 Jun 2013 18:46:08 -0000 On Jun 9, 2013, at 5:35 AM, Alex Liptsin wrote: > Hi. >=20 > I work with FreeBSD9.1 and Mellanox devices. > Every time I unload / load mlx4ib module, NIC names of mellanox = devices (ibX) are renamed. > Can I prevent it? >=20 > [root@h-qa-032 mlx4]# ifconfig > ib8: flags=3D8002 metric 0 mtu 65520 > options=3D80018 > lladdr 80.28.0.48.fe.80.0.0.0.0.0.0.0.2.c9.3.0.2e.48.31 > nd6 options=3D29 > ib9: flags=3D8002 metric 0 mtu 65520 > options=3D80018 > lladdr 80.28.0.49.fe.80.0.0.0.0.0.0.0.2.c9.3.0.2e.48.32 > nd6 options=3D29 >=20 > [root@h-qa-032 mlx4]# kldunload mlx4ib >=20 > [root@h-qa-032 mlx4]# kldload -v mlx4ib > Loaded mlx4ib, id=3D9 >=20 > [root@h-qa-032 mlx4]# ifconfig > ib10: flags=3D8002 metric 0 mtu 65520 > options=3D80018 > lladdr 80.30.0.48.fe.80.0.0.0.0.0.0.0.2.c9.3.0.2e.48.31 > nd6 options=3D29 > ib11: flags=3D8002 metric 0 mtu 65520 > options=3D80018 > lladdr 80.30.0.49.fe.80.0.0.0.0.0.0.0.2.c9.3.0.2e.48.32 > nd6 options=3D29 You're probably running into a driver bug because OFED/ipoib was = never meant to be unloaded (assuming you're using my sources). Check the = detach/destroy routines to make sure that it's properly detaching = everything and updating indexes in the network stack before it unloads = the driver. Cheers, -Garrett