From 1633d3c4c1290eb52f82d5144d4e19fa3d220fae Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Fri, 9 Mar 2018 17:59:03 +0000 Subject: [PATCH] net/dpaa: prefer defines for link speed values Use existing defines instead of hardcoded vales. Signed-off-by: Ferruh Yigit Acked-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 9b69ef456e..db493648a9 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -275,9 +275,9 @@ static int dpaa_eth_link_update(struct rte_eth_dev *dev, PMD_INIT_FUNC_TRACE(); if (dpaa_intf->fif->mac_type == fman_mac_1g) - link->link_speed = 1000; + link->link_speed = ETH_SPEED_NUM_1G; else if (dpaa_intf->fif->mac_type == fman_mac_10g) - link->link_speed = 10000; + link->link_speed = ETH_SPEED_NUM_10G; else DPAA_PMD_ERR("invalid link_speed: %s, %d", dpaa_intf->name, dpaa_intf->fif->mac_type); -- 2.20.1