/linux-6.1.9/include/net/ |
D | gro.h | 85 #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 …]
|
D | inet_common.h | 77 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
|
/linux-6.1.9/net/core/ |
D | gro.c | 168 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/ |
D | udp_offload.c | 433 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 …]
|
D | tcp_offload.c | 219 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 …]
|
D | gre_offload.c | 133 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()
|
D | fou.c | 244 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 …]
|
D | af_inet.c | 1496 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 …]
|
D | esp4_offload.c | 86 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/ |
D | ip6_offload.c | 35 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 …]
|
D | udp_offload.c | 136 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()
|
D | tcpv6_offload.c | 20 if (!NAPI_GRO_CB(skb)->flush && in tcp6_gro_receive() 23 NAPI_GRO_CB(skb)->flush = 1; in tcp6_gro_receive()
|
D | esp6_offload.c | 114 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/ |
D | eth.c | 424 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/ |
D | vlan_core.c | 485 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/ |
D | en_rx.c | 1180 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/ |
D | geneve.c | 522 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/ |
D | vxlan_core.c | 685 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/ |
D | qede_fp.c | 1015 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/ |
D | hns3_enet.c | 3842 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/ |
D | bnx2x_cmn.c | 543 NAPI_GRO_CB(skb)->count = num_of_coalesced_segs; in bnx2x_set_gro_params()
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 1593 NAPI_GRO_CB(skb)->count = segs; in bnxt_gro_skb()
|