octeontx2-af: Fix marking couple of structure as __packed
authorSuman Ghosh <sumang@marvell.com>
Tue, 19 Dec 2023 14:26:33 +0000 (19:56 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Dec 2023 20:29:42 +0000 (20:29 +0000)
Couple of structures was not marked as __packed. This patch
fixes the same and mark them as __packed.

Fixes: 42006910b5ea ("octeontx2-af: cleanup KPU config data")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/npc.h

index ab3e39eef2eb4197ed9c7b3ea701a3b6fc4fe859..8c0732c9a7eea6daace2641d982e3293117589fb 100644 (file)
@@ -528,7 +528,7 @@ struct npc_lt_def {
        u8      ltype_mask;
        u8      ltype_match;
        u8      lid;
-};
+} __packed;
 
 struct npc_lt_def_ipsec {
        u8      ltype_mask;
@@ -536,7 +536,7 @@ struct npc_lt_def_ipsec {
        u8      lid;
        u8      spi_offset;
        u8      spi_nz;
-};
+} __packed;
 
 struct npc_lt_def_apad {
        u8      ltype_mask;