• Home
  • Raw
  • Download

Lines Matching full:tso

5 #include <net/tso.h>
16 void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso, in tso_build_hdr() argument
24 if (!tso->ipv6) { in tso_build_hdr()
27 iph->id = htons(tso->ip_id); in tso_build_hdr()
29 tso->ip_id++; in tso_build_hdr()
36 put_unaligned_be32(tso->tcp_seq, &tcph->seq); in tso_build_hdr()
47 void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size) in tso_build_data() argument
49 tso->tcp_seq += size; in tso_build_data()
50 tso->size -= size; in tso_build_data()
51 tso->data += size; in tso_build_data()
53 if ((tso->size == 0) && in tso_build_data()
54 (tso->next_frag_idx < skb_shinfo(skb)->nr_frags)) { in tso_build_data()
55 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; in tso_build_data()
58 tso->size = frag->size; in tso_build_data()
59 tso->data = page_address(frag->page.p) + frag->page_offset; in tso_build_data()
60 tso->next_frag_idx++; in tso_build_data()
65 void tso_start(struct sk_buff *skb, struct tso_t *tso) in tso_start() argument
69 tso->ip_id = ntohs(ip_hdr(skb)->id); in tso_start()
70 tso->tcp_seq = ntohl(tcp_hdr(skb)->seq); in tso_start()
71 tso->next_frag_idx = 0; in tso_start()
72 tso->ipv6 = vlan_get_protocol(skb) == htons(ETH_P_IPV6); in tso_start()
75 tso->size = skb_headlen(skb) - hdr_len; in tso_start()
76 tso->data = skb->data + hdr_len; in tso_start()
77 if ((tso->size == 0) && in tso_start()
78 (tso->next_frag_idx < skb_shinfo(skb)->nr_frags)) { in tso_start()
79 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; in tso_start()
82 tso->size = frag->size; in tso_start()
83 tso->data = page_address(frag->page.p) + frag->page_offset; in tso_start()
84 tso->next_frag_idx++; in tso_start()