i40e: fix build with gcc 4.4
authorJingjing Wu <jingjing.wu@intel.com>
Wed, 8 Jul 2015 06:37:19 +0000 (14:37 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 8 Jul 2015 09:22:36 +0000 (11:22 +0200)
commit2be3d6322b1dcd0ca7ea9b20e71e13c648b6aeb6
tree648bba06c8e268f5d5256c61063c4422b733c08b
parent75ba29fd143c117e781a884d47484cd6e0546bad
i40e: fix build with gcc 4.4

Fix the build warning reported like:
   error: dereferencing pointer 'cmd' does break strict-aliasing rules

Fixes: a4def5edf0fc ("i40e: enable port mirroring")

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/i40e/i40e_ethdev.c