From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by dpdk.org (Postfix) with ESMTP id 822BCAD7E for ; Tue, 1 Mar 2016 18:32:20 +0100 (CET) Received: by mail-pf0-f195.google.com with SMTP id 184so5501361pff.1 for ; Tue, 01 Mar 2016 09:32:20 -0800 (PST) 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=QZQ/FB51yLWgWTFmMJaymtsMMD27UAYStr7iF+Q9r3o=; b=L99Kq1rESwKZTfHDS28rFGjgSYuu3hUbw9o+qu3EKDxrX3kGdYOx4Y8MbuOzaTAQnz QzBoyjOO9sWzlfmsZsszpdm5gCLVWrKdMt5vSYBR8eu2LDlxtGJH6VSwYWsr3P/SAcKY UpIgwn9pfgyZpV3wBzruGCmSY/o53hFTrEKCXKbbfk1KDpClKENYKOFaX1tysgFU6Ieg 7uYbfs8gJnQyxEP7U/I+hf61yul39iNuQ/2DCmA6eEW3LFPdnfvtI/b7tvWhBR2OaiJh GUee3T0YLv2MbjB7jep1Jm7ByjZYk4qKpHM+JuqSHiwFjpERmvyp/4kwzoI3TFLJzPgE oGeA== 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=QZQ/FB51yLWgWTFmMJaymtsMMD27UAYStr7iF+Q9r3o=; b=ef74HFkJgJOBkXRF03AA/GfSQUw1+4F3RqYi/CnreFbkW0KsYtEGvdCetP/gB0pTxM IHnF1xgqUWcpnRIXnPBqTIZ0BNaTNR87E5t0JaLhnX/Vnc4XxJ2BuUyaTTK83kK8q5HD uoi8Ni/aHoDUl/TolVeG5u1FBKCgWGC/BK1WRiH5mohVjUtENar1avkoDexhKnP279Xq /YBEDiO/oZDLcs1iHoiHW4Y/K302+b0wDEjGGrwOGTfSPMihKiDQRDAV4xGSr4/87NKj NYFDHdrlRtPrUzekwNPD30prYkSIB9wZ3NZV+XgZW6260L1ZH069oekcX3dqFaDqX8Q4 AKsw== X-Gm-Message-State: AD7BkJIjemAqTfzrb3SQmuVC+AU7oOg/zGpqj1VqlteaAYvRh521Oo4HA8HKEJ35Nf+Zkw== X-Received: by 10.98.79.203 with SMTP id f72mr7183475pfj.102.1456853539956; Tue, 01 Mar 2016 09:32:19 -0800 (PST) Received: from buildhost2.vyatta.com. ([144.49.132.22]) by smtp.gmail.com with ESMTPSA id y27sm46938069pfi.82.2016.03.01.09.32.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Mar 2016 09:32:18 -0800 (PST) From: Eric Kinzie To: dev@dpdk.org Date: Tue, 1 Mar 2016 09:31:59 -0800 Message-Id: <1456853522-4864-2-git-send-email-ehkinzie@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1456853522-4864-1-git-send-email-ehkinzie@gmail.com> References: <8CEF83825BEC744B83065625E567D7C219FB4852@IRSMSX108.ger.corp.intel.com> <1456853522-4864-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: Tue, 01 Mar 2016 17:32:20 -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 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 b3b30f6..1b7e93a 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -1019,6 +1019,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 -- 2.1.4