From: Shijith Thotton Date: Wed, 19 Apr 2017 07:26:06 +0000 (+0530) Subject: net/liquidio: support 25G link speed X-Git-Tag: spdx-start~3510 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=25b156087eeca615f2f4383437956befa150e25e;p=dpdk.git net/liquidio: support 25G link speed Add case to handle 25G link speed and thereby support LiquidIO II CN23XX 225SV (2x25G) adapter. Signed-off-by: Shijith Thotton --- diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index 0c78afbc20..436d25b0b6 100644 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -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; diff --git a/drivers/net/liquidio/lio_ethdev.h b/drivers/net/liquidio/lio_ethdev.h index ee30615682..655c201128 100644 --- a/drivers/net/liquidio/lio_ethdev.h +++ b/drivers/net/liquidio/lio_ethdev.h @@ -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 {