From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by dpdk.org (Postfix) with ESMTP id B068E2A5F for ; Wed, 2 Dec 2015 04:24:05 +0100 (CET) Received: by pabfh17 with SMTP id fh17so26863091pab.0 for ; Tue, 01 Dec 2015 19:24:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6/gIxSSyuAsdYPt94y7y1OenICWwaybXhitqAcAvZYs=; b=mhjxzma/hZs/lmnh+Z0otEgIDbFm82Pp4rjjyLBjzYk04VYMQtliOzNotPqmorWMiZ Wylh9AK4SxmrExv1fVO/SJKYx8b4ZKPhFolQ74udmgmqyZK3Bzp0FHZzhB/Uzx4gARVS TQrmkPXxzAtJFP7wn2+THaRnyV6EDRLJOgSAZW4fGLuzANOnc2HP/hxymXrCD0PTWmYA gvbHtFejaUrDfC1WWZnqDIA1D05bEqTHf0cxxXtQgeCpdz0028IYONcdBByX6M2ZuGrg F2mVIXeD4W3PnRThBQJ8LWCt0IbveSEf/ljdlT1c5YB9hcNux5O5Zj2ZnTDPA+JGnCXE 7Gkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6/gIxSSyuAsdYPt94y7y1OenICWwaybXhitqAcAvZYs=; b=GSbgxScj0wH2ygBiFsNjKAB7TWDnn7bOvljw4HZ4hiSUIvEf65Yq61zaSPS+R5gZms 3AG6f6/JDjj0yH6ckeQ9ILyIJjkM6oFQqeg+/Ah9IZ5pgpT4RE3Mv7bJzPkq1SipEzBj YdYVMmKGsc9NJYvW5aZ8fT8xDD0e9z2htN7Iu6Z7JbL8JjtokGctSFga9S8ZXlr+8Pnr Uz0WpwpAiSE4mS7T7eU0Yk+DFzzs5VUeijNLnlHrYmY93PMAnoFxyMDNAleG06gfY7X8 2UzBmak/KpjKwPRtRc8L22QKA9/E9wBRmsh5BohcjJIvsXkICDgB/1i6+KYDJXSmhTIi Qs1g== X-Gm-Message-State: ALoCoQnIHeYc3SVRP+ehc5E31U8/5zmKCl5JzWu6x8MBbn8PgHgZkz8n0qnqY7LWDpik08sSbOs1 X-Received: by 10.66.156.106 with SMTP id wd10mr1319524pab.150.1449026645084; Tue, 01 Dec 2015 19:24:05 -0800 (PST) Received: from xeon-e3.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id n88sm713752pfb.26.2015.12.01.19.24.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Dec 2015 19:24:04 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Tue, 1 Dec 2015 19:24:10 -0800 Message-Id: <1449026652-7320-2-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1449026652-7320-1-git-send-email-stephen@networkplumber.org> References: <1449026652-7320-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 1/3] test-pmd: use memset not bzero X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2015 03:24:06 -0000 The standard for DPDK is to use memset() not bzero which is a leftover BSD-ism. Signed-off-by: Stephen Hemminger --- app/test-pmd/testpmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 093952f..98ae46d 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1512,7 +1512,7 @@ attach_port(char *identifier) nb_ports = rte_eth_dev_count(); /* set_default_fwd_ports_config(); */ - bzero(fwd_ports_ids, sizeof(fwd_ports_ids)); + memset(fwd_ports_ids, 0, sizeof(fwd_ports_ids)); i = 0; FOREACH_PORT(j, ports) { fwd_ports_ids[i] = j; @@ -1547,7 +1547,7 @@ detach_port(uint8_t port_id) nb_ports = rte_eth_dev_count(); /* set_default_fwd_ports_config(); */ - bzero(fwd_ports_ids, sizeof(fwd_ports_ids)); + memset(fwd_ports_ids, 0, sizeof(fwd_ports_ids)); i = 0; FOREACH_PORT(pi, ports) { fwd_ports_ids[i] = pi; -- 2.1.4