]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:03:05 +0000 (22:03 -0800)
commited9752a56ec1620f16d64d58045534747983272b
tree60204c53f5c9bd2f91e252c1ce72157285fd466a
parent620b79fb464de8acadade94d0fe0f84fa123d762
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>
Orabug: 25394529
(cherry picked from commit 7fef39322ce7a0c1bbb5b48bef61b6c1aef73b96)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_pf.h