Blame view

include/net/tso.h 515 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
e876f208a   Ezequiel Garcia   net: Add a softwa...
2
3
4
5
  #ifndef _TSO_H
  #define _TSO_H
  
  #include <net/ip.h>
f9cbe9a55   Antoine Ténart   net: define the T...
6
  #define TSO_HEADER_SIZE		128
e876f208a   Ezequiel Garcia   net: Add a softwa...
7
8
9
10
11
  struct tso_t {
  	int next_frag_idx;
  	void *data;
  	size_t size;
  	u16 ip_id;
8941faa16   emmanuel.grumbach@intel.com   net: tso: add sup...
12
  	bool ipv6;
e876f208a   Ezequiel Garcia   net: Add a softwa...
13
14
15
16
17
18
19
20
21
22
  	u32 tcp_seq;
  };
  
  int tso_count_descs(struct sk_buff *skb);
  void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso,
  		   int size, bool is_last);
  void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size);
  void tso_start(struct sk_buff *skb, struct tso_t *tso);
  
  #endif	/* _TSO_H */