DPDK patches and discussions
 help / color / mirror / Atom feed
From: Rami Rosen <ramirose@gmail.com>
To: Thomas Monjalon <thomas@monjalon.net>
Cc: Shahaf Shuler <shahafs@mellanox.com>,
	Yongseok Koh <yskoh@mellanox.com>, dev <dev@dpdk.org>,
	ophirmu@mellanox.com
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: call generic strlcpy
Date: Mon, 25 Feb 2019 08:26:22 +0200	[thread overview]
Message-ID: <CAHLOa7SAfEWJn3LoKwOVAEbdhHYEe-3xvOac6ZJOSWFxHSyC-g@mail.gmail.com> (raw)
In-Reply-To: <20190224224240.26361-1-thomas@monjalon.net>

Checked on Fedora 28

Reviewed-by: Rami Rosen <ramirose at gmail.com>


On Mon, Feb 25, 2019 at 12:42 AM Thomas Monjalon <thomas@monjalon.net>
wrote:

> The call to strlcpy uses either libc, libbsd or internal rte_strlcpy.
> No need to call the DPDK flavor explictly.
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> ---
>  drivers/net/mlx5/mlx5.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
> index df71707ccb..bda909eaa5 100644
> --- a/drivers/net/mlx5/mlx5.c
> +++ b/drivers/net/mlx5/mlx5.c
> @@ -785,7 +785,7 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
>         }
>         /* Build device name. */
>         if (!switch_info->representor)
> -               rte_strlcpy(name, dpdk_dev->name, sizeof(name));
> +               strlcpy(name, dpdk_dev->name, sizeof(name));
>         else
>                 snprintf(name, sizeof(name), "%s_representor_%u",
>                          dpdk_dev->name, switch_info->port_name);
> --
> 2.20.1
>
>

-- 
regards,
Rami Rosen

  reply	other threads:[~2019-02-25  6:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-24 22:42 Thomas Monjalon
2019-02-25  6:26 ` Rami Rosen [this message]
2019-03-07  8:35   ` Shahaf Shuler

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=CAHLOa7SAfEWJn3LoKwOVAEbdhHYEe-3xvOac6ZJOSWFxHSyC-g@mail.gmail.com \
    --to=ramirose@gmail.com \
    --cc=dev@dpdk.org \
    --cc=ophirmu@mellanox.com \
    --cc=shahafs@mellanox.com \
    --cc=thomas@monjalon.net \
    --cc=yskoh@mellanox.com \
    /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).