Re: [PATCH 4/6] ethdev: introduce TX common tunnel offloads
From: Ferruh Yigit <hidden>
Date: 2018-01-11 18:38:47
From: Ferruh Yigit <hidden>
Date: 2018-01-11 18:38:47
On 1/9/2018 2:11 PM, Xueming Li wrote:
This patch introduce new DEV_TX_OFFLOAD_GENERIC_TNL_CKSUM_TSO flag for devices that support tunnel agnostic TX checksum and tso offloading. Checksum offset and TSO header length are calculated based on mbuf inner length l*_len, outer_l*_len and tx offload flags PKT_TX_*, tunnel header length is part of inner l2_len, so device HW do cheksum and TSO calculation w/o knowledge of perticular tunnel type. When set application must guarantee that correct header types and lengths for each inner and outer headers in mbuf header, no need to specify tunnel type. Signed-off-by: Xueming Li <redacted>
Acked-by: Ferruh Yigit <redacted>