fm10k: pack TLV overlay structures
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 3 Jun 2015 23:31:09 +0000 (16:31 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Jun 2015 21:21:22 +0000 (14:21 -0700)
commit7fef39322ce7a0c1bbb5b48bef61b6c1aef73b96
tree0da691eaaaf1ff45b8d637a0f9c329e815a171c1
parentfba341d5cab38db68eed061cf20e161d967795c6
fm10k: pack TLV overlay structures

This patch adds the __attribute__((packed)) indicator to some structures
which are overlayed onto a TLV message. These structures must be packed
as small as possible in order to correctly align when copied into the
mailbox buffer. Without doing so, the receiving mailbox code incorrectly
parses the values and we get invalid message responses from the switch
manager software.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pf.h