DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fix AF_PACKET PMD rollover fanout mode
@ 2026-10-23 16:22 Frank Dressler
  2026-10-23 16:22 ` [PATCH 1/2] net/af_packet: do not set rollover flag in rollover mode Frank Dressler
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Frank Dressler @ 2026-10-23 16:22 UTC (permalink / raw)
  To: stephen; +Cc: dev

This series fixes a bug in the AF_PACKET PMD that prevented it from
running in rollover fanout mode.

History: 364e08f2bb introduced the AF_PACKET PMD in 2014 and
unconditionally set the rollover flag. In 2025, d3bc77ab05 added
code allowing the user to select the fanout mode, including rollover
mode. Both the flag and the mode were introduced in Linux in 2013
with 77f65ebdca but their combination has been rejected ever since.
Because of that, rollover mode has never worked in the PMD.

The first patch clears the rollover _flag_ when the rollover _mode_
is set.

The second patch adds a test that checks that each fanout mode the
PMD supports is accepted by the kernel.

Frank Dressler (2):
  net/af_packet: do not set rollover flag in rollover mode
  test/af_packet: add test for fanout modes

 app/test/test_pmd_af_packet.c             | 41 +++++++++++++++++++++++
 drivers/net/af_packet/rte_eth_af_packet.c |  2 ++
 2 files changed, 43 insertions(+)

-- 
2.56.0


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

end of thread, other threads:[~2026-10-23 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-23 16:22 [PATCH 0/2] fix AF_PACKET PMD rollover fanout mode Frank Dressler
2026-10-23 16:22 ` [PATCH 1/2] net/af_packet: do not set rollover flag in rollover mode Frank Dressler
2026-10-23 16:22 ` [PATCH 2/2] test/af_packet: add test for fanout modes Frank Dressler
2026-10-23 17:11 ` [PATCH 0/2] fix AF_PACKET PMD rollover fanout mode Stephen Hemminger

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