mbox

[v4,0/2] Add functions to calculate UDP/TCP cksum in mbuf

Message ID 20211203113805.1025301-1-xiaoyun.li@intel.com (mailing list archive)
Headers

Message

Li, Xiaoyun Dec. 3, 2021, 11:38 a.m. UTC
  Added functions to calculate UDP/TCP checksum for packets which may be
over multi-segments and fix the checksum issue with testpmd csum
forwarding mode.

Xiaoyun Li (2):
  net: add functions to calculate UDP/TCP cksum in mbuf
  testpmd: fix l4 sw csum over multi segments

---
v4:
 * Called rte_raw_cksum_mbuf() to calculate cksum in lib instead of
 * implementing it in testpmd for better maintenance.
 * Removed fix tag for testpmd since it relies on the lib change.
v3:
 * Use rte_raw_cksum() for multi-segs case instead of copying the whole
 * packet.
v2:
 * Use static stack memory instead of dynamic allocating in datapath
---

 app/test-pmd/csumonly.c                |  41 ++++--
 doc/guides/rel_notes/release_22_03.rst |  10 ++
 lib/net/rte_ip.h                       | 186 +++++++++++++++++++++++++
 lib/net/version.map                    |  10 ++
 4 files changed, 232 insertions(+), 15 deletions(-)