Merge tag 'nfsd-4.14' of git://linux-nfs.org/~bfields/linux
[linux-2.6-block.git] / include / net / tso.h
1 #ifndef _TSO_H
2 #define _TSO_H
3
4 #include <net/ip.h>
5
6 #define TSO_HEADER_SIZE         128
7
8 struct tso_t {
9         int next_frag_idx;
10         void *data;
11         size_t size;
12         u16 ip_id;
13         bool ipv6;
14         u32 tcp_seq;
15 };
16
17 int tso_count_descs(struct sk_buff *skb);
18 void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso,
19                    int size, bool is_last);
20 void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size);
21 void tso_start(struct sk_buff *skb, struct tso_t *tso);
22
23 #endif  /* _TSO_H */