DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Sarosh Arif <sarosh.arif@emumba.com>
Cc: dev@dpdk.org, dpdklab@iol.unh.edu
Subject: Re: [dpdk-dev] [PATCH] testpmd: add speed capability in device info
Date: Tue, 8 Sep 2020 12:55:42 +0100
Message-ID: <39b2d72a-7ccd-315a-35fd-ca21b346a249@intel.com> (raw)
In-Reply-To: <CABoZmYM2XfxgYh5s98VXBtr7rqX--oewMWUENPqVyivpgCm3vg@mail.gmail.com>

On 9/8/2020 9:36 AM, Sarosh Arif wrote:
> delay_us_sleep_autotest is failing on this patch. To replicate it, I
> ran the same test on my system and it did not fail. Can this test be
> re-run?

cc'ed lab people.
I clicked the 'rebuild' button for the test, but I can't see if it queued or not...

> 
> On Fri, Sep 4, 2020 at 11:23 AM Sarosh Arif <sarosh.arif@emumba.com> wrote:
>>
>> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
>> index 30bee3324..8824ad174 100644
>> --- a/app/test-pmd/config.c
>> +++ b/app/test-pmd/config.c
>> @@ -518,6 +518,7 @@ device_infos_display(const char *identifier)
>>         struct rte_device *dev;
>>         struct rte_devargs da;
>>         portid_t port_id;
>> +       struct rte_eth_dev_info dev_info;
>>         char devstr[128];
>>
>>         memset(&da, 0, sizeof(da));
>> @@ -569,6 +570,90 @@ device_infos_display(const char *identifier)
>>                                                       &mac_addr);
>>                                 rte_eth_dev_get_name_by_port(port_id, name);
>>                                 printf("\n\tDevice name: %s", name);
>> +                               rte_eth_dev_info_get(port_id, &dev_info);
>> +                               switch (dev_info.speed_capa) {
>> +                               case ETH_LINK_SPEED_AUTONEG:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "Autonegotiate (all speeds)");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_FIXED:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "Disable autonegotiate (fixed speed)");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_10M_HD ...
>> +                                               ETH_LINK_SPEED_10M-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "10 Mbps half-duplex");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_10M ...
>> +                                               ETH_LINK_SPEED_100M_HD-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "10 Mbps full-duplex");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_100M_HD ...
>> +                                               ETH_LINK_SPEED_100M-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "100 Mbps half-duplex");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_100M ...
>> +                                               ETH_LINK_SPEED_1G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "100 Mbps full-duplex");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_1G ...
>> +                                               ETH_LINK_SPEED_2_5G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "1 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_2_5G ...
>> +                                               ETH_LINK_SPEED_5G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "2.5 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_5G ...
>> +                                               ETH_LINK_SPEED_10G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "5 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_10G ...
>> +                                               ETH_LINK_SPEED_20G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "10 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_20G ...
>> +                                               ETH_LINK_SPEED_25G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "20 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_25G ...
>> +                                               ETH_LINK_SPEED_50G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "25 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_50G ...
>> +                                               ETH_LINK_SPEED_56G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "50 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_56G ...
>> +                                               ETH_LINK_SPEED_100G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "56 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_100G ...
>> +                                               ETH_LINK_SPEED_200G-1:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "100 Gbps");
>> +                                       break;
>> +                               case ETH_LINK_SPEED_200G:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "200 Gbps");
>> +                                       break;
>> +                               default:
>> +                                       printf("\n\tDevice speed capability: %s",
>> +                                                       "not available");
>> +                                       break;
>> +                               }
>>                                 printf("\n");
>>                         }
>>                 }
>> --
>> 2.25.1
>>


  reply	other threads:[~2020-09-08 11:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04  6:23 Sarosh Arif
2020-09-08  8:36 ` Sarosh Arif
2020-09-08 11:55   ` Ferruh Yigit [this message]
2020-09-17 15:56 ` Ferruh Yigit
2020-09-21 11:22   ` Sarosh Arif
2020-09-28 10:01 ` [dpdk-dev] [PATCH v2] " Sarosh Arif
2020-10-04  8:51   ` Asaf Penso
2020-10-07 15:30     ` Ferruh Yigit
2020-10-08 11:49   ` [dpdk-dev] [PATCH v3] " Sarosh Arif
2020-10-08 16:14     ` Ferruh Yigit
2020-10-08 18:11   ` [dpdk-dev] [PATCH v4] " Sarosh Arif
2020-10-08 18:25   ` [dpdk-dev] [PATCH v5] " Sarosh Arif
2020-10-09  9:27     ` Ferruh Yigit
2020-10-09 11:53       ` Ferruh Yigit

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=39b2d72a-7ccd-315a-35fd-ca21b346a249@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=dev@dpdk.org \
    --cc=dpdklab@iol.unh.edu \
    --cc=sarosh.arif@emumba.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

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git