From owner-freebsd-net@FreeBSD.ORG Mon Aug 8 19:14:25 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D71316A41F for ; Mon, 8 Aug 2005 19:14:25 +0000 (GMT) (envelope-from ras@overlord.e-gerbil.net) Received: from overlord.e-gerbil.net (e-gerbil.net [69.31.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC7C843D48 for ; Mon, 8 Aug 2005 19:14:24 +0000 (GMT) (envelope-from ras@overlord.e-gerbil.net) Received: from overlord.e-gerbil.net (ras@localhost.e-gerbil.net [127.0.0.1]) by overlord.e-gerbil.net (8.13.3/8.13.3) with ESMTP id j78JELpN062167; Mon, 8 Aug 2005 15:14:21 -0400 (EDT) (envelope-from ras@overlord.e-gerbil.net) Received: (from ras@localhost) by overlord.e-gerbil.net (8.13.3/8.13.3/Submit) id j78JELFL062165; Mon, 8 Aug 2005 15:14:21 -0400 (EDT) (envelope-from ras) Date: Mon, 8 Aug 2005 15:14:20 -0400 From: Richard A Steenbergen To: Steve Shorter Message-ID: <20050808191420.GZ8847@overlord.e-gerbil.net> References: <20050808195214.GA14241@nomad.lets.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050808195214.GA14241@nomad.lets.net> User-Agent: Mutt/1.5.6i Cc: freebsd-net@freebsd.org Subject: Re: 1000BaseSX 1000BaseLX confusion? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2005 19:14:25 -0000 On Mon, Aug 08, 2005 at 03:52:14PM -0400, Steve Shorter wrote: > Howdy! > > I was wondering how come the listed media types supported > by sk(4) and em(4) is only 1000BaseSX. Even for single mode > 1000BaseLX NICs such as sk 9841 and Intel PWLA8490LX, ifconfig > show the media type as 1000BaseSX. Though the NIC appears to operate in > single mode connected to a LX switch port ok. > > From what I can understand SX supports only multimode fibre > and LX supports both. > > How come there isn't 1000BaseLX for a displayed media type, and > is it really single mode? Probably because no one ever bothered writing in support for it. :) As far as the fbsd driver is concerned, it is all the same thing. You can't switch the optics in software, it is what it is based on the optical component that was physically installed on the card (ignoring pluggables for the moment :P). That makes it purely a cosmetic issue. But that said: # find . | xargs grep IFM_1000_LX ./net/if_media.h:#define IFM_1000_LX 14 /* 1000baseLX - single-mode fiber */ ./net/if_media.h: { IFM_1000_LX, "1000baseLX" }, \ ./net/if_media.h: { IFM_1000_LX, "1000LX" }, \ ./pci/if_sk.c: sc->sk_pmd = IFM_1000_LX; ./pci/if_sk.c: case IFM_1000_LX: For shame. :) There are a lot of optics out there besides SX and LX, or besides SR and LR in 10GE. I know nothing about fbsd's level of support for SFP based cards, but I would imagine it isn't going to be good based on the above. -- Richard A Steenbergen http://www.e-gerbil.net/ras GPG Key ID: 0xF8B12CBC (7535 7F59 8204 ED1F CC1C 53AF 4C41 5ECA F8B1 2CBC)