The idpf PMD did not map the 400 Gbps link speed, so adapters
operating at 400G reported their link speed as "Unknown": the speed
value advertised by the device had no matching entry in
idpf_supported_speeds[] and idpf_dev_link_update() fell back to
RTE_ETH_SPEED_NUM_UNKNOWN.

Add RTE_ETH_SPEED_NUM_400G to idpf_supported_speeds[] so the driver
reports the correct 400 Gbps link speed.

Signed-off-by: Shaiq Wani <[email protected]>
---
 drivers/net/intel/idpf/idpf_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/intel/idpf/idpf_ethdev.c 
b/drivers/net/intel/idpf/idpf_ethdev.c
index e9e9781fdd..ffd602a2c6 100644
--- a/drivers/net/intel/idpf/idpf_ethdev.c
+++ b/drivers/net/intel/idpf/idpf_ethdev.c
@@ -46,7 +46,8 @@ uint32_t idpf_supported_speeds[] = {
        RTE_ETH_SPEED_NUM_50G,
        RTE_ETH_SPEED_NUM_56G,
        RTE_ETH_SPEED_NUM_100G,
-       RTE_ETH_SPEED_NUM_200G
+       RTE_ETH_SPEED_NUM_200G,
+       RTE_ETH_SPEED_NUM_400G
 };
 
 static const uint64_t idpf_map_hena_rss[] = {
-- 
2.34.1

Reply via email to