From: Alejandro Lucero Date: Tue, 20 Dec 2016 12:52:45 +0000 (+0000) Subject: net/nfp: extend speed capabilities advertised X-Git-Tag: spdx-start~4961 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=011411586e035bcd507ef602c7a8cb3bf6d27cb0;p=dpdk.git net/nfp: extend speed capabilities advertised NFP supports more speeds than just 40 and 100GB, which were what was advertised before. Signed-off-by: Alejandro Lucero --- diff --git a/doc/guides/nics/features/nfp.ini b/doc/guides/nics/features/nfp.ini index 476ed316bb..8abf5d39a8 100644 --- a/doc/guides/nics/features/nfp.ini +++ b/doc/guides/nics/features/nfp.ini @@ -4,6 +4,7 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] +Speed capabilities = Y Link status = Y Link status event = Y Queue start/stop = Y diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 85923297d0..869c55ce28 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -1081,7 +1081,9 @@ nfp_net_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->reta_size = NFP_NET_CFG_RSS_ITBL_SZ; dev_info->hash_key_size = NFP_NET_CFG_RSS_KEY_SZ; - dev_info->speed_capa = ETH_LINK_SPEED_40G | ETH_LINK_SPEED_100G; + dev_info->speed_capa = ETH_SPEED_NUM_1G | ETH_LINK_SPEED_10G | + ETH_SPEED_NUM_25G | ETH_SPEED_NUM_40G | + ETH_SPEED_NUM_50G | ETH_LINK_SPEED_100G; } static const uint32_t *