[ovs-dev] [PATCH v5 0/2] conntrack : Add support for rx checksum offload.

Sugesh Chandran sugesh.chandran at intel.com
Tue Jul 11 16:00:14 UTC 2017


Conntrack need not verify the checksum of incoming packets if it is validated
by DPDK physical NIC ports.
Also make use the DPDK rx checksum mask bits along with flags while validating
the reported hardware checksum state.

v4->v5
 (No functional changes in this version)
 - Rebased on latest master.
 - Added Darrel as co-author and removed the 'suggested by' tag.
 - Moved the bad checksum validate functions from patch-2 to patch-1.

v3->v4
 - Rebased on latest master
 - Invoke 'checksum_valid' function only when checksum is not validated in
   hardware. Check the 'validate_checksum' flag first to invoke the
   'checksum_valid' function accordingly.

v2->v3
 - Rebased on latest master.
 - Updated the existing DPDK checksum validation function to honor hw offload
   masks along with checksum bits reported by hardware.
 - As suggested by Darrel, Introduced new functions to validate bad checksum
   reported by DPDK.
 - As proposed by Darrel, modified the conntrack checksum validation to check
   bad checksum first on received packets.
 - Modified conntrack to validate checksum in software only when it failed to
 - do in hardware. Changed the logic to validate bad and good checksum flags
   reported by hardware.
 - Added tag 'Suggested-by: Darrell Ball <dball at vmware.com>'.
 - Removed Acked, Tested by tags from Antonio as the changes has been
   modified afterwards.

v1->v2
 - Rebased on master
 - Added acked-by and tested-by tags in commit message
 
Signed-off-by: Sugesh Chandran <sugesh.chandran at intel.com>
Co-authored-by: Darrell Ball <dball at vmware.com>
Signed-off-by: Darrell Ball <dball at vmware.com>

Sugesh Chandran (2):
  dp-packet : Update DPDK rx checksum validation functions.
  conntrack : Use Rx checksum offload feature on DPDK ports for
    conntrack.

 lib/conntrack.c | 63 ++++++++++++++++++++++++++++++++++++---------------------
 lib/dp-packet.h | 28 +++++++++++++++++++++++--
 2 files changed, 66 insertions(+), 25 deletions(-)

-- 
2.7.4



More information about the dev mailing list