Home
last modified time | relevance | path

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

/Linux-v5.10/net/ipv4/
Dudp_offload.c378 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
385 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
392 if (!NAPI_GRO_CB(p)->same_flow) in udp_gro_receive_segment()
399 NAPI_GRO_CB(p)->same_flow = 0; in udp_gro_receive_segment()
403 if (NAPI_GRO_CB(skb)->is_flist != NAPI_GRO_CB(p)->is_flist) { in udp_gro_receive_segment()
404 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
417 if (NAPI_GRO_CB(skb)->is_flist) { in udp_gro_receive_segment()
419 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
424 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
437 NAPI_GRO_CB(p)->count >= UDP_GRO_CNT_MAX) in udp_gro_receive_segment()
[all …]
Dtcp_offload.c221 if (!NAPI_GRO_CB(p)->same_flow) in tcp_gro_receive()
227 NAPI_GRO_CB(p)->same_flow = 0; in tcp_gro_receive()
238 flush = NAPI_GRO_CB(p)->flush; in tcp_gro_receive()
251 if (NAPI_GRO_CB(p)->flush_id != 1 || in tcp_gro_receive()
252 NAPI_GRO_CB(p)->count != 1 || in tcp_gro_receive()
253 !NAPI_GRO_CB(p)->is_atomic) in tcp_gro_receive()
254 flush |= NAPI_GRO_CB(p)->flush_id; in tcp_gro_receive()
256 NAPI_GRO_CB(p)->is_atomic = false; in tcp_gro_receive()
279 if (p && (!NAPI_GRO_CB(skb)->same_flow || flush)) in tcp_gro_receive()
283 NAPI_GRO_CB(skb)->flush |= (flush != 0); in tcp_gro_receive()
[all …]
Dgre_offload.c128 if (NAPI_GRO_CB(skb)->encap_mark) in gre_gro_receive()
131 NAPI_GRO_CB(skb)->encap_mark = 1; in gre_gro_receive()
156 if ((greh->flags & GRE_CSUM) && NAPI_GRO_CB(skb)->is_fou) in gre_gro_receive()
182 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) { in gre_gro_receive()
193 if (!NAPI_GRO_CB(p)->same_flow) in gre_gro_receive()
208 NAPI_GRO_CB(p)->same_flow = 0; in gre_gro_receive()
214 NAPI_GRO_CB(p)->same_flow = 0; in gre_gro_receive()
Dfou.c244 NAPI_GRO_CB(skb)->encap_mark = 0; in fou_gro_receive()
247 NAPI_GRO_CB(skb)->is_fou = 1; in fou_gro_receive()
250 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in fou_gro_receive()
272 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in fou_gro_complete()
299 if (!NAPI_GRO_CB(skb)->csum_valid) in gue_gro_remcsum()
405 if (!NAPI_GRO_CB(p)->same_flow) in gue_gro_receive()
414 NAPI_GRO_CB(p)->same_flow = 0; in gue_gro_receive()
421 NAPI_GRO_CB(p)->same_flow = 0; in gue_gro_receive()
436 NAPI_GRO_CB(skb)->encap_mark = 0; in gue_gro_receive()
439 NAPI_GRO_CB(skb)->is_fou = 1; in gue_gro_receive()
[all …]
Daf_inet.c1478 if (!NAPI_GRO_CB(p)->same_flow) in inet_gro_receive()
1490 NAPI_GRO_CB(p)->same_flow = 0; in inet_gro_receive()
1495 NAPI_GRO_CB(p)->flush |= in inet_gro_receive()
1500 NAPI_GRO_CB(p)->flush |= flush; in inet_gro_receive()
1514 if (!NAPI_GRO_CB(p)->is_atomic || in inet_gro_receive()
1516 flush_id ^= NAPI_GRO_CB(p)->count; in inet_gro_receive()
1523 if (NAPI_GRO_CB(skb)->is_atomic) in inet_gro_receive()
1524 NAPI_GRO_CB(p)->flush_id = flush_id; in inet_gro_receive()
1526 NAPI_GRO_CB(p)->flush_id |= flush_id; in inet_gro_receive()
1529 NAPI_GRO_CB(skb)->is_atomic = !!(iph->frag_off & htons(IP_DF)); in inet_gro_receive()
[all …]
Desp4_offload.c86 NAPI_GRO_CB(skb)->same_flow = 0; in esp4_gro_receive()
87 NAPI_GRO_CB(skb)->flush = 1; in esp4_gro_receive()
/Linux-v5.10/net/ipv6/
Dip6_offload.c34 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
228 NAPI_GRO_CB(skb)->proto = proto; in ipv6_gro_receive()
237 if (!NAPI_GRO_CB(p)->same_flow) in ipv6_gro_receive()
254 NAPI_GRO_CB(p)->same_flow = 0; in ipv6_gro_receive()
263 NAPI_GRO_CB(p)->flush |= !!(first_word & htonl(0x0FF00000)); in ipv6_gro_receive()
264 NAPI_GRO_CB(p)->flush |= flush; in ipv6_gro_receive()
269 if (NAPI_GRO_CB(skb)->is_atomic) in ipv6_gro_receive()
270 NAPI_GRO_CB(p)->flush_id = 0; in ipv6_gro_receive()
273 NAPI_GRO_CB(skb)->is_atomic = true; in ipv6_gro_receive()
274 NAPI_GRO_CB(skb)->flush |= flush; in ipv6_gro_receive()
[all …]
Dudp_offload.c135 if (NAPI_GRO_CB(skb)->flush) in udp6_gro_receive()
146 NAPI_GRO_CB(skb)->is_ipv6 = 1; in udp6_gro_receive()
157 NAPI_GRO_CB(skb)->flush = 1; in udp6_gro_receive()
166 if (NAPI_GRO_CB(skb)->is_flist) { in udp6_gro_complete()
170 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in udp6_gro_complete()
Dtcpv6_offload.c19 if (!NAPI_GRO_CB(skb)->flush && in tcp6_gro_receive()
22 NAPI_GRO_CB(skb)->flush = 1; in tcp6_gro_receive()
Desp6_offload.c113 NAPI_GRO_CB(skb)->same_flow = 0; in esp6_gro_receive()
114 NAPI_GRO_CB(skb)->flush = 1; in esp6_gro_receive()
/Linux-v5.10/include/linux/
Dnetdevice.h2465 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) macro
2470 return ++NAPI_GRO_CB(skb)->recursion_counter == GRO_RECURSION_LIMIT; in gro_recursion_inc_test()
2479 NAPI_GRO_CB(skb)->flush |= 1;
2494 NAPI_GRO_CB(skb)->flush |= 1;
2858 return NAPI_GRO_CB(skb)->data_offset; in skb_gro_offset()
2863 return skb->len - NAPI_GRO_CB(skb)->data_offset; in skb_gro_len()
2868 NAPI_GRO_CB(skb)->data_offset += len; in skb_gro_pull()
2874 return NAPI_GRO_CB(skb)->frag0 + offset; in skb_gro_header_fast()
2879 return NAPI_GRO_CB(skb)->frag0_len < hlen; in skb_gro_header_hard()
2884 NAPI_GRO_CB(skb)->frag0 = NULL; in skb_gro_frag0_invalidate()
[all …]
/Linux-v5.10/include/net/
Dinet_common.h69 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
/Linux-v5.10/net/core/
Ddev.c5744 if (NAPI_GRO_CB(skb)->count == 1) { in napi_gro_complete()
5779 if (flush_old && NAPI_GRO_CB(skb)->age == jiffies) in __napi_gro_flush_chain()
5819 NAPI_GRO_CB(p)->flush = 0; in gro_list_prepare()
5822 NAPI_GRO_CB(p)->same_flow = 0; in gro_list_prepare()
5839 NAPI_GRO_CB(p)->same_flow = !diffs; in gro_list_prepare()
5850 NAPI_GRO_CB(skb)->data_offset = 0; in skb_gro_reset_offset()
5851 NAPI_GRO_CB(skb)->frag0 = NULL; in skb_gro_reset_offset()
5852 NAPI_GRO_CB(skb)->frag0_len = 0; in skb_gro_reset_offset()
5856 NAPI_GRO_CB(skb)->frag0 = skb_frag_address(frag0); in skb_gro_reset_offset()
5857 NAPI_GRO_CB(skb)->frag0_len = min_t(unsigned int, in skb_gro_reset_offset()
[all …]
Dskbuff.c3709 if (NAPI_GRO_CB(p)->last == p) in skb_gro_receive_list()
3712 NAPI_GRO_CB(p)->last->next = skb; in skb_gro_receive_list()
3716 NAPI_GRO_CB(p)->last = skb; in skb_gro_receive_list()
3717 NAPI_GRO_CB(p)->count++; in skb_gro_receive_list()
3722 NAPI_GRO_CB(skb)->same_flow = 1; in skb_gro_receive_list()
4087 if (unlikely(p->len + len >= 65536 || NAPI_GRO_CB(skb)->flush)) in skb_gro_receive()
4090 lp = NAPI_GRO_CB(p)->last; in skb_gro_receive()
4123 NAPI_GRO_CB(skb)->free = NAPI_GRO_FREE; in skb_gro_receive()
4149 NAPI_GRO_CB(skb)->free = NAPI_GRO_FREE_STOLEN_HEAD; in skb_gro_receive()
4167 if (NAPI_GRO_CB(p)->last == p) in skb_gro_receive()
[all …]
/Linux-v5.10/net/ethernet/
Deth.c431 if (!NAPI_GRO_CB(p)->same_flow) in eth_gro_receive()
436 NAPI_GRO_CB(p)->same_flow = 0; in eth_gro_receive()
/Linux-v5.10/net/8021q/
Dvlan_core.c488 if (!NAPI_GRO_CB(p)->same_flow) in vlan_gro_receive()
493 NAPI_GRO_CB(p)->same_flow = 0; in vlan_gro_receive()
/Linux-v5.10/drivers/net/
Dgeneve.c504 if (!NAPI_GRO_CB(p)->same_flow) in geneve_gro_receive()
510 NAPI_GRO_CB(p)->same_flow = 0; in geneve_gro_receive()
Dvxlan.c744 if (!NAPI_GRO_CB(skb)->csum_valid) in vxlan_gro_remcsum()
799 if (!NAPI_GRO_CB(p)->same_flow) in vxlan_gro_receive()
805 NAPI_GRO_CB(p)->same_flow = 0; in vxlan_gro_receive()
/Linux-v5.10/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1018 NAPI_GRO_CB(skb)->count = le16_to_cpu(cqe->num_of_coalesced_segs); in qede_tpa_end()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c2734 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in hns3_gro_complete()
2998 NAPI_GRO_CB(skb)->count = hnae3_get_field(l234info, in hns3_set_gro_and_checksum()
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c544 NAPI_GRO_CB(skb)->count = num_of_coalesced_segs; in bnx2x_set_gro_params()
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c1473 NAPI_GRO_CB(skb)->count = segs; in bnxt_gro_skb()