From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by dpdk.org (Postfix) with ESMTP id BEA48325A for ; Tue, 20 Jun 2017 13:38:39 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id s66so22258971pfs.2 for ; Tue, 20 Jun 2017 04:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KtPABP3cHj9E26JwtdITd8RQdsY7vcv76oXn10LaZQ4=; b=cwdyApnyTg+CTcfvIVCCu1BLa7gCIYTUorbo5lYbe0IlX5BnFtYHIED97XCR7Sf+uI aGGn7GWAOR4kJONxLpCyPiRWcoal02hOezIjzv7Q/M/o/z+qX5lgEX1i5XM2KT9Qpf5k x+zUkULLFJBm8M+Bi/9oejc373Fv9HsJAjwHJBL2X1goVOzuS9AMt5vFK/LEiaW0kcgV zRG6OZ/5ZdV+Y1t7zPu1xGUj9MGCdd7jPDAoQvbS7YHi0xUCCGpNCDMgHl7oBG9MEsgr KOakeBu5djr6fmcrdDvozP4eVXqzQfYIzy8m18M4m4Rz2Gr7+YVKEKvXy11Tb1P12YtN buxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KtPABP3cHj9E26JwtdITd8RQdsY7vcv76oXn10LaZQ4=; b=sWR32MXPQm9dqQF1LdbOxCnPxB2GnEahIKdHkeTLNnZAArdKKbNT+BQLSvaab8DCAX 80hYmsxg9R1wYcenDB+VH+g4Oy2eg9U+SWU8ThbpW0jgrwYJYi4ghCmlvM0LSQzH7z1O tSvGzYqMZdhLB14QK33qAMouUTgc8W85CfPzfROw33SOQ3bHgPqq7JcTCuG+4kj64e1C Uux+NWSPJGvO9mI6exQAnfMyseB4rs2z6mRAnFfqmq6GCzy6cMcrDLCC0IVtBreutGoG 03OQfUCBO2zqnBSdJYc6Orxs/QRuXcnH7XyIsYYwdnosCZ+kytj82PzZqDK478CSSXwT 46KA== X-Gm-Message-State: AKS2vOwL6MUP+SfhGnDIzApzxmlEHXDw7Epong5pCvJNrb6E9QDJTOvL SDze6mVlO9S747fF X-Received: by 10.84.205.70 with SMTP id o6mr35574785plh.32.1497958719124; Tue, 20 Jun 2017 04:38:39 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.38.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:38:38 -0700 (PDT) From: Yuanhan Liu To: Tiwei Bie Cc: Yuanhan Liu , dpdk stable Date: Tue, 20 Jun 2017 19:35:49 +0800 Message-Id: <1497958550-13600-37-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/virtio: zero the whole memory zone' has been queued to stable release 17.05.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 11:38:40 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From b9c1c218c13c6d6fccc960bdc8bcd5b35fb9d061 Mon Sep 17 00:00:00 2001 From: Tiwei Bie Date: Mon, 12 Jun 2017 12:34:30 +0800 Subject: [PATCH] net/virtio: zero the whole memory zone [ upstream commit 5bdd24e451c711129218c88292cae8e891e7506a ] Zero the whole memory zone instead of the first few bytes. Fixes: c1f86306a026 ("virtio: add new driver") Signed-off-by: Tiwei Bie Acked-by: Yuanhan Liu --- drivers/net/virtio/virtio_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 45f9bca..88118f1 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -424,7 +424,7 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t vtpci_queue_idx) } } - memset(mz->addr, 0, sizeof(mz->len)); + memset(mz->addr, 0, mz->len); vq->vq_ring_mem = mz->phys_addr; vq->vq_ring_virt_mem = mz->addr; -- 2.7.4