summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-07-22 01:25:31 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-22 01:25:31 +0200
commit0d71010d5cbf87982df65435b832d3f9e8a63ce0 (patch)
treed0f11c11177c96541ef07dd2201242062fd4037e /drivers
parentee5b56e4c91decb5d40141701e7cddd23e70d596 (diff)
downloaddpdk-0d71010d5cbf87982df65435b832d3f9e8a63ce0.zip
dpdk-0d71010d5cbf87982df65435b832d3f9e8a63ce0.tar.gz
dpdk-0d71010d5cbf87982df65435b832d3f9e8a63ce0.tar.xz
net/i40e: fix speed capabilities
Signed-off-by: Ido Barnea <ibarnea@cisco.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/i40e/i40e_ethdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 3f9f05e..84c86aa 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