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

Reply via email to