From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 988101B1BC for ; Wed, 24 Jan 2018 16:42:42 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 50469226D0; Wed, 24 Jan 2018 10:42:42 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:42:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=yiUHRLW/bol8kloVY 1Vrurnp9fFL09WfRgj2L/lojn0=; b=NC1Nv4m8baEg1eHTGE21eSWH2Kwc3NS/U 2m/jzTm2p6xEp7pPqVwqONrsoW9VQi7vgpizyXyBWU4NMX75RBzuVdVigbCOYOEJ KvXhZZ5bh65qiMWy4kkUZ3ZlKMz9y3j1Ppot29QLPy6blPEcRykUXAMOIdhQKr2O /xObtai5EVo/6hfC0SUp13hZHidGCUF3ggwvcovS3XbLs6qMb6cPz5iE1O5zMWwe N0upJ5UQ/6jlR/Tnva09+u86MlLhuYfAGjsyLNp941q7KXWA4JGtfMB6mx0XFiys loDzR5p1b2Snc8kr+Yrp/jKVK5Lf7gPrzXAjm4mrrRlL017KwbPpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=yiUHRLW/bol8kloVY1Vrurnp9fFL09WfRgj2L/lojn0=; b=BG2r8E+B kXZ7gO4jaD54Q89Iz6a59yrAhOfut/P9bgguUNq/djvO6zQyaifUtfQBENCl9Ha6 +FTu8DSwVXvyADe2eKXCvTpPIqltgJ2urgM8SkUqtmpmUhlogo/WR8fk3JcEPjbL L8uW1o2hhuAM+vr+PO2D0QqMLnL17lcb/tRgdX8GJ0n/SHE+4c9rbRJ2RC8M1aMA zuOjIGGhpMsFuS1C/MsTbfPeel57IcHsowWCazqB9KZCNTdRbAzG7tQbcdikLnMc Igq5KJKNds3/9Dt6KsoG+PkTdcooggnBGOEnfsQF/081FMU4rVmAcQC6mdOm/25j zD85WRJ28ZlpAQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 493527E3D4; Wed, 24 Jan 2018 10:42:39 -0500 (EST) From: Yuanhan Liu To: Roman Zhukov Cc: Andrew Rybchenko , dpdk stable Date: Wed, 24 Jan 2018 23:33:40 +0800 Message-Id: <1516808026-25523-152-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/sfc: fix initialization of flow structure' has been queued to LTS release 17.11.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: Wed, 24 Jan 2018 15:42:42 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.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 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From e49fd421ba6085c1ad1f28cbc5c0a77aecdc86ed Mon Sep 17 00:00:00 2001 From: Roman Zhukov Date: Thu, 18 Jan 2018 07:32:55 +0000 Subject: [PATCH] net/sfc: fix initialization of flow structure [ upstream commit 13195b557b3e20bb84fff0f313137125c0cadfde ] The rte_flow is already filled in with zeros in the case of create. So memset() with zeros is needed only in validation. Fixes: a9825ccf5bb8 ("net/sfc: support flow API filters") Signed-off-by: Roman Zhukov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c index f2050f6..944e424 100644 --- a/drivers/net/sfc/sfc_flow.c +++ b/drivers/net/sfc/sfc_flow.c @@ -1126,8 +1126,6 @@ sfc_flow_parse(struct rte_eth_dev *dev, struct sfc_adapter *sa = dev->data->dev_private; int rc; - memset(&flow->spec, 0, sizeof(flow->spec)); - rc = sfc_flow_parse_attr(attr, flow, error); if (rc != 0) goto fail_bad_value; @@ -1160,6 +1158,8 @@ sfc_flow_validate(struct rte_eth_dev *dev, { struct rte_flow flow; + memset(&flow, 0, sizeof(flow)); + return sfc_flow_parse(dev, attr, pattern, actions, &flow, error); } -- 2.7.4