Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/ipv4/
Dudp_offload.c437 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
444 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
451 if (!NAPI_GRO_CB(p)->same_flow) in udp_gro_receive_segment()
458 NAPI_GRO_CB(p)->same_flow = 0; in udp_gro_receive_segment()
462 if (NAPI_GRO_CB(skb)->is_flist != NAPI_GRO_CB(p)->is_flist) { in udp_gro_receive_segment()
463 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
476 if (NAPI_GRO_CB(skb)->is_flist) { in udp_gro_receive_segment()
478 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
483 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
496 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.c1489 if (!NAPI_GRO_CB(p)->same_flow) in inet_gro_receive()
1501 NAPI_GRO_CB(p)->same_flow = 0; in inet_gro_receive()
1506 NAPI_GRO_CB(p)->flush |= in inet_gro_receive()
1511 NAPI_GRO_CB(p)->flush |= flush; in inet_gro_receive()
1525 if (!NAPI_GRO_CB(p)->is_atomic || in inet_gro_receive()
1527 flush_id ^= NAPI_GRO_CB(p)->count; in inet_gro_receive()
1534 if (NAPI_GRO_CB(skb)->is_atomic) in inet_gro_receive()
1535 NAPI_GRO_CB(p)->flush_id = flush_id; in inet_gro_receive()
1537 NAPI_GRO_CB(p)->flush_id |= flush_id; in inet_gro_receive()
1540 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()
/kernel/linux/linux-5.10/net/ipv6/
Dip6_offload.c34 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
230 NAPI_GRO_CB(skb)->proto = proto; in ipv6_gro_receive()
239 if (!NAPI_GRO_CB(p)->same_flow) in ipv6_gro_receive()
256 NAPI_GRO_CB(p)->same_flow = 0; in ipv6_gro_receive()
265 NAPI_GRO_CB(p)->flush |= !!(first_word & htonl(0x0FF00000)); in ipv6_gro_receive()
266 NAPI_GRO_CB(p)->flush |= flush; in ipv6_gro_receive()
271 if (NAPI_GRO_CB(skb)->is_atomic) in ipv6_gro_receive()
272 NAPI_GRO_CB(p)->flush_id = 0; in ipv6_gro_receive()
275 NAPI_GRO_CB(skb)->is_atomic = true; in ipv6_gro_receive()
276 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()
/kernel/linux/linux-5.10/include/linux/
Dnetdevice.h2521 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) macro
2526 return ++NAPI_GRO_CB(skb)->recursion_counter == GRO_RECURSION_LIMIT; in gro_recursion_inc_test()
2535 NAPI_GRO_CB(skb)->flush |= 1; in call_gro_receive()
2550 NAPI_GRO_CB(skb)->flush |= 1; in call_gro_receive_sk()
2915 return NAPI_GRO_CB(skb)->data_offset; in skb_gro_offset()
2920 return skb->len - NAPI_GRO_CB(skb)->data_offset; in skb_gro_len()
2925 NAPI_GRO_CB(skb)->data_offset += len; in skb_gro_pull()
2931 return NAPI_GRO_CB(skb)->frag0 + offset; in skb_gro_header_fast()
2936 return NAPI_GRO_CB(skb)->frag0_len < hlen; in skb_gro_header_hard()
2941 NAPI_GRO_CB(skb)->frag0 = NULL; in skb_gro_frag0_invalidate()
[all …]
/kernel/linux/linux-5.10/include/net/
Dinet_common.h69 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
/kernel/linux/linux-5.10/net/core/
Ddev.c5795 if (NAPI_GRO_CB(skb)->count == 1) { in napi_gro_complete()
5819 gro_normal_one(napi, skb, NAPI_GRO_CB(skb)->count); in napi_gro_complete()
5830 if (flush_old && NAPI_GRO_CB(skb)->age == jiffies) in __napi_gro_flush_chain()
5870 NAPI_GRO_CB(p)->flush = 0; in gro_list_prepare()
5873 NAPI_GRO_CB(p)->same_flow = 0; in gro_list_prepare()
5903 NAPI_GRO_CB(p)->same_flow = !diffs; in gro_list_prepare()
5914 NAPI_GRO_CB(skb)->data_offset = 0; in skb_gro_reset_offset()
5915 NAPI_GRO_CB(skb)->frag0 = NULL; in skb_gro_reset_offset()
5916 NAPI_GRO_CB(skb)->frag0_len = 0; in skb_gro_reset_offset()
5921 NAPI_GRO_CB(skb)->frag0 = skb_frag_address(frag0); in skb_gro_reset_offset()
[all …]
Dskbuff.c3766 if (NAPI_GRO_CB(p)->last == p) in skb_gro_receive_list()
3769 NAPI_GRO_CB(p)->last->next = skb; in skb_gro_receive_list()
3773 NAPI_GRO_CB(p)->last = skb; in skb_gro_receive_list()
3774 NAPI_GRO_CB(p)->count++; in skb_gro_receive_list()
3779 NAPI_GRO_CB(skb)->same_flow = 1; in skb_gro_receive_list()
4145 if (unlikely(p->len + len >= 65536 || NAPI_GRO_CB(skb)->flush)) in skb_gro_receive()
4148 lp = NAPI_GRO_CB(p)->last; in skb_gro_receive()
4181 NAPI_GRO_CB(skb)->free = NAPI_GRO_FREE; in skb_gro_receive()
4207 NAPI_GRO_CB(skb)->free = NAPI_GRO_FREE_STOLEN_HEAD; in skb_gro_receive()
4225 if (NAPI_GRO_CB(p)->last == p) in skb_gro_receive()
[all …]
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1021 NAPI_GRO_CB(skb)->count = le16_to_cpu(cqe->num_of_coalesced_segs); in qede_tpa_end()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c2782 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in hns3_gro_complete()
3047 NAPI_GRO_CB(skb)->count = hnae3_get_field(l234info, in hns3_set_gro_and_checksum()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c544 NAPI_GRO_CB(skb)->count = num_of_coalesced_segs; in bnx2x_set_gro_params()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c1512 NAPI_GRO_CB(skb)->count = segs; in bnxt_gro_skb()