Ezequiel Garcia | e876f20 | 2014-05-19 13:59:52 -0300 | [diff] [blame] | 1 | #ifndef _TSO_H |
| 2 | #define _TSO_H |
| 3 | |
| 4 | #include <net/ip.h> |
| 5 | |
| 6 | struct tso_t { |
| 7 | int next_frag_idx; |
| 8 | void *data; |
| 9 | size_t size; |
| 10 | u16 ip_id; |
emmanuel.grumbach@intel.com | 8941faa | 2015-10-26 10:31:29 +0200 | [diff] [blame] | 11 | bool ipv6; |
Ezequiel Garcia | e876f20 | 2014-05-19 13:59:52 -0300 | [diff] [blame] | 12 | u32 tcp_seq; |
| 13 | }; |
| 14 | |
| 15 | int tso_count_descs(struct sk_buff *skb); |
| 16 | void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso, |
| 17 | int size, bool is_last); |
| 18 | void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size); |
| 19 | void tso_start(struct sk_buff *skb, struct tso_t *tso); |
| 20 | |
| 21 | #endif /* _TSO_H */ |