media: dvb_frontend: add missing DSS switch cases
[linux-block.git] / include / net / tso.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
e876f208
EG
2#ifndef _TSO_H
3#define _TSO_H
4
5#include <net/ip.h>
6
9c77b803 7#define TSO_HEADER_SIZE 256
f9cbe9a5 8
e876f208 9struct tso_t {
185c3e58
ED
10 int next_frag_idx;
11 int size;
12 void *data;
13 u16 ip_id;
761b331c 14 u8 tlen; /* transport header len */
185c3e58
ED
15 bool ipv6;
16 u32 tcp_seq;
e876f208
EG
17};
18
504b9121
ED
19int tso_count_descs(const struct sk_buff *skb);
20void tso_build_hdr(const struct sk_buff *skb, char *hdr, struct tso_t *tso,
e876f208 21 int size, bool is_last);
504b9121 22void tso_build_data(const struct sk_buff *skb, struct tso_t *tso, int size);
761b331c 23int tso_start(struct sk_buff *skb, struct tso_t *tso);
e876f208
EG
24
25#endif /* _TSO_H */