tso.h 446 B

123456789101112131415161718192021
  1. #ifndef _TSO_H
  2. #define _TSO_H
  3. #include <net/ip.h>
  4. struct tso_t {
  5. int next_frag_idx;
  6. void *data;
  7. size_t size;
  8. u16 ip_id;
  9. bool ipv6;
  10. u32 tcp_seq;
  11. };
  12. int tso_count_descs(struct sk_buff *skb);
  13. void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso,
  14. int size, bool is_last);
  15. void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size);
  16. void tso_start(struct sk_buff *skb, struct tso_t *tso);
  17. #endif /* _TSO_H */