From patchwork Sun Feb 24 22:42:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 50480 X-Patchwork-Delegate: shahafs@mellanox.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 60DB7324D; Sun, 24 Feb 2019 23:42:49 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id EE6EE2BBB for ; Sun, 24 Feb 2019 23:42:47 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9ABCD21CF1; Sun, 24 Feb 2019 17:42:47 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 24 Feb 2019 17:42:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=iUHrIhWXaFnoQRMxYbersUd FRP/he3kaglpH1jOURxU=; b=RxFEzA+ibn5VKW2sT2bNblFfv6JIS0ydeGmlck0 6vL3YqdwR16hOktTJryniybWAxUHcQyVh0E1AcnDjqsATcoqSs/0tZmkl9X7GhDC Mz3WtX6eB7w/tEc6ReHTDKyQilQKxeO7ughbAmwwiXN3fAUa9Qdb7dCtD3jiDH2s grY4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=iUHrIhWXaFnoQRMxY bersUdFRP/he3kaglpH1jOURxU=; b=y2yQwKS/fYpikGkzI28BuOQ1sJlaTroiW E+5K5Te9Z2sCm7ryn9ijwTlF3y7fBEkpyOSvjoDxQ3q/0v7aJN+9hKjLuWijLsEn 66Ive5heb1hkBblBb8nTVdz2f3aJ/gDCTaYoFQn1tWM9k2rvepIkUWgfxnXEQn2i uMpOin8x3plX55kxoOhlVnwQNGHZlRUdT2zt3o/tEfjXmzJPlhQk/WbfOhicyQE+ yZlG0mSQiyxnYF9k2TnWBYoXWnNP5xZq60ot4TdKrcg9nqmIF1RXm3QwMJH6vvrP hkpiEG3Y5Zlo0jy1Lk/n+asxDzMB9ecc8t9JkpBbe2WZJkwpnbVNw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrudeggdduieegucdltddurdegtdelrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhht necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgepud X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 8C62DE44A2; Sun, 24 Feb 2019 17:42:46 -0500 (EST) From: Thomas Monjalon To: Shahaf Shuler , Yongseok Koh Cc: dev@dpdk.org, ophirmu@mellanox.com Date: Sun, 24 Feb 2019 23:42:40 +0100 Message-Id: <20190224224240.26361-1-thomas@monjalon.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] net/mlx5: call generic strlcpy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Reviewed-by: Rami Rosen Reviewed-by: Rami Rosen > Signed-off-by: Thomas Monjalon > --- 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);