Home
last modified time | relevance | path

Searched refs:gso_type (Results 1 – 25 of 96) sorted by relevance

1234

/linux/include/linux/
H A Dvirtio_net.h13 static inline bool virtio_net_hdr_match_proto(__be16 protocol, __u8 gso_type) in virtio_net_hdr_match_proto() argument
15 switch (gso_type & ~VIRTIO_NET_HDR_GSO_ECN) { in virtio_net_hdr_match_proto()
35 switch (hdr->gso_type & ~VIRTIO_NET_HDR_GSO_ECN) { in virtio_net_hdr_set_proto()
56 unsigned int gso_type = 0; in __virtio_net_hdr_to_skb() local
64 gso_type = SKB_GSO_TCPV4; in __virtio_net_hdr_to_skb()
69 gso_type = SKB_GSO_TCPV6; in __virtio_net_hdr_to_skb()
75 gso_type = SKB_GSO_UDP; in __virtio_net_hdr_to_skb()
80 gso_type = SKB_GSO_UDP_L4; in __virtio_net_hdr_to_skb()
89 gso_type |= SKB_GSO_TCP_ECN; in __virtio_net_hdr_to_skb()
114 } else if (gso_type) { in __virtio_net_hdr_to_skb()
[all...]
H A Dudp.h190 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) { in udp_cmsg_recv()
219 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4 && in udp_unexpected_gso()
223 if (skb_shinfo(skb)->gso_type & SKB_GSO_FRAGLIST && in udp_unexpected_gso()
233 !(skb_shinfo(skb)->gso_type & in udp_unexpected_gso()
/linux/net/openvswitch/
H A Dopenvswitch_trace.h29 __field( u16, gso_type )
54 __entry->gso_type = skb_shinfo(skb)->gso_type;
69 TP_printk("dpaddr=%p dp_name=%s dev=%s skbaddr=%p len=%u data_len=%u truesize=%u nr_frags=%d gso_size=%d gso_type=%#x ovs_flow_hash=0x%08x recirc_id=0x%08x keyaddr=%p eth_type=0x%04x ct_state=%02x ct_orig_proto=%02x ct_Zone=%04x flow_key_valid=%d action_type=%u action_len=%u action_data=%p is_last=%d",
73 __entry->gso_type, __entry->ovs_flow_hash,
100 __field( u16, gso_type )
124 __entry->gso_type = skb_shinfo(skb)->gso_type;
138 TP_printk("dpaddr=%p dp_name=%s dev=%s skbaddr=%p len=%u data_len=%u truesize=%u nr_frags=%d gso_size=%d gso_type=%#x ovs_flow_hash=0x%08x recirc_id=0x%08x keyaddr=%p eth_type=0x%04x ct_state=%02x ct_orig_proto=%02x ct_zone=%04x flow_key_valid=%d upcall_cmd=%u upcall_port=%u upcall_mru=%u",
142 __entry->gso_type, __entr
[all...]
/linux/drivers/net/ethernet/alibaba/eea/
H A Deea_tx.c180 if (sinfo->gso_type & SKB_GSO_TCPV4) in eea_fill_desc_from_skb()
181 desc->gso_type = EEA_TX_GSO_TCPV4; in eea_fill_desc_from_skb()
183 else if (sinfo->gso_type & SKB_GSO_TCPV6) in eea_fill_desc_from_skb()
184 desc->gso_type = EEA_TX_GSO_TCPV6; in eea_fill_desc_from_skb()
186 else if (sinfo->gso_type & SKB_GSO_UDP_L4) in eea_fill_desc_from_skb()
187 desc->gso_type = EEA_TX_GSO_UDP_L4; in eea_fill_desc_from_skb()
192 if (sinfo->gso_type & SKB_GSO_TCP_ECN) in eea_fill_desc_from_skb()
193 desc->gso_type |= EEA_TX_GSO_ECN; in eea_fill_desc_from_skb()
195 desc->gso_type = EEA_TX_GSO_NONE; in eea_fill_desc_from_skb()
/linux/net/ipv6/
H A Dtcpv6_offload.c88 skb_shinfo(skb)->gso_type |= SKB_GSO_FRAGLIST | SKB_GSO_TCPV6; in tcp6_gro_complete()
98 skb_shinfo(skb)->gso_type |= SKB_GSO_TCPV6; in tcp6_gro_complete()
173 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6)) in tcp6_gso_segment()
179 if (skb_shinfo(skb)->gso_type & SKB_GSO_FRAGLIST) { in tcp6_gso_segment()
183 !(skb_shinfo(skb)->gso_type & SKB_GSO_DODGY)) in tcp6_gso_segment()
H A Dudp_offload.c33 if (skb->encapsulation && skb_shinfo(skb)->gso_type & in udp6_ufo_fragment()
40 if (!(skb_shinfo(skb)->gso_type & (SKB_GSO_UDP | SKB_GSO_UDP_L4))) in udp6_ufo_fragment()
46 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) in udp6_ufo_fragment()
176 skb_shinfo(skb)->gso_type |= (SKB_GSO_FRAGLIST|SKB_GSO_UDP_L4); in udp6_gro_complete()
H A Desp6_offload.c211 skb_shinfo(skb)->gso_type |= SKB_GSO_TCPV6; in xfrm6_beet_gso_segment()
220 skb_shinfo(skb)->gso_type |= SKB_GSO_IPXIP6; in xfrm6_beet_gso_segment()
259 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_ESP)) in esp6_gso_segment()
/linux/net/ipv4/
H A Dudp_offload.c200 if (skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) in __skb_udp_tunnel_segment()
216 need_csum = !!(skb_shinfo(skb)->gso_type & SKB_GSO_UDP_TUNNEL_CSUM); in __skb_udp_tunnel_segment()
219 remcsum = !!(skb_shinfo(skb)->gso_type & SKB_GSO_TUNNEL_REMCSUM); in __skb_udp_tunnel_segment()
252 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in __skb_udp_tunnel_segment()
500 !(skb_shinfo(gso_skb)->gso_type & SKB_GSO_FRAGLIST))) in __udp_gso_segment()
516 if (skb_shinfo(gso_skb)->gso_type & SKB_GSO_FRAGLIST) { in __udp_gso_segment()
519 !(skb_shinfo(gso_skb)->gso_type & SKB_GSO_DODGY)) in __udp_gso_segment()
643 (skb_shinfo(skb)->gso_type & in udp4_ufo_fragment()
649 if (!(skb_shinfo(skb)->gso_type & (SKB_GSO_UDP | SKB_GSO_UDP_L4))) in udp4_ufo_fragment()
655 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) in udp4_ufo_fragment()
[all …]
H A Dtcp_offload.c101 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4)) in tcp4_gso_segment()
107 if (skb_shinfo(skb)->gso_type & SKB_GSO_FRAGLIST) { in tcp4_gso_segment()
111 !(skb_shinfo(skb)->gso_type & SKB_GSO_DODGY)) in tcp4_gso_segment()
206 ecn_cwr_mask = !!(skb_shinfo(gso_skb)->gso_type & SKB_GSO_TCP_ACCECN); in tcp_gso_segment()
386 shinfo->gso_type |= SKB_GSO_TCP_ACCECN; in tcp_gro_complete()
459 skb_shinfo(skb)->gso_type |= SKB_GSO_FRAGLIST | SKB_GSO_TCPV4; in tcp4_gro_complete()
471 skb_shinfo(skb)->gso_type |= SKB_GSO_TCPV4 | in tcp4_gro_complete()
H A Dgre_offload.c45 need_csum = !!(skb_shinfo(skb)->gso_type & SKB_GSO_GRE_CSUM); in gre_gso_segment()
65 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in gre_gso_segment()
245 skb_shinfo(skb)->gso_type = SKB_GSO_GRE; in gre_gro_complete()
H A Desp4_offload.c176 skb_shinfo(skb)->gso_type |= SKB_GSO_TCPV4; in xfrm4_beet_gso_segment()
180 skb_shinfo(skb)->gso_type |= SKB_GSO_IPXIP4; in xfrm4_beet_gso_segment()
219 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_ESP)) in esp4_gso_segment()
/linux/drivers/net/ethernet/sfc/siena/
H A Dtx.h29 !(skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) && in efx_tx_csum_type_skb()
30 (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_TUNNEL_CSUM)) in efx_tx_csum_type_skb()
/linux/net/core/
H A Dgso.c153 if (likely(shinfo->gso_type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6))) in skb_gso_transport_seglen()
155 } else if (likely(shinfo->gso_type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6))) { in skb_gso_transport_seglen()
159 } else if (shinfo->gso_type & SKB_GSO_UDP_L4) { in skb_gso_transport_seglen()
H A Dlwt_bpf.c537 static int handle_gso_type(struct sk_buff *skb, unsigned int gso_type, in handle_gso_type() argument
542 gso_type |= SKB_GSO_DODGY; in handle_gso_type()
543 shinfo->gso_type |= gso_type; in handle_gso_type()
559 if (!(skb_shinfo(skb)->gso_type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6))) in handle_gso_encap()
/linux/net/netfilter/ipvs/
H A Dip_vs_xmit.c1163 int tun_type, gso_type; in ip_vs_tunnel_xmit() local
1216 gso_type = __tun_gso_type_mask(AF_INET, cp->af); in ip_vs_tunnel_xmit()
1220 gso_type |= SKB_GSO_UDP_TUNNEL_CSUM; in ip_vs_tunnel_xmit()
1222 gso_type |= SKB_GSO_UDP_TUNNEL; in ip_vs_tunnel_xmit()
1225 gso_type |= SKB_GSO_TUNNEL_REMCSUM; in ip_vs_tunnel_xmit()
1229 gso_type |= SKB_GSO_GRE_CSUM; in ip_vs_tunnel_xmit()
1231 gso_type |= SKB_GSO_GRE; in ip_vs_tunnel_xmit()
1234 if (iptunnel_handle_offloads(skb, gso_type)) in ip_vs_tunnel_xmit()
1307 int tun_type, gso_type; in ip_vs_tunnel_xmit_v6() local
1359 gso_type = __tun_gso_type_mask(AF_INET6, cp->af); in ip_vs_tunnel_xmit_v6()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c695 (shinfo->gso_type & SKB_GSO_UDP_TUNNEL_MASK)) in decap_internal()
699 (shinfo->gso_type & (SKB_GSO_GRE | SKB_GSO_GRE_CSUM))) in decap_internal()
703 (shinfo->gso_type & SKB_GSO_IPXIP4)) in decap_internal()
707 (shinfo->gso_type & SKB_GSO_IPXIP6)) in decap_internal()
712 if ((shinfo->gso_type & SKB_GSO_TUNNEL_MASK) && in decap_internal()
715 if (!(shinfo->gso_type & SKB_GSO_TUNNEL_MASK) && in decap_internal()
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-utils.c32 skb_shinfo(skb)->gso_type = ipv4 ? SKB_GSO_TCPV4 : SKB_GSO_TCPV6; in iwl_tx_tso_segment()
61 skb_shinfo(tmp)->gso_type = ipv4 ? SKB_GSO_TCPV4 : in iwl_tx_tso_segment()
/linux/drivers/net/xen-netback/
H A Drx.c233 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) in xenvif_gso_type()
256 unsigned int gso_type; in xenvif_rx_next_skb() local
271 gso_type = xenvif_gso_type(skb); in xenvif_rx_next_skb()
272 if ((1 << gso_type) & queue->vif->gso_mask) { in xenvif_rx_next_skb()
277 extra->u.gso.type = gso_type; in xenvif_rx_next_skb()
/linux/drivers/net/
H A Dtun_vnet.h222 sinfo->gso_type, tun_vnet16_to_cpu(flags, hdr->gso_size), in tun_vnet_hdr_from_skb()
255 sinfo->gso_type, in tun_vnet_hdr_tnl_from_skb()
/linux/include/uapi/linux/
H A Dvirtio_net.h168 __u8 gso_type; member
227 __u8 gso_type; member
/linux/tools/testing/selftests/net/
H A Dtap.c309 vh->gso_type = VIRTIO_NET_HDR_GSO_UDP; in build_test_packet_valid_udp_gso()
326 vh->gso_type = VIRTIO_NET_HDR_GSO_NONE; in build_test_packet_valid_udp_csum()
344 vh->gso_type = VIRTIO_NET_HDR_GSO_UDP; in build_test_packet_crash_tap_invalid_eth_proto()
/linux/net/sched/
H A Dact_csum.c212 if (skb_is_gso(skb) && skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) in tcf_csum_ipv4_tcp()
236 if (skb_is_gso(skb) && skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) in tcf_csum_ipv6_tcp()
262 if (skb_is_gso(skb) && skb_shinfo(skb)->gso_type & in tcf_csum_ipv4_udp()
320 if (skb_is_gso(skb) && skb_shinfo(skb)->gso_type & in tcf_csum_ipv6_udp()
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_tx.c186 if (shinfo->gso_type & (SKB_GSO_UDP_TUNNEL | in write_pkt_desc()
190 if (shinfo->gso_type & SKB_GSO_UDP_TUNNEL_CSUM) in write_pkt_desc()
219 } else if (shinfo->gso_type & SKB_GSO_UDP_L4) { in write_pkt_desc()
242 if (shinfo->gso_type & SKB_GSO_TCPV6) in write_pkt_desc()
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_fp.c193 unsigned short gso_type = skb_shinfo(skb)->gso_type; in qede_xmit_type() local
195 if ((gso_type & SKB_GSO_UDP_TUNNEL_CSUM) || in qede_xmit_type()
196 (gso_type & SKB_GSO_GRE_CSUM)) in qede_xmit_type()
657 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV6; in qede_set_gro_params()
659 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in qede_set_gro_params()
935 skb_shinfo(skb)->gso_type = 0; in qede_gro_receive()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_tx.c290 u32 gso_type = skb_shinfo(skb)->gso_type; in offload_tso() local
310 if (gso_type & SKB_GSO_UDP_TUNNEL_CSUM) { in offload_tso()
313 } else if (gso_type & SKB_GSO_UDP_TUNNEL) { in offload_tso()

1234