Fixes and improvements for the af_packet PMD. Each patch adds tests to
app/test/test_pmd_af_packet.c.

1/4 fixes tp_status memory ordering and frame addressing.
2/4 bulk-frees TX mbufs.
3/4 adds a txpollnotrdy devarg so TX does not block in poll().
4/4 adds software TX checksum offload, shared with the tap driver.

Depends-on: patch-<fix id> ("test/cksum: fix EtherType of IPv6 TCP packet")

v7:
- rebase on 27.03-rc0
- fix the gcc build of 4/4 (address of packed member)
- 1/4: acquire/release fences for tp_status (rte_smp_*mb() was removed)
- 2/4: keep VLAN insertion before the size check
- 3/4: parse txpollnotrdy with parse_uint()
- move release notes to 27.03
- add tests

Scott Mitchell (4):
  net/af_packet: fix thread safety and frame calculations
  net/af_packet: RX/TX bulk free, unlikely hint
  net/af_packet: tx poll control
  net/af_packet: add software checksum offload support

 app/test/test_cksum.c                     | 231 ++++++
 app/test/test_pmd_af_packet.c             | 813 ++++++++++++++++++++++
 doc/guides/nics/af_packet.rst             |   6 +-
 doc/guides/nics/features/af_packet.ini    |   2 +
 doc/guides/rel_notes/release_27_03.rst    |   6 +
 drivers/net/af_packet/rte_eth_af_packet.c | 249 +++++--
 drivers/net/tap/rte_eth_tap.c             |  70 +-
 lib/net/rte_net.c                         |  70 ++
 lib/net/rte_net.h                         |  25 +
 9 files changed, 1332 insertions(+), 140 deletions(-)

-- 
2.54.0 (Apple Git-157)

Reply via email to