]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix shmem structure inconsistency between driver and the mfw.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Thu, 27 Sep 2018 11:12:10 +0000 (04:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2018 17:39:44 +0000 (10:39 -0700)
commit6a3cef5ddce1064d7c763db79492bede7bdb71f4
tree9b36a267c78da08db192d85524a77eece625285c
parentdfc30e2f07fbd135de2fe886e9ec241169940f58
qed: Fix shmem structure inconsistency between driver and the mfw.

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: 1f276f510d6a ("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>
drivers/net/ethernet/qlogic/qed/qed_hsi.h