i40e/base: fix padding in struct
authorJingjing Wu <jingjing.wu@intel.com>
Sun, 6 Sep 2015 07:11:41 +0000 (15:11 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 1 Oct 2015 23:35:22 +0000 (01:35 +0200)
commit3006df511e6346d2e7d6e9ddf909283d41d2ae8a
tree2766629165bedc172ddcd5f2e66a8bdbf525e8c8
parent8af9e07ff73336ca3860cfeaaeac381bcdd15c93
i40e/base: fix padding in struct

The struct i40e_aqc_get_cee_dcb_cfg_v1_resp was originally defined with
word boundary layout issues, which most compilers deal with by silently
adding padding, making the actual struct larger than designed.
This patch adds an extra byte in fields reserved3 and reserved4 to directly
acknowledge that padding.

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Tested-by: Huilong Xu <huilongx.xu@intel.com>
drivers/net/i40e/base/i40e_adminq_cmd.h