From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by dpdk.org (Postfix) with ESMTP id 589158E7C for ; Mon, 19 Oct 2015 17:36:58 +0200 (CEST) Received: by pacfv9 with SMTP id fv9so98784013pac.3 for ; Mon, 19 Oct 2015 08:36:57 -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=FWTiKDt+LXhq/CAZRb4bM419ln0dOYx5J3Vyms7hWcxBnYqPKvxQ8sPojk1aTfmWmf l/8X3aeSVWJC3YJrxI0f/uIERSiJuLiwyCDkCGIeC9KiloPQAOYsGrePoROOxQkeACn6 u/m1Ol67sBnv1KNwRwCwDfqPO6rVqaMBNlclzfv2wByIPcpWoZYWM3HR2x4+xaiFbwuF Bph/oXVNWd2hoXvZYtwGY3YGb4G6YKW28wdMcsJxwjC6+lg90nafXGuMDt3+IbKYlyJe gxA7RlZctK3VN0ufuVSrpeKX0BpPp9Yut8P/OMEpymocbRwtfoqZzhI2H6UbwNePwTVV C8NQ== X-Received: by 10.66.102.97 with SMTP id fn1mr35185200pab.97.1445269017757; Mon, 19 Oct 2015 08:36:57 -0700 (PDT) Received: from buildhost2.vyatta.com. ([144.49.132.22]) by smtp.gmail.com with ESMTPSA id ez2sm37002362pbb.5.2015.10.19.08.36.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 08:36:56 -0700 (PDT) From: Eric Kinzie To: dev@dpdk.org Date: Mon, 19 Oct 2015 08:36:13 -0700 Message-Id: <1445268976-27491-2-git-send-email-ehkinzie@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1445268976-27491-1-git-send-email-ehkinzie@gmail.com> References: <1445268976-27491-1-git-send-email-ehkinzie@gmail.com> Cc: Eric Kinzie Subject: [dpdk-dev] [PATCH v6 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: , X-List-Received-Date: Mon, 19 Oct 2015 15:36:58 -0000 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 -- 1.7.10.4