From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by dpdk.org (Postfix) with ESMTP id B330CC35E for ; Wed, 22 Apr 2015 18:28:09 +0200 (CEST) Received: by pacyx8 with SMTP id yx8so277174008pac.1 for ; Wed, 22 Apr 2015 09:28:09 -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=fnPfz7oZ3QCORM0COs5Jd10F7pJ3VPohrAOrNmmWh0D0xryiYjLjV1VB3Ef3fbbgbV HWh292+nA8VceeCyFXOmKZnrlF8OeugQDazmSzbW/piq5dd+2op6tgsRP2mEO+ScvUJC esKSy3/rtFvavZc8L34hy2kJBBQFQUSKIuVsyS/SAhfjLT/nuUs0/JqhiDgwxJjW7Qrq XBXeEX7MZVb6v7l+Mo+2JA/Qoao/nRuEHaoAH9Z6uK5EodH5rsMWpPQ4bCbyF+uHtpZz Ti5PoE9vV0YEeR/AKJ+Y7hqyoQM2d507hRrxnT7GzPv55lS+qYRe2/aBtZTeufcPN7K9 65jw== X-Received: by 10.70.35.201 with SMTP id k9mr19823405pdj.128.1429720089104; Wed, 22 Apr 2015 09:28:09 -0700 (PDT) Received: from buildhost2.vyatta.com. ([144.49.132.22]) by mx.google.com with ESMTPSA id l8sm5543146pdj.80.2015.04.22.09.28.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Apr 2015 09:28:07 -0700 (PDT) From: Eric Kinzie To: dev@dpdk.org Date: Wed, 22 Apr 2015 09:27:40 -0700 Message-Id: <1429720063-9943-2-git-send-email-ehkinzie@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1429720063-9943-1-git-send-email-ehkinzie@gmail.com> References: <1429720063-9943-1-git-send-email-ehkinzie@gmail.com> Cc: Eric Kinzie Subject: [dpdk-dev] [PATCH v3 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: Wed, 22 Apr 2015 16:28:10 -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 --- 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 -- 1.7.10.4