Lines Matching full:l4
167 /* initialize l4 offset and offload */
168 static void get_inner_l4_info(struct sk_buff *skb, union hinic3_l4 *l4, in get_inner_l4_info() argument
176 *offset = (l4->tcp->doff << TCP_HDR_DATA_OFF_UNIT_SHIFT) + in get_inner_l4_info()
177 TRANSPORT_OFFSET(l4->hdr, skb); in get_inner_l4_info()
182 *offset = TRANSPORT_OFFSET(l4->hdr, skb); in get_inner_l4_info()
206 union hinic3_l4 l4; in hinic3_tx_csum() local
212 l4.hdr = skb_transport_header(skb); in hinic3_tx_csum()
213 if (l4.hdr != exthdr) in hinic3_tx_csum()
235 union hinic3_l4 *l4, in get_inner_l3_l4_type() argument
248 if (exthdr != l4->hdr) { in get_inner_l3_l4_type()
293 union hinic3_l4 l4; in hinic3_tso() local
311 l4.hdr = skb_transport_header(skb); in hinic3_tso()
315 l4.udp->check = ~csum_magic(&ip, IPPROTO_UDP); in hinic3_tso()
320 l4.hdr = skb_inner_transport_header(skb); in hinic3_tso()
323 l4.hdr = skb_transport_header(skb); in hinic3_tso()
326 get_inner_l3_l4_type(skb, &ip, &l4, &l3_type, &l4_proto); in hinic3_tso()
329 l4.tcp->check = ~csum_magic(&ip, IPPROTO_TCP); in hinic3_tso()
331 get_inner_l4_info(skb, &l4, l4_proto, &offset, &l4_offload); in hinic3_tso()