ethdev: add Tx offload outer UDP checksum definition
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Tue, 9 Oct 2018 14:18:09 +0000 (14:18 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:49 +0000 (18:53 +0200)
commitdf694a05bffffc1eb1a96112af5cd24da61daeff
tree7e064f295551f36f46773b1d1f65a6917cfc728b
parentec7f71577febe59323cd29e9a086348ff3c791cb
ethdev: add Tx offload outer UDP checksum definition

Introduced DEV_TX_OFFLOAD_OUTER_UDP_CKSUM offload flags and
PKT_TX_OUTER_UDP_CKSUM mbuf ol_flags to enable Tx outer UDP
checksum offload.

To use hardware Tx outer UDP checksum offload, the user needs to,

- enable following in mbuf:
a) fill outer_l2_len and outer_l3_len in mbuf
b) set the PKT_TX_OUTER_UDP_CKSUM flag
c) set the flag PKT_TX_OUTER_IPV4 or PKT_TX_OUTER_IPV6

- configure DEV_TX_OFFLOAD_OUTER_UDP_CKSUM offload flags in slow path

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
app/test-pmd/config.c
doc/guides/nics/features.rst
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h
lib/librte_mbuf/rte_mbuf.c
lib/librte_mbuf/rte_mbuf.h