]> 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)
commit90af360a54dbebd91b0f119005d0af1151dbcfeb
tree0da691eaaaf1ff45b8d637a0f9c329e815a171c1
parent13c9afdf88e8babf58844675eeea8f479efd934b
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