net/qede: fix qede milliseconds sleep macro
PATCH 1/1 net/qede: fix qede 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")
Signed-off-by Devendra Singh Rawat <[email protected]>
Signed-off-by Igor Russkikh <[email protected]>
Signed-off-by Rasesh Mody <[email protected]>
--- drivers/net/qede/base/bcm_osal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/qede/base/bcm_osal.h +1 -2
@@ -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 */
Signature · 1 line
2.18.2
Jerin Jacob
AppliedQuoted 11 lines · Devendra Singh Rawat
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")Signed-off-by Devendra Singh Rawat <[email protected]>Signed-off-by Igor Russkikh <[email protected]>Signed-off-by Rasesh Mody <[email protected]>
Applied to dpdk-next-net-mrvl/master. Thanks
Quoted 22 lines
--- drivers/net/qede/base/bcm_osal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/net/qede/base/bcm_osal.h +1
-3@@ -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 */ --2.18.2