DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix CN20K mbuf size truncation
@ 2026-09-09 16:06 Randy L Tice
  2026-09-09 16:06 ` [PATCH 1/1] drivers: fix " Randy L Tice
  0 siblings, 1 reply; 5+ messages in thread
From: Randy L Tice @ 2026-09-09 16:06 UTC (permalink / raw)
  To: dev
  Cc: stable, thomas, pbhagavatula, sthotton, ndabilpuram, kirankumark,
	skori, skoteshwar, hkalra, rbhansali, Randy L Tice

This small fix prepares the CN20K inline security receive paths for mbuf
layouts larger than 255 bytes.

The affected code recovers a packet mbuf by subtracting the size of
struct rte_mbuf from a pointer stored in completion metadata. Keeping
that size in an 8-bit local variable makes the recovery sensitive to
future mbuf layout growth. The patch widens the local size variable
without changing the surrounding fast-path logic.

The issue was found while preparing an unrelated mbuf layout extension.

Randy L Tice (1):
  drivers: fix CN20K mbuf size truncation

 .mailmap                          | 1 +
 drivers/event/cnxk/cn20k_worker.h | 4 ++--
 drivers/net/cnxk/cn20k_rx.h       | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

-- 
2.35.6

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

end of thread, other threads:[~2026-09-09 20:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-09 16:06 [PATCH 0/1] Fix CN20K mbuf size truncation Randy L Tice
2026-09-09 16:06 ` [PATCH 1/1] drivers: fix " Randy L Tice
2026-09-09 17:16   ` Stephen Hemminger
2026-09-09 18:18     ` Morten Brørup
2026-09-09 20:42       ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox