From patchwork Wed Sep 30 17:48:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Kinzie X-Patchwork-Id: 7335 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id A37748E5D; Wed, 30 Sep 2015 19:48:36 +0200 (CEST) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by dpdk.org (Postfix) with ESMTP id B956C8D90 for ; Wed, 30 Sep 2015 19:48:32 +0200 (CEST) Received: by igcpb10 with SMTP id pb10so111171437igc.1 for ; Wed, 30 Sep 2015 10:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8hcsrHIuSS1TGdzXrv7JbBpbaX7sk/JnpYHbiPnl6ME=; b=d0Yg4a1FduFLNJlMLORmgi5Blwyas26DVRGpRaJ7NK0aguXY/G+WfzcFGNh242xzvU pg9nt6aE9grFs5Zi9AjZb1evY4CCcEn8HXo4Zi+BB2/QEUE9VzZ0lQIwPhsOpomBsJ5D ttQ56oHhclNbNLx2QZcGpIMpnzP8LKPdxInXP10Yg91y25hNfwrqN9nFO90ab9b33Xu0 Yrz2SSjqqvu9fIIAs52LMurbmE7acPbyNY4RBIu8bMAHDnHBxKjKBIr4KrxvueBA4Ac7 2ffT0hCUQ1EoIaCGIgwB4p6qoNQ2YLZtINM1GFs10SZ+g5ZRXo0N4ii5A/LPMhES4t7e sWoA== X-Received: by 10.50.25.168 with SMTP id d8mr6685708igg.26.1443635312176; Wed, 30 Sep 2015 10:48:32 -0700 (PDT) Received: from buildhost2.vyatta.com. ([144.49.197.22]) by smtp.gmail.com with ESMTPSA id b10sm753288igb.9.2015.09.30.10.48.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2015 10:48:31 -0700 (PDT) From: Eric Kinzie To: dev@dpdk.org Date: Wed, 30 Sep 2015 10:48:14 -0700 Message-Id: <1443635297-13106-2-git-send-email-ehkinzie@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1443635297-13106-1-git-send-email-ehkinzie@gmail.com> References: <1443635297-13106-1-git-send-email-ehkinzie@gmail.com> Cc: Eric Kinzie Subject: [dpdk-dev] [PATCH v5 1/4] bond mode 4: copy entire config structure 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Eric Kinzie Copy all needed fields from the mode8023ad_private structure in bond_mode_8023ad_conf_get(). This help ensure that a subsequent call to rte_eth_bond_8023ad_setup() is not passed uninitialized data that would result in either incorrect behavior or a failed sanity check. Fixes: 46fb43683679 ("bond: add mode 4") Signed-off-by: Eric Kinzie --- drivers/net/bonding/rte_eth_bond_8023ad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index c0f0b99..08f679f 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -1013,6 +1013,7 @@ bond_mode_8023ad_conf_get(struct rte_eth_dev *dev, conf->aggregate_wait_timeout_ms = mode4->aggregate_wait_timeout / ms_ticks; conf->tx_period_ms = mode4->tx_period_timeout / ms_ticks; conf->update_timeout_ms = mode4->update_timeout_us / 1000; + conf->rx_marker_period_ms = mode4->rx_marker_timeout / ms_ticks; } void