]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98e803d8abb38a74cf65dd1d88e0287dadaa186c
tree0da691eaaaf1ff45b8d637a0f9c329e815a171c1
parent3c9327663997fa2e295a8b62eb5e5b7bc097787e
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