From: Devendra Singh Rawat Date: Mon, 27 Jul 2020 14:16:44 +0000 (+0530) Subject: net/qede: fix milliseconds sleep macro X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=91979430089bf897881238a168b631f1a81c5477;p=dpdk.git net/qede: fix milliseconds sleep macro The macro defined for milliseconds sleep was not putting the thread to sleep and was simply calling a delay routine. This fix redefines the macro to call the correct rte sleep API. Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org Signed-off-by: Devendra Singh Rawat Signed-off-by: Igor Russkikh Signed-off-by: Rasesh Mody --- diff --git a/drivers/net/qede/base/bcm_osal.h b/drivers/net/qede/base/bcm_osal.h index 5d4df5907a..ded4fb0f57 100644 --- a/drivers/net/qede/base/bcm_osal.h +++ b/drivers/net/qede/base/bcm_osal.h @@ -81,9 +81,8 @@ typedef intptr_t osal_int_ptr_t; #define DELAY(x) rte_delay_us(x) #define usec_delay(x) DELAY(x) -#define msec_delay(x) DELAY(1000 * (x)) #define OSAL_UDELAY(time) usec_delay(time) -#define OSAL_MSLEEP(time) msec_delay(time) +#define OSAL_MSLEEP(time) rte_delay_us_sleep(1000 * (time)) /* Memory allocations and deallocations */