DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Questions about rte_eth_link_speed_to_str API
@ 2021-09-13  8:45 Min Hu (Connor)
  2021-09-13 10:26 ` Thomas Monjalon
  2021-09-16  2:56 ` [dpdk-dev] [RFC] ethdev: improve link speed to string Min Hu (Connor)
  0 siblings, 2 replies; 16+ messages in thread
From: Min Hu (Connor) @ 2021-09-13  8:45 UTC (permalink / raw)
  To: dev; +Cc: Ferruh Yigit, Thomas Monjalon, Declan Doherty, Keith Wiles

Hi all,
	I have questions about rte_eth_link_speed_to_str API.
	The API converts link speed to string for display, But it only
supports the following speeds, like that:
	case ETH_SPEED_NUM_NONE: return "None";
	case ETH_SPEED_NUM_10M:  return "10 Mbps";
	case ETH_SPEED_NUM_100M: return "100 Mbps";
	case ETH_SPEED_NUM_1G:   return "1 Gbps";
	case ETH_SPEED_NUM_2_5G: return "2.5 Gbps";
	case ETH_SPEED_NUM_5G:   return "5 Gbps";
	case ETH_SPEED_NUM_10G:  return "10 Gbps";
	case ETH_SPEED_NUM_20G:  return "20 Gbps";
	case ETH_SPEED_NUM_25G:  return "25 Gbps";
	case ETH_SPEED_NUM_40G:  return "40 Gbps";
	case ETH_SPEED_NUM_50G:  return "50 Gbps";
	case ETH_SPEED_NUM_56G:  return "56 Gbps";
	case ETH_SPEED_NUM_100G: return "100 Gbps";
	case ETH_SPEED_NUM_200G: return "200 Gbps";
	case ETH_SPEED_NUM_UNKNOWN: return "Unknown";
	default: return "Invalid";

	In some cases, like bonding, for example, three slaves which
	link speed are 10Gbps, so link speed of bonding port will be
	30Gbps, but it shows "Invalid".

	Is this reasonable? any comments will be welcome.

		Best wishes

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-03-23 14:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13  8:45 [dpdk-dev] Questions about rte_eth_link_speed_to_str API Min Hu (Connor)
2021-09-13 10:26 ` Thomas Monjalon
2021-09-14  3:25   ` Min Hu (Connor)
2021-09-14  6:59     ` Stephen Hemminger
2021-09-14 13:04       ` Min Hu (Connor)
2021-09-16  2:56 ` [dpdk-dev] [RFC] ethdev: improve link speed to string Min Hu (Connor)
2021-09-16  6:22   ` Andrew Rybchenko
2021-09-16  8:16     ` Min Hu (Connor)
2021-09-16  8:21       ` Andrew Rybchenko
2021-09-17  0:43         ` Min Hu (Connor)
2021-10-30  9:59           ` Morten Brørup
2021-11-01  0:23             ` Min Hu (Connor)
2023-01-19 11:41           ` Ferruh Yigit
2023-01-19 16:45             ` Stephen Hemminger
2023-02-10 14:41               ` Ferruh Yigit
2023-03-23 14:40                 ` Ferruh Yigit

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).