From patchwork Mon Apr 20 19:26:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Kinzie X-Patchwork-Id: 4392 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 6851C5FEB; Mon, 20 Apr 2015 21:26:33 +0200 (CEST) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by dpdk.org (Postfix) with ESMTP id 557685A9D for ; Mon, 20 Apr 2015 21:26:31 +0200 (CEST) Received: by pacyx8 with SMTP id yx8so215855227pac.1 for ; Mon, 20 Apr 2015 12:26:30 -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=NzPXlEOYULZQLhGxwzkbJWRRWSeGfRCHUrvcFKNrkAI=; b=qpw9mTGmPpuJZbp8awjmj9Yh87RgO4szAcMjF+9Z3bV6aM6CLtfi0ceGpJvDK79YU7 Vpr3jDCbWmR55bwj93Fh813PR41KcgAxb2lsJoVeEFMfqWBP6FlGfisjcgEH/DylE3JJ TqcMaMW2yvKVuWbXeHAymNQsv74Hd8P0fgsEo9SkM6vFadq+1ewmJd3Ktkusz8GmiqN9 GPibu0m0BaeXf15rHrxBdyLRSuHfbSYswd8XG+/fxrb1P4s5COMKrOOhGgqbGzx27BrV wlNZTtD52Sg5nATHfWNbYrTmgc99g2MQDguUkZsU1/0+C95VGNh4UZYIcK+wEnLdF60q D0Hg== X-Received: by 10.66.252.3 with SMTP id zo3mr30157615pac.26.1429557990621; Mon, 20 Apr 2015 12:26:30 -0700 (PDT) Received: from buildhost2.vyatta.com. ([144.49.132.22]) by mx.google.com with ESMTPSA id eo5sm18899418pbb.51.2015.04.20.12.26.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 12:26:29 -0700 (PDT) From: Eric Kinzie To: dev@dpdk.org Date: Mon, 20 Apr 2015 12:26:13 -0700 Message-Id: <1429557976-13531-2-git-send-email-ehkinzie@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1429557976-13531-1-git-send-email-ehkinzie@gmail.com> References: <1429557976-13531-1-git-send-email-ehkinzie@gmail.com> Cc: Eric Kinzie Subject: [dpdk-dev] [PATCH v2 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 --- lib/librte_pmd_bond/rte_eth_bond_8023ad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_pmd_bond/rte_eth_bond_8023ad.c b/lib/librte_pmd_bond/rte_eth_bond_8023ad.c index 97a828e..1009d5b 100644 --- a/lib/librte_pmd_bond/rte_eth_bond_8023ad.c +++ b/lib/librte_pmd_bond/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