DPDK usage discussions
 help / color / mirror / Atom feed
From: "Gaëtan Rivet" <gaetan.rivet@6wind.com>
To: Paul T <paultop6@outlook.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Query SFP+ module information
Date: Fri, 26 Oct 2018 13:26:59 +0200	[thread overview]
Message-ID: <20181026112659.ffiuhys7vcwu7x27@bidouze.vm.6wind.com> (raw)
In-Reply-To: <AM6PR04MB509517910D2258E26F43D51689F00@AM6PR04MB5095.eurprd04.prod.outlook.com>

Hi Paul,

On Fri, Oct 26, 2018 at 10:24:35AM +0000, Paul T wrote:
> Hi,
> 
> Is it possible to query information about the SFP+ modules inserted into a X710 10GbE network card via DPDK?
> 
> I have a specific user case where its a possibility that a 25GbE SFP+ module could be inserted into a 10GbE X710.  The error that is thrown when this happens is:
> 
> PMD: eth_i40e_dev_init(): Failed to sync phy type: -95
> EAL: Error - exiting with code: 1
>  Cause: Requested device 0000:66:00.0 cannot be used
> 
> I'm wondering if there is a way to query the module before this stage so there is a more graceful way to handling the unusable module.

Unfortunately, no. It is possible to query the module once the port is
initialized, there are two functions for that. However the port needs to
be initialized already.

Additionally, some adapters might power off the module completely on
link down, in which case module info would not be available.

But your specific use-case does not seem feasible.

-- 
Gaëtan Rivet
6WIND

      reply	other threads:[~2018-10-26 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-26 10:24 Paul T
2018-10-26 11:26 ` Gaëtan Rivet [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181026112659.ffiuhys7vcwu7x27@bidouze.vm.6wind.com \
    --to=gaetan.rivet@6wind.com \
    --cc=paultop6@outlook.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).