1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2018 Solarflare Communications Inc.
6 * This software was jointly developed between OKTET Labs (under contract
7 * for Solarflare) and Solarflare Communications, Inc.
10 /** Standard TSO header length */
11 #define SFC_TSOH_STD_LEN 256
13 /** The number of TSO option descriptors that precede the packet descriptors */
14 #define SFC_TSO_OPT_DESCS_NUM 2
17 * The number of DMA descriptors for TSO header that may or may not precede the
18 * packet's payload descriptors
20 #define SFC_TSO_HDR_DESCS_NUM 1
22 unsigned int sfc_tso_prepare_header(uint8_t *tsoh, size_t header_len,
23 struct rte_mbuf **in_seg, size_t *in_off);