netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net PATCH] octeontx2-af: Fix marking couple of structure as __packed
@ 2023-12-18  8:27 Suman Ghosh
  2023-12-18 20:44 ` Jacob Keller
  0 siblings, 1 reply; 6+ messages in thread
From: Suman Ghosh @ 2023-12-18  8:27 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, sgoutham, sbhatta, jerinj, gakula,
	hkelam, lcherian, netdev, linux-kernel
  Cc: Suman Ghosh

Couple of structures was not marked as __packed which may have some
performance implication. 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>
---
 drivers/net/ethernet/marvell/octeontx2/af/npc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/marvell/octeontx2/af/npc.h b/drivers/net/ethernet/marvell/octeontx2/af/npc.h
index ab3e39eef2eb..8c0732c9a7ee 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/npc.h
+++ b/drivers/net/ethernet/marvell/octeontx2/af/npc.h
@@ -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;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-20 13:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-18  8:27 [net PATCH] octeontx2-af: Fix marking couple of structure as __packed Suman Ghosh
2023-12-18 20:44 ` Jacob Keller
2023-12-19 14:22   ` [EXT] " Suman Ghosh
2023-12-19 15:26   ` David Laight
2023-12-19 21:05     ` Jacob Keller
2023-12-20 13:04       ` [EXT] " Suman Ghosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).