From patchwork Fri Dec 4 17:14:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 9353 X-Patchwork-Delegate: bruce.richardson@intel.com 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 018F091B0; Fri, 4 Dec 2015 18:14:16 +0100 (CET) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id B22C99190 for ; Fri, 4 Dec 2015 18:14:13 +0100 (CET) Received: by pacej9 with SMTP id ej9so89769596pac.2 for ; Fri, 04 Dec 2015 09:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=j5XxmTqOQSqI46QYwEpCvx+141MjDpCNEp95YZV7qsI=; b=hQrDOzy30nfyY6HexGCHctsVHCmQapdF02ByUTqwSDfsV2kMLzMN7pjdp7kyNhE4GP k0AuhbM6UbGcjLY9e+I5/PCXhFEPQ982wSjTyF8Ni/iORXRUnktyToe/D6HOexGGcPcy ySF5JVCEMmhZvxj7mklqseZlmczz+Jicj7Rsfy3T2h1OefOsCKCRrFv/ITAC/UhU2hsY 8z44DuMVkX6CsAR8yWcGa5J8wgghZWdhp3KtukP8yJ/RhvkLySW9//Ogr7DgGtlX/5n3 U3tH9t8xsj8V48Siy+sRA05AlIaNZVbh3F7B468JDBuL7MUYffJgjvEQIkmEaMXP6iWH PRYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=j5XxmTqOQSqI46QYwEpCvx+141MjDpCNEp95YZV7qsI=; b=hrdwjlMqGMU4zXbh48IOJ7g7wr71csbUlxk1U0C5b+aof/LP/HGOZYsLfxg2z4uO6w znFftGHG6g14rM785c/YNd0BmL/xiAYmzFEtH3QB6yi9JkDtod0735LHpOFH5Rw7IodL VL27J2qlceAG8rOBtq8mmw6zXoySLv31KAD4s6vC9Jk3cZr1mbJ9iUD7SSENqXcCGHoo bfEFbPHaVtf8qvXW6JXtYgVvI8g+N04J4nRhVBKBgEPBpkW5Lrj8E3anTeeoNj9BX9fY ltud88UBr7KMty2g2BZw+6hwTn+qINyAw8xt3jbcIF5Et9K1m1YAnM21WTET7iYUFzf+ /lvA== X-Gm-Message-State: ALoCoQnwdHQA2GOF9mZW9IX8Zyr7ClEhRloMltCuJgzGk4vDc3TTjvWOiQUi5Tes1I9drirh2yaR X-Received: by 10.66.140.39 with SMTP id rd7mr23073916pab.86.1449249253108; Fri, 04 Dec 2015 09:14:13 -0800 (PST) Received: from xeon-e3.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id 134sm18291003pfa.30.2015.12.04.09.14.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Dec 2015 09:14:12 -0800 (PST) From: Stephen Hemminger To: declan.doherty@intel.com Date: Fri, 4 Dec 2015 09:14:14 -0800 Message-Id: <1449249260-15165-3-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1449249260-15165-1-git-send-email-stephen@networkplumber.org> References: <1449249260-15165-1-git-send-email-stephen@networkplumber.org> Cc: dev@dpdk.org, Eric Kinzie Subject: [dpdk-dev] [PATCH 2/8] 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 Signed-off-by: Stephen Hemminger Acked-by: Declan Doherty --- 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 ee2964a..f2620b8 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