patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Jerin Jacob <jerinjacobk@gmail.com>
To: Devendra Singh Rawat <dsinghrawat@marvell.com>
Cc: dpdk-dev <dev@dpdk.org>, Jerin Jacob <jerinj@marvell.com>,
	 Ferruh Yigit <ferruh.yigit@intel.com>,
	 GR-Everest-DPDK-Dev <GR-Everest-DPDK-Dev@marvell.com>,
	dpdk stable <stable@dpdk.org>,
	 Igor Russkikh <irusskikh@marvell.com>,
	Rasesh Mody <rmody@marvell.com>
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/qede: fix qede milliseconds sleep macro
Date: Mon, 21 Sep 2020 23:00:51 +0530	[thread overview]
Message-ID: <CALBAE1NrWxvEyUDTpv1do2DyspS4fn+WY2rcoOu58k+URkcpSQ@mail.gmail.com> (raw)
In-Reply-To: <20200727141644.174264-1-dsinghrawat@marvell.com>

On Mon, Jul 27, 2020 at 7:47 PM Devendra Singh Rawat
<dsinghrawat@marvell.com> wrote:
>
> 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 <dsinghrawat@marvell.com>
> Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
> Signed-off-by: Rasesh Mody <rmody@marvell.com>

Applied to dpdk-next-net-mrvl/master. Thanks


> ---
>  drivers/net/qede/base/bcm_osal.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/net/qede/base/bcm_osal.h b/drivers/net/qede/base/bcm_osal.h
> index 5d4df5907..ded4fb0f5 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 */
>
> --
> 2.18.2
>

      reply	other threads:[~2020-09-21 17:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-27 14:16 [dpdk-stable] " Devendra Singh Rawat
2020-09-21 17:30 ` Jerin Jacob [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALBAE1NrWxvEyUDTpv1do2DyspS4fn+WY2rcoOu58k+URkcpSQ@mail.gmail.com \
    --to=jerinjacobk@gmail.com \
    --cc=GR-Everest-DPDK-Dev@marvell.com \
    --cc=dev@dpdk.org \
    --cc=dsinghrawat@marvell.com \
    --cc=ferruh.yigit@intel.com \
    --cc=irusskikh@marvell.com \
    --cc=jerinj@marvell.com \
    --cc=rmody@marvell.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).