Skip to content

Commit

Permalink
octeontx2-af: Fix marking couple of structure as __packed
Browse files Browse the repository at this point in the history
[ Upstream commit 0ee2384 ]

Couple of structures was not marked as __packed. This patch
fixes the same and mark them as __packed.

Fixes: 4200691 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Suman Ghosh authored and gregkh committed Jan 10, 2024
1 parent a4b0a9b commit 6cf7235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/marvell/octeontx2/af/npc.h
Original file line number Diff line number Diff line change
Expand Up @@ -514,15 +514,15 @@ struct npc_lt_def {
u8 ltype_mask;
u8 ltype_match;
u8 lid;
};
} __packed;

struct npc_lt_def_ipsec {
u8 ltype_mask;
u8 ltype_match;
u8 lid;
u8 spi_offset;
u8 spi_nz;
};
} __packed;

struct npc_lt_def_apad {
u8 ltype_mask;
Expand Down

0 comments on commit 6cf7235

Please sign in to comment.