* [dpdk-dev] [PATCH v3] cxgbe: report 100G link speed capability for Chelsio T6 adapters
@ 2017-06-22 10:07 Martin Weiser
2017-06-23 5:36 ` Rahul Lakkireddy
0 siblings, 1 reply; 2+ messages in thread
From: Martin Weiser @ 2017-06-22 10:07 UTC (permalink / raw)
To: rahul.lakkireddy; +Cc: dev, Martin Weiser
These adapters support 100G link speed but the speed_capa bitmask in the
device info did not reflect that.
Signed-off-by: Martin Weiser <martin.weiser@allegro-packets.com>
---
drivers/net/cxgbe/cxgbe_ethdev.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c
index b622d25..1e56529 100644
--- a/drivers/net/cxgbe/cxgbe_ethdev.c
+++ b/drivers/net/cxgbe/cxgbe_ethdev.c
@@ -176,6 +176,9 @@ static void cxgbe_dev_info_get(struct rte_eth_dev *eth_dev,
device_info->rx_desc_lim = cxgbe_desc_lim;
device_info->tx_desc_lim = cxgbe_desc_lim;
device_info->speed_capa = ETH_LINK_SPEED_10G | ETH_LINK_SPEED_40G;
+
+ if (CHELSIO_CHIP_VERSION(adapter->params.chip) == CHELSIO_T6)
+ device_info->speed_capa |= ETH_LINK_SPEED_100G;
}
static void cxgbe_dev_promiscuous_enable(struct rte_eth_dev *eth_dev)
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH v3] cxgbe: report 100G link speed capability for Chelsio T6 adapters
2017-06-22 10:07 [dpdk-dev] [PATCH v3] cxgbe: report 100G link speed capability for Chelsio T6 adapters Martin Weiser
@ 2017-06-23 5:36 ` Rahul Lakkireddy
0 siblings, 0 replies; 2+ messages in thread
From: Rahul Lakkireddy @ 2017-06-23 5:36 UTC (permalink / raw)
To: Martin Weiser
Cc: dev, Kumar Sanghvi, Nirranjan Kirubaharan, Indranil Choudhury
Hi Martin,
On Thursday, June 06/22/17, 2017 at 15:37:27 +0530, Martin Weiser wrote:
> These adapters support 100G link speed but the speed_capa bitmask in the
> device info did not reflect that.
>
> Signed-off-by: Martin Weiser <martin.weiser@allegro-packets.com>
> ---
> drivers/net/cxgbe/cxgbe_ethdev.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c
> b/drivers/net/cxgbe/cxgbe_ethdev.c
> index b622d25..1e56529 100644
> --- a/drivers/net/cxgbe/cxgbe_ethdev.c
> +++ b/drivers/net/cxgbe/cxgbe_ethdev.c
> @@ -176,6 +176,9 @@ static void cxgbe_dev_info_get(struct rte_eth_dev
> *eth_dev,
> device_info->rx_desc_lim = cxgbe_desc_lim;
> device_info->tx_desc_lim = cxgbe_desc_lim;
> device_info->speed_capa = ETH_LINK_SPEED_10G |
> ETH_LINK_SPEED_40G;
> +
> + if (CHELSIO_CHIP_VERSION(adapter->params.chip) == CHELSIO_T6)
> + device_info->speed_capa |= ETH_LINK_SPEED_100G;
> }
>
> static void cxgbe_dev_promiscuous_enable(struct rte_eth_dev *eth_dev)
> --
> 2.7.4
Thanks for the patch. However, not all Chelsio T6 adapters support
10G/40G/100G link speeds at the same time. I have a patch to report
the supported link speeds correctly and is currently undergoing testing.
I will submit the patch very soon.
Thanks,
Rahul
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-23 5:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22 10:07 [dpdk-dev] [PATCH v3] cxgbe: report 100G link speed capability for Chelsio T6 adapters Martin Weiser
2017-06-23 5:36 ` Rahul Lakkireddy
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).