From owner-freebsd-net@freebsd.org Fri Jul 17 15:40:57 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 1D3B59A48A2 for ; Fri, 17 Jul 2015 15:40:57 +0000 (UTC) (envelope-from ricera10@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) (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 E32651FAF; Fri, 17 Jul 2015 15:40:56 +0000 (UTC) (envelope-from ricera10@gmail.com) Received: by ietj16 with SMTP id j16so79689862iet.0; Fri, 17 Jul 2015 08:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=48znXJr+cQpaKejSINw2ha2VWEC8xWMLjqnim6C5/o0=; b=lzknyh+lP2BWxlr/0lWGLear0mjsLFimSrcSaQx0nhMFRRRnj5g5/LxwdJ0uQ663lk k63fUvnRRjVK42biC6P23A5lF2eUCEkp01ng1hjQS2luX9RQgGxUa2u+Ix4+kSQo3JfF TWWMnUGfQhnJyYn2pdgKuACIgnBWSQmCQ1GzwihxuaahGht7hICHBQCbs/S24qlkWt/S 6Y8H+Hj7DMWl08Et2GEIBzp54nWDMpNYtQoiqfSJWnLAyHbAXgQ9toeeAIGvTMgfrWz5 HtBo1K9/ubETBxVXxCJQwOsJIbyQdHIId/oWRVkEvpIOiAlhPdV6H8oMsCBjuuc+zslt Jfyw== X-Received: by 10.107.7.21 with SMTP id 21mr19637347ioh.81.1437147656237; Fri, 17 Jul 2015 08:40:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Joyner Date: Fri, 17 Jul 2015 15:40:46 +0000 Message-ID: Subject: Re: Displaying the supported module types of a network adapter To: Alan Somers , FreeBSD Net , Navdeep Parhar , "Alexander V. Chernikov" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Fri, 17 Jul 2015 15:40:57 -0000 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" >