net/liquidio: support 25G link speed
authorShijith Thotton <shijith.thotton@caviumnetworks.com>
Wed, 19 Apr 2017 07:26:06 +0000 (12:56 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Apr 2017 13:37:37 +0000 (15:37 +0200)
Add case to handle 25G link speed and thereby support
LiquidIO II CN23XX 225SV (2x25G) adapter.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
drivers/net/liquidio/lio_ethdev.c
drivers/net/liquidio/lio_ethdev.h

index 0c78afb..436d25b 100644 (file)
@@ -937,6 +937,9 @@ lio_dev_link_update(struct rte_eth_dev *eth_dev,
        case LIO_LINK_SPEED_10000:
                link.link_speed = ETH_SPEED_NUM_10G;
                break;
+       case LIO_LINK_SPEED_25000:
+               link.link_speed = ETH_SPEED_NUM_25G;
+               break;
        default:
                link.link_speed = ETH_SPEED_NUM_NONE;
                link.link_duplex = ETH_LINK_HALF_DUPLEX;
index ee30615..655c201 100644 (file)
@@ -52,7 +52,8 @@ struct lio_dev_ctrl_cmd {
 
 enum lio_bus_speed {
        LIO_LINK_SPEED_UNKNOWN  = 0,
-       LIO_LINK_SPEED_10000    = 10000
+       LIO_LINK_SPEED_10000    = 10000,
+       LIO_LINK_SPEED_25000    = 25000
 };
 
 struct octeon_if_cfg_info {