net/mrvl: add link speed capabilities
authorTomasz Duszynski <tdu@semihalf.com>
Mon, 9 Oct 2017 15:00:33 +0000 (17:00 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:36:58 +0000 (01:36 +0100)
Return supported link speed capabilities via rte_dev_info_get().

Signed-off-by: Jacek Siuda <jck@semihalf.com>
Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
doc/guides/nics/features/mrvl.ini
drivers/net/mrvl/mrvl_ethdev.c

index 72df92e..c3b9edf 100644 (file)
@@ -4,4 +4,5 @@
 ; Refer to default.ini for the full list of available PMD features.
 ;
 [Features]
+Speed capabilities   = Y
 Link status          = Y
index 4788784..7bd0dad 100644 (file)
@@ -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;