Home
last modified time | relevance | path

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

/linux-6.1.9/include/net/
Dgro.h85 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) macro
90 return ++NAPI_GRO_CB(skb)->recursion_counter == GRO_RECURSION_LIMIT; in gro_recursion_inc_test()
99 NAPI_GRO_CB(skb)->flush |= 1; in call_gro_receive()
114 NAPI_GRO_CB(skb)->flush |= 1; in call_gro_receive_sk()
123 return NAPI_GRO_CB(skb)->data_offset; in skb_gro_offset()
128 return skb->len - NAPI_GRO_CB(skb)->data_offset; in skb_gro_len()
133 NAPI_GRO_CB(skb)->data_offset += len; in skb_gro_pull()
139 return NAPI_GRO_CB(skb)->frag0 + offset; in skb_gro_header_fast()
144 return NAPI_GRO_CB(skb)->frag0_len < hlen; in skb_gro_header_hard()
149 NAPI_GRO_CB(skb)->frag0 = NULL; in skb_gro_frag0_invalidate()
[all …]
Dinet_common.h77 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
/linux-6.1.9/net/core/
Dgro.c168 if (unlikely(p->len + len >= gro_max_size || NAPI_GRO_CB(skb)->flush)) in skb_gro_receive()
179 segs = NAPI_GRO_CB(skb)->count; in skb_gro_receive()
180 lp = NAPI_GRO_CB(p)->last; in skb_gro_receive()
213 NAPI_GRO_CB(skb)->free = NAPI_GRO_FREE; in skb_gro_receive()
241 NAPI_GRO_CB(skb)->free = NAPI_GRO_FREE_STOLEN_HEAD; in skb_gro_receive()
261 if (NAPI_GRO_CB(p)->last == p) in skb_gro_receive()
264 NAPI_GRO_CB(p)->last->next = skb; in skb_gro_receive()
265 NAPI_GRO_CB(p)->last = skb; in skb_gro_receive()
270 NAPI_GRO_CB(p)->count += segs; in skb_gro_receive()
279 NAPI_GRO_CB(skb)->same_flow = 1; in skb_gro_receive()
[all …]
/linux-6.1.9/net/ipv4/
Dudp_offload.c433 if (NAPI_GRO_CB(p)->last == p) in skb_gro_receive_list()
436 NAPI_GRO_CB(p)->last->next = skb; in skb_gro_receive_list()
440 NAPI_GRO_CB(p)->last = skb; in skb_gro_receive_list()
441 NAPI_GRO_CB(p)->count++; in skb_gro_receive_list()
449 NAPI_GRO_CB(skb)->same_flow = 1; in skb_gro_receive_list()
468 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
475 NAPI_GRO_CB(skb)->flush = 1; in udp_gro_receive_segment()
482 if (!NAPI_GRO_CB(p)->same_flow) in udp_gro_receive_segment()
489 NAPI_GRO_CB(p)->same_flow = 0; in udp_gro_receive_segment()
493 if (NAPI_GRO_CB(skb)->is_flist != NAPI_GRO_CB(p)->is_flist) { in udp_gro_receive_segment()
[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; in tcp_gro_receive()
249 if (NAPI_GRO_CB(p)->flush_id != 1 || in tcp_gro_receive()
250 NAPI_GRO_CB(p)->count != 1 || in tcp_gro_receive()
251 !NAPI_GRO_CB(p)->is_atomic) in tcp_gro_receive()
252 flush |= NAPI_GRO_CB(p)->flush_id; in tcp_gro_receive()
254 NAPI_GRO_CB(p)->is_atomic = false; in tcp_gro_receive()
282 flush = len != NAPI_GRO_CB(skb)->count * skb_shinfo(skb)->gso_size; in tcp_gro_receive()
290 if (p && (!NAPI_GRO_CB(skb)->same_flow || flush)) in tcp_gro_receive()
[all …]
Dgre_offload.c133 if (NAPI_GRO_CB(skb)->encap_mark) in gre_gro_receive()
136 NAPI_GRO_CB(skb)->encap_mark = 1; in gre_gro_receive()
158 if ((greh->flags & GRE_CSUM) && NAPI_GRO_CB(skb)->is_fou) in gre_gro_receive()
183 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) { in gre_gro_receive()
194 if (!NAPI_GRO_CB(p)->same_flow) in gre_gro_receive()
209 NAPI_GRO_CB(p)->same_flow = 0; in gre_gro_receive()
215 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()
249 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in fou_gro_receive()
268 offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; in fou_gro_complete()
293 if (!NAPI_GRO_CB(skb)->csum_valid) in gue_gro_remcsum()
396 if (!NAPI_GRO_CB(p)->same_flow) in gue_gro_receive()
405 NAPI_GRO_CB(p)->same_flow = 0; in gue_gro_receive()
412 NAPI_GRO_CB(p)->same_flow = 0; in gue_gro_receive()
427 NAPI_GRO_CB(skb)->encap_mark = 0; in gue_gro_receive()
430 NAPI_GRO_CB(skb)->is_fou = 1; in gue_gro_receive()
[all …]
Daf_inet.c1496 if (!NAPI_GRO_CB(p)->same_flow) in inet_gro_receive()
1508 NAPI_GRO_CB(p)->same_flow = 0; in inet_gro_receive()
1513 NAPI_GRO_CB(p)->flush |= in inet_gro_receive()
1518 NAPI_GRO_CB(p)->flush |= flush; in inet_gro_receive()
1532 if (!NAPI_GRO_CB(p)->is_atomic || in inet_gro_receive()
1534 flush_id ^= NAPI_GRO_CB(p)->count; in inet_gro_receive()
1541 if (NAPI_GRO_CB(skb)->is_atomic) in inet_gro_receive()
1542 NAPI_GRO_CB(p)->flush_id = flush_id; in inet_gro_receive()
1544 NAPI_GRO_CB(p)->flush_id |= flush_id; in inet_gro_receive()
1547 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-6.1.9/net/ipv6/
Dip6_offload.c35 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
249 NAPI_GRO_CB(skb)->proto = proto; in ipv6_gro_receive()
258 if (!NAPI_GRO_CB(p)->same_flow) in ipv6_gro_receive()
275 NAPI_GRO_CB(p)->same_flow = 0; in ipv6_gro_receive()
284 NAPI_GRO_CB(p)->flush |= !!((first_word & htonl(0x0FF00000)) | in ipv6_gro_receive()
286 NAPI_GRO_CB(p)->flush |= flush; in ipv6_gro_receive()
291 if (NAPI_GRO_CB(skb)->is_atomic) in ipv6_gro_receive()
292 NAPI_GRO_CB(p)->flush_id = 0; in ipv6_gro_receive()
295 NAPI_GRO_CB(skb)->is_atomic = true; in ipv6_gro_receive()
296 NAPI_GRO_CB(skb)->flush |= flush; in ipv6_gro_receive()
[all …]
Dudp_offload.c136 if (NAPI_GRO_CB(skb)->flush) in udp6_gro_receive()
147 NAPI_GRO_CB(skb)->is_ipv6 = 1; in udp6_gro_receive()
156 NAPI_GRO_CB(skb)->flush = 1; in udp6_gro_receive()
166 if (NAPI_GRO_CB(skb)->is_flist && !NAPI_GRO_CB(skb)->encap_mark) { in udp6_gro_complete()
170 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in udp6_gro_complete()
Dtcpv6_offload.c20 if (!NAPI_GRO_CB(skb)->flush && in tcp6_gro_receive()
23 NAPI_GRO_CB(skb)->flush = 1; in tcp6_gro_receive()
Desp6_offload.c114 NAPI_GRO_CB(skb)->same_flow = 0; in esp6_gro_receive()
115 NAPI_GRO_CB(skb)->flush = 1; in esp6_gro_receive()
/linux-6.1.9/net/ethernet/
Deth.c424 if (!NAPI_GRO_CB(p)->same_flow) in eth_gro_receive()
429 NAPI_GRO_CB(p)->same_flow = 0; in eth_gro_receive()
/linux-6.1.9/net/8021q/
Dvlan_core.c485 if (!NAPI_GRO_CB(p)->same_flow) in vlan_gro_receive()
490 NAPI_GRO_CB(p)->same_flow = 0; in vlan_gro_receive()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c1180 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in mlx5e_shampo_update_hdr()
1473 if (NAPI_GRO_CB(skb)->count != 1) in mlx5e_shampo_complete_rx_cqe()
2043 if (NAPI_GRO_CB(skb)->count > 1) in mlx5e_shampo_flush_skb()
2120 NAPI_GRO_CB(*skb)->count = 1; in mlx5e_handle_rx_cqe_mpwrq_shampo()
2123 NAPI_GRO_CB(*skb)->count++; in mlx5e_handle_rx_cqe_mpwrq_shampo()
2124 if (NAPI_GRO_CB(*skb)->count == 2 && in mlx5e_handle_rx_cqe_mpwrq_shampo()
/linux-6.1.9/drivers/net/
Dgeneve.c522 if (!NAPI_GRO_CB(p)->same_flow) in geneve_gro_receive()
528 NAPI_GRO_CB(p)->same_flow = 0; in geneve_gro_receive()
/linux-6.1.9/drivers/net/vxlan/
Dvxlan_core.c685 if (!NAPI_GRO_CB(skb)->csum_valid) in vxlan_gro_remcsum()
737 if (!NAPI_GRO_CB(p)->same_flow) in vxlan_gro_receive()
743 NAPI_GRO_CB(p)->same_flow = 0; in vxlan_gro_receive()
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1015 NAPI_GRO_CB(skb)->count = le16_to_cpu(cqe->num_of_coalesced_segs); in qede_tpa_end()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c3842 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in hns3_gro_complete()
4149 NAPI_GRO_CB(skb)->count = hnae3_get_field(l234info, in hns3_set_gro_and_checksum()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c543 NAPI_GRO_CB(skb)->count = num_of_coalesced_segs; in bnx2x_set_gro_params()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c1593 NAPI_GRO_CB(skb)->count = segs; in bnxt_gro_skb()