From: Ferruh Yigit Date: Fri, 9 Mar 2018 17:59:03 +0000 (+0000) Subject: net/dpaa: prefer defines for link speed values X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1633d3c4c1290eb52f82d5144d4e19fa3d220fae;p=dpdk.git net/dpaa: prefer defines for link speed values Use existing defines instead of hardcoded vales. Signed-off-by: Ferruh Yigit Acked-by: Shreyansh Jain --- 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);