From: Eric Kinzie <ehkinzie@gmail.com>
To: dev@dpdk.org
Cc: Eric Kinzie <ekinzie@brocade.com>
Subject: [dpdk-dev] [PATCH v2 1/4] bond mode 4: copy entire config structure
Date: Mon, 20 Apr 2015 12:26:13 -0700 [thread overview]
Message-ID: <1429557976-13531-2-git-send-email-ehkinzie@gmail.com> (raw)
In-Reply-To: <1429557976-13531-1-git-send-email-ehkinzie@gmail.com>
From: Eric Kinzie <ekinzie@brocade.com>
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 <ehkinzie@gmail.com>
---
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
next prev parent reply other threads:[~2015-04-20 19:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 19:26 [dpdk-dev] [PATCH v2 0/4] bonding corrections and additions Eric Kinzie
2015-04-20 19:26 ` Eric Kinzie [this message]
2015-04-20 19:26 ` [dpdk-dev] [PATCH v2 2/4] bond mode 4: do not ignore multicast Eric Kinzie
2015-04-20 19:26 ` [dpdk-dev] [PATCH v2 3/4] bond mode 4: allow external state machine Eric Kinzie
2015-04-21 10:46 ` Neil Horman
2015-04-20 19:26 ` [dpdk-dev] [PATCH v2 4/4] bond mode 4: tests for " Eric Kinzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1429557976-13531-2-git-send-email-ehkinzie@gmail.com \
--to=ehkinzie@gmail.com \
--cc=dev@dpdk.org \
--cc=ekinzie@brocade.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).