public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/3] Fix short frame transmission in enetc
@ 2026-04-01 17:22 Vladimir Oltean
  2026-04-01 17:22 ` [PATCH net 1/3] net: enetc: fix bogus TX ring consumer index after reinitialization Vladimir Oltean
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Vladimir Oltean @ 2026-04-01 17:22 UTC (permalink / raw)
  To: netdev
  Cc: Zefir Kurtisi, Claudiu Manoil, Wei Fang, Clark Wang, Andrew Lunn,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Ioana Ciornei, Alexei Starovoitov, Daniel Borkmann,
	Jesper Dangaard Brouer, John Fastabend, Stanislav Fomichev,
	Simon Horman, bpf, imx, linux-kernel

This is a belated follow-up to Zefir Kurtisi's report:
https://lore.kernel.org/netdev/20260220132930.2521155-1-zefir.kurtisi@gmail.com/

My analysis shows quite a different chain of events than the one
presented by Zefir. What is common is that, indeed, the ENETC misbehaves
when transmitting packets smaller than 16 octets sans FCS: it sends them
but does not update the completed index in the transmit BD ring.
However, I did find a sentence in the reference manual explicitly
stating these short frames are not supported.

The main patch is 2/3, which Zefir already tested and confirmed working
in the thread from February.

Patch 3/3 fixes a similar issue which can be reproduced from the XDP
path.

Patch 1/3 fixes an issue I identified while reviewing the code w.r.t.
TBaCIR interaction.

Vladimir Oltean (3):
  net: enetc: fix bogus TX ring consumer index after reinitialization
  net: enetc: pad short frames in software
  net: enetc: pad short XDP frames coming from devmap

 drivers/net/ethernet/freescale/enetc/enetc.c |  9 ++++++++-
 include/net/xdp.h                            | 17 +++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-04-02 15:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 17:22 [PATCH net 0/3] Fix short frame transmission in enetc Vladimir Oltean
2026-04-01 17:22 ` [PATCH net 1/3] net: enetc: fix bogus TX ring consumer index after reinitialization Vladimir Oltean
2026-04-01 17:22 ` [PATCH net 2/3] net: enetc: pad short frames in software Vladimir Oltean
2026-04-02 15:37   ` Jakub Kicinski
2026-04-01 17:22 ` [PATCH net 3/3] net: enetc: pad short XDP frames coming from devmap Vladimir Oltean

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