From: Ido Barnea Date: Thu, 21 Jul 2016 23:25:31 +0000 (+0200) Subject: net/i40e: fix speed capabilities X-Git-Tag: spdx-start~6114 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0d71010d5cbf87982df65435b832d3f9e8a63ce0;p=dpdk.git net/i40e: fix speed capabilities Signed-off-by: Ido Barnea Acked-by: Jingjing Wu --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 3f9f05eed3..84c86aa1bf 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2628,10 +2628,10 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) if (i40e_is_40G_device(hw->device_id)) /* For XL710 */ - dev_info->speed_capa = ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G; + dev_info->speed_capa = ETH_LINK_SPEED_40G; else /* For X710 */ - dev_info->speed_capa = ETH_LINK_SPEED_10G | ETH_LINK_SPEED_40G; + dev_info->speed_capa = ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G; } static int