From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) by dpdk.org (Postfix) with ESMTP id 05CDDB3D6 for ; Tue, 26 May 2015 17:42:05 +0200 (CEST) Received: by iesa3 with SMTP id a3so95143968ies.2 for ; Tue, 26 May 2015 08:42:04 -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=j7pogRNXsG3jq0/LBp6PhmO7mjLPOGQT1fu40gOniSo=; b=L3STkefCJNZAo2HJ5iNM/UQFHKoY3QRy2Ad3t4Wa6B11AzRyjWoVg5V8BhSvVuiNF8 uLvNjmKcMqZYydUUw4c0xOdi0rRQuS17aUpZeUxwqmylJ1eDAj6iNaHACRSEFrx1TWCE abfboaKgX0sTHW16lXACN7zI4aKIYgT9P5lOCJNzrm4FxU0umbk0v1C9mBu6RvVJEY3X a96RQOLB+OMRI7Mv1aeYSj5NvcGQxxn5uD+KWuwRWMyOZCq31TvqRCrG3tm1EQKye+xx MDD1SEU7pgC41s0UppUs6zxs4itD8CBAwrkIJZPnOuFnbvdwHapnUx/o9g2tL5/O0ST0 +Crw== X-Received: by 10.50.27.6 with SMTP id p6mr30445108igg.46.1432654924553; Tue, 26 May 2015 08:42:04 -0700 (PDT) Received: from buildhost2.vyatta.com. ([144.49.197.22]) by mx.google.com with ESMTPSA id rr5sm8574894igb.7.2015.05.26.08.42.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 May 2015 08:42:03 -0700 (PDT) From: Eric Kinzie To: dev@dpdk.org Date: Tue, 26 May 2015 08:41:46 -0700 Message-Id: <1432654909-13845-2-git-send-email-ehkinzie@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1432654909-13845-1-git-send-email-ehkinzie@gmail.com> References: <1432654909-13845-1-git-send-email-ehkinzie@gmail.com> Cc: Eric Kinzie Subject: [dpdk-dev] [PATCH v4 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, 26 May 2015 15:42:05 -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 --- 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 97a828e..1009d5b 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 -- 1.7.10.4