Thread (23 messages) 23 messages, 5 authors, 2017-01-30

Re: [PATCH] ethdev: fix wrong memset

From: Ferruh Yigit <hidden>
Date: 2017-01-20 11:09:38

On 1/20/2017 10:34 AM, Yuanhan Liu wrote:
On Fri, Jan 20, 2017 at 11:20:06AM +0100, Thomas Monjalon wrote:
quoted
2017-01-20 16:04, Yuanhan Liu:
quoted
Fix an silly error by auto-complete while managing the merge conflicts.
It's the eth_dev_data (but not eth_dev) entry should be memset.

Fixes: d948f596fee2 ("ethdev: fix port data mismatched in multiple process model")
You should describe the impact on this bug.
Honestly, I don't know. I didn't met any issue while testing vhost.
Maybe Ferruh knows what might be wrong, since it's him spotted this
bug?
I find this while reading the code, not observed any bug.
quoted
It will be helpful for those testing the RC1.
quoted
-	memset(&rte_eth_devices[port_id], 0, sizeof(*eth_dev->data));
+	memset(&rte_eth_dev_data[port_id], 0, sizeof(struct rte_eth_dev_data));
The title should be contain the scope of the bug.
I suggest "fix data reset when allocating port".
Yeah, that's better. Thanks.

	--yliu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help