From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 2/3] xen-virt: use memset not bzero
Date: Tue, 1 Dec 2015 19:24:11 -0800 [thread overview]
Message-ID: <1449026652-7320-3-git-send-email-stephen@networkplumber.org> (raw)
In-Reply-To: <1449026652-7320-1-git-send-email-stephen@networkplumber.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/xenvirt/rte_eth_xenvirt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c
index e83c08c..3353bcb 100644
--- a/drivers/net/xenvirt/rte_eth_xenvirt.c
+++ b/drivers/net/xenvirt/rte_eth_xenvirt.c
@@ -640,7 +640,8 @@ eth_dev_xenvirt_create(const char *name, const char *params,
struct pmd_internals *internals = NULL;
struct rte_eth_dev *eth_dev = NULL;
struct xenvirt_dict dict;
- bzero(&dict, sizeof(struct xenvirt_dict));
+
+ memset(&dict, 0, sizeof(struct xenvirt_dict));
RTE_LOG(INFO, PMD, "Creating virtio rings backed ethdev on numa socket %u\n",
numa_node);
--
2.1.4
next prev parent reply other threads:[~2015-12-02 3:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 3:24 [dpdk-dev] [PATCH 0/3] replace bzero with memset Stephen Hemminger
2015-12-02 3:24 ` [dpdk-dev] [PATCH 1/3] test-pmd: use memset not bzero Stephen Hemminger
2015-12-02 3:24 ` Stephen Hemminger [this message]
2015-12-02 3:24 ` [dpdk-dev] [PATCH 3/3] qat: use memset instead of bzero Stephen Hemminger
2015-12-02 8:28 ` [dpdk-dev] [PATCH 0/3] replace bzero with memset De Lara Guarch, Pablo
2015-12-06 22:51 ` Thomas Monjalon
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=1449026652-7320-3-git-send-email-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=dev@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).