Home
last modified time | relevance | path

Searched refs:NAPI_GRO_CB (Results 1 – 17 of 17) sorted by relevance

/linux-4.4.14/net/ipv4/
Dudp_offload.c302 if (NAPI_GRO_CB(skb)->udp_mark || in udp_gro_receive()
304 NAPI_GRO_CB(skb)->csum_cnt == 0 && in udp_gro_receive()
305 !NAPI_GRO_CB(skb)->csum_valid)) in udp_gro_receive()
309 NAPI_GRO_CB(skb)->udp_mark = 1; in udp_gro_receive()
324 if (!NAPI_GRO_CB(p)->same_flow) in udp_gro_receive()
334 NAPI_GRO_CB(p)->same_flow = 0; in udp_gro_receive()
341 NAPI_GRO_CB(skb)->proto = uo_priv->offload->ipproto; in udp_gro_receive()
348 NAPI_GRO_CB(skb)->flush |= flush; in udp_gro_receive()
361 if (NAPI_GRO_CB(skb)->flush) in udp4_gro_receive()
371 NAPI_GRO_CB(skb)->is_ipv6 = 0; in udp4_gro_receive()
[all …]
Dtcp_offload.c219 if (!NAPI_GRO_CB(p)->same_flow) in tcp_gro_receive()
225 NAPI_GRO_CB(p)->same_flow = 0; in tcp_gro_receive()
236 flush = NAPI_GRO_CB(p)->flush | NAPI_GRO_CB(p)->flush_id; in tcp_gro_receive()
265 if (p && (!NAPI_GRO_CB(skb)->same_flow || flush)) in tcp_gro_receive()
269 NAPI_GRO_CB(skb)->flush |= (flush != 0); in tcp_gro_receive()
282 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in tcp_gro_complete()
294 if (!NAPI_GRO_CB(skb)->flush && in tcp4_gro_receive()
297 NAPI_GRO_CB(skb)->flush = 1; in tcp4_gro_receive()
Dgre_offload.c172 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) { in gre_gro_receive()
185 if (!NAPI_GRO_CB(p)->same_flow) in gre_gro_receive()
200 NAPI_GRO_CB(p)->same_flow = 0; in gre_gro_receive()
206 NAPI_GRO_CB(p)->same_flow = 0; in gre_gro_receive()
222 NAPI_GRO_CB(skb)->flush |= flush; in gre_gro_receive()
Dfou.c186 u8 proto = NAPI_GRO_CB(skb)->proto; in fou_gro_receive()
190 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in fou_gro_receive()
207 u8 proto = NAPI_GRO_CB(skb)->proto; in fou_gro_complete()
214 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in fou_gro_complete()
239 if (!NAPI_GRO_CB(skb)->csum_valid) in gue_gro_remcsum()
327 if (!NAPI_GRO_CB(p)->same_flow) in gue_gro_receive()
336 NAPI_GRO_CB(p)->same_flow = 0; in gue_gro_receive()
343 NAPI_GRO_CB(p)->same_flow = 0; in gue_gro_receive()
349 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in gue_gro_receive()
359 NAPI_GRO_CB(skb)->flush |= flush; in gue_gro_receive()
[all …]
Daf_inet.c1331 if (!NAPI_GRO_CB(p)->same_flow) in inet_gro_receive()
1343 NAPI_GRO_CB(p)->same_flow = 0; in inet_gro_receive()
1348 NAPI_GRO_CB(p)->flush |= in inet_gro_receive()
1358 NAPI_GRO_CB(p)->flush_id = in inet_gro_receive()
1359 ((u16)(ntohs(iph2->id) + NAPI_GRO_CB(p)->count) ^ id); in inet_gro_receive()
1360 NAPI_GRO_CB(p)->flush |= flush; in inet_gro_receive()
1363 NAPI_GRO_CB(skb)->flush |= flush; in inet_gro_receive()
1381 NAPI_GRO_CB(skb)->flush |= flush; in inet_gro_receive()
/linux-4.4.14/net/ipv6/
Dip6_offload.c211 NAPI_GRO_CB(skb)->proto = proto; in ipv6_gro_receive()
220 if (!NAPI_GRO_CB(p)->same_flow) in ipv6_gro_receive()
235 NAPI_GRO_CB(p)->same_flow = 0; in ipv6_gro_receive()
239 NAPI_GRO_CB(p)->flush |= !!(first_word & htonl(0x0FF00000)); in ipv6_gro_receive()
240 NAPI_GRO_CB(p)->flush |= flush; in ipv6_gro_receive()
243 NAPI_GRO_CB(p)->flush_id = 0; in ipv6_gro_receive()
246 NAPI_GRO_CB(skb)->flush |= flush; in ipv6_gro_receive()
256 NAPI_GRO_CB(skb)->flush |= flush; in ipv6_gro_receive()
Dtcpv6_offload.c22 if (!NAPI_GRO_CB(skb)->flush && in tcp6_gro_receive()
25 NAPI_GRO_CB(skb)->flush = 1; in tcp6_gro_receive()
Dudp_offload.c138 if (NAPI_GRO_CB(skb)->flush) in udp6_gro_receive()
149 NAPI_GRO_CB(skb)->is_ipv6 = 1; in udp6_gro_receive()
153 NAPI_GRO_CB(skb)->flush = 1; in udp6_gro_receive()
/linux-4.4.14/include/linux/
Dnetdevice.h2016 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) macro
2267 return NAPI_GRO_CB(skb)->data_offset; in skb_gro_offset()
2272 return skb->len - NAPI_GRO_CB(skb)->data_offset; in skb_gro_len()
2277 NAPI_GRO_CB(skb)->data_offset += len; in skb_gro_pull()
2283 return NAPI_GRO_CB(skb)->frag0 + offset; in skb_gro_header_fast()
2288 return NAPI_GRO_CB(skb)->frag0_len < hlen; in skb_gro_header_hard()
2297 NAPI_GRO_CB(skb)->frag0 = NULL; in skb_gro_header_slow()
2298 NAPI_GRO_CB(skb)->frag0_len = 0; in skb_gro_header_slow()
2304 return (NAPI_GRO_CB(skb)->frag0 ?: skb->data) + in skb_gro_network_header()
2311 if (NAPI_GRO_CB(skb)->csum_valid) in skb_gro_postpull_rcsum()
[all …]
/linux-4.4.14/net/ethernet/
Deth.c418 if (!NAPI_GRO_CB(p)->same_flow) in eth_gro_receive()
423 NAPI_GRO_CB(p)->same_flow = 0; in eth_gro_receive()
444 NAPI_GRO_CB(skb)->flush |= flush; in eth_gro_receive()
/linux-4.4.14/net/core/
Ddev.c4076 if (NAPI_GRO_CB(skb)->count == 1) { in napi_gro_complete()
4118 if (flush_old && NAPI_GRO_CB(skb)->age == jiffies) in napi_gro_flush()
4139 NAPI_GRO_CB(p)->flush = 0; in gro_list_prepare()
4142 NAPI_GRO_CB(p)->same_flow = 0; in gro_list_prepare()
4156 NAPI_GRO_CB(p)->same_flow = !diffs; in gro_list_prepare()
4165 NAPI_GRO_CB(skb)->data_offset = 0; in skb_gro_reset_offset()
4166 NAPI_GRO_CB(skb)->frag0 = NULL; in skb_gro_reset_offset()
4167 NAPI_GRO_CB(skb)->frag0_len = 0; in skb_gro_reset_offset()
4172 NAPI_GRO_CB(skb)->frag0 = skb_frag_address(frag0); in skb_gro_reset_offset()
4173 NAPI_GRO_CB(skb)->frag0_len = skb_frag_size(frag0); in skb_gro_reset_offset()
[all …]
Dskbuff.c3237 lp = NAPI_GRO_CB(p)->last; in skb_gro_receive()
3270 NAPI_GRO_CB(skb)->free = NAPI_GRO_FREE; in skb_gro_receive()
3296 NAPI_GRO_CB(skb)->free = NAPI_GRO_FREE_STOLEN_HEAD; in skb_gro_receive()
3314 if (NAPI_GRO_CB(p)->last == p) in skb_gro_receive()
3317 NAPI_GRO_CB(p)->last->next = skb; in skb_gro_receive()
3318 NAPI_GRO_CB(p)->last = skb; in skb_gro_receive()
3323 NAPI_GRO_CB(p)->count++; in skb_gro_receive()
3332 NAPI_GRO_CB(skb)->same_flow = 1; in skb_gro_receive()
/linux-4.4.14/net/8021q/
Dvlan.c652 if (!NAPI_GRO_CB(p)->same_flow) in vlan_gro_receive()
657 NAPI_GRO_CB(p)->same_flow = 0; in vlan_gro_receive()
667 NAPI_GRO_CB(skb)->flush |= flush; in vlan_gro_receive()
/linux-4.4.14/drivers/net/
Dgeneve.c421 if (!NAPI_GRO_CB(p)->same_flow) in geneve_gro_receive()
427 NAPI_GRO_CB(p)->same_flow = 0; in geneve_gro_receive()
448 NAPI_GRO_CB(skb)->flush |= flush; in geneve_gro_receive()
Dvxlan.c526 if (!NAPI_GRO_CB(skb)->csum_valid) in vxlan_gro_remcsum()
585 if (!NAPI_GRO_CB(p)->same_flow) in vxlan_gro_receive()
591 NAPI_GRO_CB(p)->same_flow = 0; in vxlan_gro_receive()
600 NAPI_GRO_CB(skb)->flush |= flush; in vxlan_gro_receive()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c543 NAPI_GRO_CB(skb)->count = num_of_coalesced_segs; in bnx2x_set_gro_params()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c860 NAPI_GRO_CB(skb)->count = TPA_END_TPA_SEGS(tpa_end); in bnxt_gro_skb()