[dpdk-dev] [PATCH] net/i40evf: fix casting between structs

2016-11-30 Thread Wu, Jingjing
> -Original Message- > From: Yigit, Ferruh > Sent: Wednesday, November 30, 2016 12:08 AM > To: Wu, Jingjing ; dev at dpdk.org > Cc: Zhang, Helin > Subject: Re: [dpdk-dev] [PATCH] net/i40evf: fix casting between structs > > On 11/27/2016 9:35 AM, Jingjing Wu

[dpdk-dev] [PATCH] net/i40evf: fix casting between structs

2016-11-29 Thread Ferruh Yigit
On 11/27/2016 9:35 AM, Jingjing Wu wrote: > Casting from structs which lay out data in typed members > to structs which have flat memory buffers, will cause > problems if the alignment of the former isn't as expected. > This patch removes the casting between structs. > > Fixes: ae19955e7c86 ("i40e

[dpdk-dev] [PATCH] net/i40evf: fix casting between structs

2016-11-27 Thread Jingjing Wu
Casting from structs which lay out data in typed members to structs which have flat memory buffers, will cause problems if the alignment of the former isn't as expected. This patch removes the casting between structs. Fixes: ae19955e7c86 ("i40evf: support reporting PF reset") Signed-off-by: Jingji