1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/skbuff.h>
8 #define TSO_HEADER_SIZE 256
15 u8 tlen
; /* transport header len */
20 /* Calculate the worst case buffer count */
21 static inline int tso_count_descs(const struct sk_buff
*skb
)
23 return skb_shinfo(skb
)->gso_segs
* 2 + skb_shinfo(skb
)->nr_frags
;
26 void tso_build_hdr(const struct sk_buff
*skb
, char *hdr
, struct tso_t
*tso
,
27 int size
, bool is_last
);
28 void tso_build_data(const struct sk_buff
*skb
, struct tso_t
*tso
, int size
);
29 int tso_start(struct sk_buff
*skb
, struct tso_t
*tso
);