net/i40evf: fix casting between structs
authorJingjing Wu <jingjing.wu@intel.com>
Wed, 30 Nov 2016 02:02:25 +0000 (10:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:38:40 +0000 (19:38 +0100)
commitdd2681bb1f23a5099dd7dbd8e94bfccd499eefd9
tree0dc83acb3026ad1638896eca5fbf63f75ad5d610
parent31d4210971c54952afc9a1455ca40861634206e0
net/i40evf: fix casting between structs

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: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c