DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: oulijun <oulijun@huawei.com>, dev <dev@dpdk.org>
Cc: linuxarm@openeuler.org, "lihuisong (C)" <lihuisong@huawei.com>
Subject: Re: [dpdk-dev] [RFC] some questions for speed_capa usage
Date: Mon, 18 Jan 2021 11:23:52 +0000	[thread overview]
Message-ID: <1cc591cf-4217-7830-b496-934d0c0c8695@intel.com> (raw)
In-Reply-To: <63bca434-ae3a-8dac-4d9d-fac0ade7be25@huawei.com>

On 1/18/2021 10:27 AM, oulijun wrote:
> Hi,
> 
> 
> The 'speed_capa' will be reported in rte_eth_dev_info_get API. How should users 
> use the field?
> 
> 1) The driver reports only the capabilities supported by the NIC, and users only 
> obtain the capabilities.
> Maybe, there is a case that a rate bit in 'speed_capa' is not supported by the 
> current transmission medium,
> such as, copper cable optical modules and optical interface modules.
> 
> 2) The field is used only to inform users of the speed_capa supported by the 
> current transmission medium.
> And users set the fixed speed or auto-negotiation by using 'link_speeds' 
> according to the field.
> 
> According to the existing implementations of all drivers, it seems that both of 
> the above behaviors exist.
> 
> How should we report and use it?
> 

Hi Lijun,

When the driver reports the capabilities supported by the NIC, we tend to mark 
this feature as partially supported.

The expectation is the driver report the capability for the current 
configuration, the PHY/FW/transmission medium, whatever it is.

Driver should return the current supported values so that application can select 
one, as you said.

Regards,
ferruh

  reply	other threads:[~2021-01-18 11:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-18 10:27 oulijun
2021-01-18 11:23 ` Ferruh Yigit [this message]
2021-01-23  9:06   ` oulijun

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=1cc591cf-4217-7830-b496-934d0c0c8695@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=dev@dpdk.org \
    --cc=lihuisong@huawei.com \
    --cc=linuxarm@openeuler.org \
    --cc=oulijun@huawei.com \
    /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).