From owner-freebsd-infiniband@FreeBSD.ORG Wed Dec 12 23:15:31 2012 Return-Path: Delivered-To: freebsd-infiniband@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 71F1DEBD for ; Wed, 12 Dec 2012 23:15:31 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id D606B8FC08 for ; Wed, 12 Dec 2012 23:15:30 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id go10so1218478lbb.13 for ; Wed, 12 Dec 2012 15:15:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=U7JFcdES3XjbvIE0PfWm+YRS8uqD58bXK+Pzidsn7AM=; b=ycU/OERVXriTtPNkyqCm72uf7Toi+KsX9wojYgOpCiNTB3jbOmfOaCWZlK+xkm2FWA CAavG9ee6iPoLlTEjY3eEvTmuFHC9jBHpSfvxqpn+IHgrXrahZwserE4IZZe9v0SKz73 AfybMHemWiuuBuxmSdwLg0q717cjIiiW//tQgs5JML8ufUHb3K8AUwKYMGCOez8d4DR1 XiqTgaUuZumRJdq0FwB3SyuUobER6BSt2AhbBjwVBAAomo5351HcOaKL4qWceQziVZNi eD9s0hPmsrlHDA/ZbakGBzj/fefkIDx+oikIXrnGb3AFuN/dR4yn9OTfjehzBqmafuxm mYmg== MIME-Version: 1.0 Received: by 10.152.106.212 with SMTP id gw20mr2695130lab.8.1355354129393; Wed, 12 Dec 2012 15:15:29 -0800 (PST) Received: by 10.112.99.70 with HTTP; Wed, 12 Dec 2012 15:15:28 -0800 (PST) In-Reply-To: References: <3A359B33-380C-4230-A62C-623765E9376A@jnielsen.net> <53A5EDFD-B2C5-4E24-9AB9-5504AA693602@jnielsen.net> Date: Wed, 12 Dec 2012 15:15:28 -0800 Message-ID: Subject: Re: using ConnectX card as Ethernet (mlxen) From: Garrett Cooper To: Anthony Cornehl Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-infiniband@freebsd.org X-BeenThere: freebsd-infiniband@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Infiniband on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 23:15:31 -0000 On Wed, Dec 12, 2012 at 2:06 PM, Garrett Cooper wrote: > On Thu, Dec 6, 2012 at 8:07 PM, Anthony Cornehl wrote: >> There is an issue with the sysfs/sysctl abstraction for storing values. >> Whups. >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=174213 > > I have a patch for the sysctl<->sysfs shim that corrects it to > function when storing/showing values and makes it function more like > Linux. Setting the value works on CURRENT when changing to eth mode a > single caveat: when changing the mode for the card, you need to do it > for the last port. This is because of the following code [in > sys/ofed/drivers/net/mlx4/main.c]: The behavior seen above is wired into the driver based on product specific requirements for the ConnectX cards that should be documented in the user manual. In the ConnectX-2 manual (example: http://www.mellanox.com/related-docs/user_manuals/ConnectX%202_VPI_UserManual.pdf ) it's mentioned under the VPI Port Configuration section. HTH! -Garrett PS Thanks Peter O. for the assist!