ixgbe: fix ixgbe_orom_civd_info struct layout
authorJedrzej Jagielski <jedrzej.jagielski@intel.com>
Thu, 31 Jul 2025 12:45:33 +0000 (14:45 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 25 Aug 2025 16:45:23 +0000 (09:45 -0700)
commited913b343dcf9f623e7436fa1a153c89b22d109b
tree699e58f4c8f02e329a73ec872facc68dd073baec
parentb1a0c977c6f1130f7dd125ee3db8c2435d7e3d41
ixgbe: fix ixgbe_orom_civd_info struct layout

The current layout of struct ixgbe_orom_civd_info causes incorrect data
storage due to compiler-inserted padding. This results in issues when
writing OROM data into the structure.

Add the __packed attribute to ensure the structure layout matches the
expected binary format without padding.

Fixes: 70db0788a262 ("ixgbe: read the OROM version information")
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type_e610.h