DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/3] enhance TX checksum command and csum forwarding engine
@ 2014-12-07 11:36 Jijiang Liu
  2014-12-07 11:36 ` [dpdk-dev] [PATCH 1/3] librte_ether:add outer IP offload capability flag Jijiang Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jijiang Liu @ 2014-12-07 11:36 UTC (permalink / raw)
  To: dev

In the current codes, the "tx_checksum set (ip|udp|tcp|sctp|vxlan) (hw|sw) (port-id)" command is not easy to understand and extend, so the patch set enhances the tx_checksum command and reworks csum forwarding engine due to the change of tx_checksum command. 
The main changes of the tx_checksum command are listed below, 
1> add "tx_checksum set tunnel (hw|sw|none) (port-id)" command
The command is used to set/clear tunnel flag that is used to tell the NIC that the packetg is a tunneing packet and application want hardware TX checksum offload for outer layer, or inner layer, or both.
2> add "tx_checksum set outer-ip (hw|sw) (port-id)" command
The command is used to set/clear outer IP flag that is used to tell the NIC that application want hardware offload for outer layer.
3> remove the vxlan option from the  "tx_checksum set (ip|udp|tcp|sctp|vxlan) (hw|sw) (port-id)" command
The command is used to set IP, UDP, TCP and SCTP TX checksum flag. In the case of tunneling packet, the IP, UDP, TCP and SCTP flags always concern inner layer.
 
Moreover, replace the TESTPMD_TX_OFFLOAD_VXLAN_CKSUM flag with TESTPMD_TX_OFFLOAD_TUNNEL_CKSUM flag and add the TESTPMD_TX_OFFLOAD_OUTER_IP_CKSUM flagin test-pmd application.

Jijiang Liu (3):
  add outer IP offload capability in librte_ether.
  add outer IP checksum capability in i40e PMD
  testpmd command lines of the tx_checksum and csum forwarding rework

 app/test-pmd/cmdline.c            |  201 +++++++++++++++++++++++++++++++++++--
 app/test-pmd/csumonly.c           |   35 ++++---
 app/test-pmd/testpmd.h            |    6 +-
 lib/librte_ether/rte_ethdev.h     |    1 +
 lib/librte_pmd_i40e/i40e_ethdev.c |    3 +-
 5 files changed, 218 insertions(+), 28 deletions(-)

-- 
1.7.7.6

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

end of thread, other threads:[~2014-12-08 11:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-07 11:36 [dpdk-dev] [PATCH 0/3] enhance TX checksum command and csum forwarding engine Jijiang Liu
2014-12-07 11:36 ` [dpdk-dev] [PATCH 1/3] librte_ether:add outer IP offload capability flag Jijiang Liu
2014-12-07 11:36 ` [dpdk-dev] [PATCH 2/3] i40e:support outer IPv4 checksum capability Jijiang Liu
2014-12-07 11:36 ` [dpdk-dev] [PATCH 3/3] test-pmd:change tx_checksum command and csum forwarding engine Jijiang Liu
2014-12-08 11:44   ` Ananyev, Konstantin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).