summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>2018-09-27 04:12:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-18 09:18:11 +0200
commit761ea5beff7115f437f9ed0f842ddf1a16338f8d (patch)
treeb2cfeb8b9e60ffade8420f25558fab3439a632a0 /drivers/net/ethernet
parent6133d8e499e6a88b9a938243e1b8a6aa1f79ec8c (diff)
downloadlinux-stable-761ea5beff7115f437f9ed0f842ddf1a16338f8d.tar.gz
linux-stable-761ea5beff7115f437f9ed0f842ddf1a16338f8d.tar.bz2
linux-stable-761ea5beff7115f437f9ed0f842ddf1a16338f8d.zip
qed: Fix shmem structure inconsistency between driver and the mfw.
[ Upstream commit 5f672090e44f4951084c5e1d6b0668a5fc422af8 ] The structure shared between driver and the management FW (mfw) differ in sizes. This would lead to issues when driver try to access the structure members which are not-aligned with the mfw copy e.g., data_ptr usage in the case of mfw_tlv request. Align the driver structure with mfw copy, add reserved field(s) to driver structure for the members not used by the driver. Fixes: dd006921d67f ("qed: Add MFW interfaces for TLV request support.) Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_hsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_hsi.h b/drivers/net/ethernet/qlogic/qed/qed_hsi.h
index bee10c1781fb..463ffa83685f 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_hsi.h
+++ b/drivers/net/ethernet/qlogic/qed/qed_hsi.h
@@ -11987,6 +11987,7 @@ struct public_global {
u32 running_bundle_id;
s32 external_temperature;
u32 mdump_reason;
+ u64 reserved;
u32 data_ptr;
u32 data_size;
};