From owner-freebsd-net@freebsd.org Wed Jul 22 19:11:15 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 7CC9A9A84F9 for ; Wed, 22 Jul 2015 19:11:15 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com [IPv6:2607:f8b0:4003:c01::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 424E41DC9; Wed, 22 Jul 2015 19:11:15 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by obdeg2 with SMTP id eg2so44384634obd.0; Wed, 22 Jul 2015 12:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=AbsOvRLhGgW40JwMuq2AQOypBxrYBzcwQLa8OMYeEjU=; b=zvVrtciODYGjFXKhaDG2Ebml10Fbxu33saCZAgHEUDANGzaj//ucy0egEDBJzpeNEY g4KVMFeXkNVeZfXUvVnsEHN3rJPdicCUacgVQpjsrVkU+OAlflMAko3kzUNWW4vPj+u7 LkBMhep3/UltXa4JIW2CCnO4wXfvLSWmKAOMWgAufQUh0p2wgrjpvgtq7h9OmqWmaTym c8O2woXEdOnTtdWTb+suUdF+5lqAEw++tlk/vmhpBrO49TnREkm7s1z+I1N2z/x+rgie DsZ2H3N3H5TIE0mHBtRHtPeFohyTHaHP+2FWo1HUAdCA5gBuw9pV9OO8EiLSOgnDKgC8 61Yg== MIME-Version: 1.0 X-Received: by 10.202.212.205 with SMTP id l196mr4019629oig.54.1437592274339; Wed, 22 Jul 2015 12:11:14 -0700 (PDT) Sender: asomers@gmail.com Received: by 10.202.80.4 with HTTP; Wed, 22 Jul 2015 12:11:14 -0700 (PDT) In-Reply-To: References: Date: Wed, 22 Jul 2015 13:11:14 -0600 X-Google-Sender-Auth: LXdzXf0nkks9LfKtjHS7OAoLZ_Y Message-ID: Subject: Re: Displaying the supported module types of a network adapter From: Alan Somers To: Eric Joyner Cc: FreeBSD Net , Navdeep Parhar , "Alexander V. Chernikov" Content-Type: text/plain; charset=UTF-8 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, 22 Jul 2015 19:11:15 -0000 It sounds like at least two drivers have the ability, and at least three people have the interest. I'll put this on my list. I'm not sure if I'll get to work on it soon, though. -Alan On Fri, Jul 17, 2015 at 9:40 AM, Eric Joyner wrote: > ixl(4) will list all of the supported module types for the device if you use > ifconfig -m, but I know that isn't the intended purpose of the -m flag. I > wouldn't mind moving all of that to another function whose purpose is to > just list all supported module types. > > - Eric > > On Wed, Jul 15, 2015 at 3:26 PM Alan Somers wrote: >> >> SIOCGIFMEDIA will return the list of supported media types and the >> current media type of a network interface. But for NICs with >> pluggable modules (SFP+, QSFP, etc), it would also be useful to know >> the allowed module type. I can't find any way to determine that using >> the standard tools. cxgbe(4) is aware of the module type allowed by >> the card, but doesn't expose that information to userspace. I can add >> a simple sysctl to do so, but it would be better to add a standard >> ioctl that can be used by all network drivers. >> >> Besides cxgbe(4), can any other network drivers support this? If so, >> would anybody else be interested? If so, should I add it to the >> "ifconfig -v" output? >> >> -Alan >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"