blob: 7e166a5703497fadf4662acc474f827b2754da78 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Ezequiel Garciae876f202014-05-19 13:59:52 -03002#ifndef _TSO_H
3#define _TSO_H
4
5#include <net/ip.h>
6
Antoine Ténartf9cbe9a2017-08-23 09:46:54 +02007#define TSO_HEADER_SIZE 128
8
Ezequiel Garciae876f202014-05-19 13:59:52 -03009struct tso_t {
10 int next_frag_idx;
11 void *data;
12 size_t size;
13 u16 ip_id;
emmanuel.grumbach@intel.com8941faa2015-10-26 10:31:29 +020014 bool ipv6;
Ezequiel Garciae876f202014-05-19 13:59:52 -030015 u32 tcp_seq;
16};
17
18int tso_count_descs(struct sk_buff *skb);
19void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso,
20 int size, bool is_last);
21void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size);
22void tso_start(struct sk_buff *skb, struct tso_t *tso);
23
24#endif /* _TSO_H */