net/mvpp2: add 2.5G link info
authorMeir Levi <mlevi4@marvell.com>
Wed, 27 Jan 2021 16:09:41 +0000 (18:09 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:11 +0000 (18:16 +0100)
Update capability with 2.5G support

Signed-off-by: Meir Levi <mlevi4@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
drivers/net/mvpp2/mrvl_ethdev.c

index 43abe48..b50fda5 100644 (file)
@@ -1196,6 +1196,9 @@ mrvl_link_update(struct rte_eth_dev *dev, int wait_to_complete __rte_unused)
        case SPEED_1000:
                dev->data->dev_link.link_speed = ETH_SPEED_NUM_1G;
                break;
+       case SPEED_2500:
+               dev->data->dev_link.link_speed = ETH_SPEED_NUM_2_5G;
+               break;
        case SPEED_10000:
                dev->data->dev_link.link_speed = ETH_SPEED_NUM_10G;
                break;
@@ -1695,6 +1698,7 @@ mrvl_dev_infos_get(struct rte_eth_dev *dev,
        info->speed_capa = ETH_LINK_SPEED_10M |
                           ETH_LINK_SPEED_100M |
                           ETH_LINK_SPEED_1G |
+                          ETH_LINK_SPEED_2_5G |
                           ETH_LINK_SPEED_10G;
 
        info->max_rx_queues = MRVL_PP2_RXQ_MAX;