hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/include/net/tso.h
....@@ -4,21 +4,22 @@
44
55 #include <net/ip.h>
66
7
-#define TSO_HEADER_SIZE 128
7
+#define TSO_HEADER_SIZE 256
88
99 struct tso_t {
10
- int next_frag_idx;
11
- void *data;
12
- size_t size;
13
- u16 ip_id;
14
- bool ipv6;
15
- u32 tcp_seq;
10
+ int next_frag_idx;
11
+ int size;
12
+ void *data;
13
+ u16 ip_id;
14
+ u8 tlen; /* transport header len */
15
+ bool ipv6;
16
+ u32 tcp_seq;
1617 };
1718
18
-int tso_count_descs(struct sk_buff *skb);
19
-void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso,
19
+int tso_count_descs(const struct sk_buff *skb);
20
+void tso_build_hdr(const struct sk_buff *skb, char *hdr, struct tso_t *tso,
2021 int size, bool is_last);
21
-void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size);
22
-void tso_start(struct sk_buff *skb, struct tso_t *tso);
22
+void tso_build_data(const struct sk_buff *skb, struct tso_t *tso, int size);
23
+int tso_start(struct sk_buff *skb, struct tso_t *tso);
2324
2425 #endif /* _TSO_H */