Thread (2 messages) flat view 2 messages, 2 authors, 2026-01-10

Re: [PATCH net-next v3] octeon_ep: reset firmware ready status

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-01-10 20:13:50
Also in: lkml

On Wed, 7 Jan 2026 13:45:02 +0000 Vimlesh Kumar wrote:
+#define CN9K_PEMX_PFX_CSX_PFCFGX(pem, pf, offset)\
+				 ({ typeof(offset) _off = (offset);\
+				 ((CN9K_PFX_CSX_PFCFGX_BASE_ADDR\
+				 | (uint64_t)FIELD_PREP(CN9K_PEM_GENMASK, pem)\
+				 | FIELD_PREP(CN9K_PF_GENMASK, pf)\
+				 | (CN9K_PFX_CSX_PFCFGX_SHADOW_BIT & (_off))\
+				 | (rounddown((_off), 8)))\
+				 + (CN9K_4BYTE_ALIGNED_ADDRESS_OFFSET(_off)));\
+				 })
This macro is completely unreadable. Maybe add a static inline to
perform the CN9K_PEMX_PFX_CSX_PFCFGX() writes.
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help