From: Tomasz Duszynski Date: Mon, 9 Oct 2017 15:00:33 +0000 (+0200) Subject: net/mrvl: add link speed capabilities X-Git-Tag: spdx-start~1492 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d9e7317e1bdd10581ff29732fb32df9fe18d5591;p=dpdk.git net/mrvl: add link speed capabilities Return supported link speed capabilities via rte_dev_info_get(). Signed-off-by: Jacek Siuda Signed-off-by: Tomasz Duszynski --- diff --git a/doc/guides/nics/features/mrvl.ini b/doc/guides/nics/features/mrvl.ini index 72df92eaa0..c3b9edfe8e 100644 --- a/doc/guides/nics/features/mrvl.ini +++ b/doc/guides/nics/features/mrvl.ini @@ -4,4 +4,5 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] +Speed capabilities = Y Link status = Y diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index 4788784004..7bd0dadae6 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -576,6 +576,11 @@ static void mrvl_dev_infos_get(struct rte_eth_dev *dev __rte_unused, struct rte_eth_dev_info *info) { + info->speed_capa = ETH_LINK_SPEED_10M | + ETH_LINK_SPEED_100M | + ETH_LINK_SPEED_1G | + ETH_LINK_SPEED_10G; + info->max_rx_queues = MRVL_PP2_RXQ_MAX; info->max_tx_queues = MRVL_PP2_TXQ_MAX; info->max_mac_addrs = MRVL_MAC_ADDRS_MAX;