From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id D38B911D9 for ; Sat, 20 Feb 2016 05:54:44 +0100 (CET) Received: by mail-pf0-f179.google.com with SMTP id x65so62106686pfb.1 for ; Fri, 19 Feb 2016 20:54:44 -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=xolZRolPUHFqOweBLUPFyttbfCW95ilfMaZU1p6ephU=; b=g7vwKo9Wq1a9Nbo+8Y7z2eMPdyuJGLjypsy8WiNGO/R5gjJZ3U7EuUVsyyHo5fix49 U0cDl/RrkqbQkm/6J7oM9rLrBOJOWvO98JgVNSeejdG1atFFaWxY4CNjH2SsIfbZbbip jIMdKuqI3Z6dsTzurDwVeFWPRKX+hw1ubkL6sP0wPy3rPTzIJydvL8F7WRDKsA1yOfI2 lMStHRGM1a6CDljo+ptCABBO+bp2DiXr8AJDZJ0jou2sI9Y0pHDiecBYDDqYNBSMhGYb 42ngepPg2ZYIUcvr/o61r+dd5b/7idrWhmn9J8KX67f8G/TAf+bizcP8rZ6NLX0A93ss jn5Q== 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=xolZRolPUHFqOweBLUPFyttbfCW95ilfMaZU1p6ephU=; b=aLZE0lRso2iWboIUAtIvZSMImeerdoH0uieOU2ZF5SzpbMZq4PrICnROB25V/u6btA Rlr/HZJff5hVCQ82HwQ0DcmTN3+u9vu4LiRS0DK85WpiPzdAPHHOWGP7P2nabeNGMboD mvcPyo6Yt0P8IFpM8NXFOh21dBMwUQ1mCs27dZoedAXANbcpV6aSj/6fafZP/yD2JilK qlPYrEfARzsNodkdEs/nLKRLM5Ai4gGvURATgtkc7NgSJr2mMectau5cUuomwcS332Yy PRxZp9IrESaaoAbaSG02GeU5WW7+SzzyrF1aAuooPBdyO/O4N3Isxayi2E7pwLhQ+sk+ A01A== X-Gm-Message-State: AG10YOQIJjGFV5ZefbIycCBNCMpgxiSOP/vMTJWSaq3KepNXi7/Yp4dHf7zVjaAgHZAb+A== X-Received: by 10.98.14.68 with SMTP id w65mr20442570pfi.144.1455909495679; Fri, 19 Feb 2016 11:18:15 -0800 (PST) Received: from buildhost2.vyatta.com. ([144.49.132.22]) by smtp.gmail.com with ESMTPSA id tp6sm19670555pab.25.2016.02.19.11.18.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 11:18:14 -0800 (PST) From: Eric Kinzie To: dev@dpdk.org Date: Fri, 19 Feb 2016 11:17:49 -0800 Message-Id: <1455909473-13539-3-git-send-email-ehkinzie@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1455909473-13539-1-git-send-email-ehkinzie@gmail.com> References: <8CEF83825BEC744B83065625E567D7C219FB2C51@IRSMSX108.ger.corp.intel.com> <1455909473-13539-1-git-send-email-ehkinzie@gmail.com> Cc: Eric Kinzie Subject: [dpdk-dev] [PATCH v2 2/6] 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: Sat, 20 Feb 2016 04:54:45 -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 -- 1.7.10.4