1 /* SPDX-License-Identifier: BSD-3-Clause 2 * 3 * Copyright (c) 2018 Solarflare Communications Inc. 4 * All rights reserved. 5 * 6 * This software was jointly developed between OKTET Labs (under contract 7 * for Solarflare) and Solarflare Communications, Inc. 8 */ 9 10 #ifndef _SFC_TSO_H 11 #define _SFC_TSO_H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /** Standard TSO header length */ 18 #define SFC_TSOH_STD_LEN 256 19 20 /** The number of TSO option descriptors that precede the packet descriptors */ 21 #define SFC_TSO_OPT_DESCS_NUM 2 22 23 /** 24 * The number of DMA descriptors for TSO header that may or may not precede the 25 * packet's payload descriptors 26 */ 27 #define SFC_TSO_HDR_DESCS_NUM 1 28 29 unsigned int sfc_tso_prepare_header(uint8_t *tsoh, size_t header_len, 30 struct rte_mbuf **in_seg, size_t *in_off); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif /* _SFC_TSO_H */ 37