Home
last modified time | relevance | path

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

/linux-4.1.27/include/trace/events/
Dnet.h36 __field( u16, gso_type )
57 __entry->gso_type = skb_shinfo(skb)->gso_type;
67 __entry->gso_size, __entry->gso_segs, __entry->gso_type)
165 __field( u16, gso_type )
191 __entry->gso_type = skb_shinfo(skb)->gso_type;
201 __entry->nr_frags, __entry->gso_size, __entry->gso_type)
/linux-4.1.27/drivers/net/
Dmacvtap.c578 unsigned short gso_type = 0; in macvtap_skb_from_vnet_hdr() local
579 if (vnet_hdr->gso_type != VIRTIO_NET_HDR_GSO_NONE) { in macvtap_skb_from_vnet_hdr()
580 switch (vnet_hdr->gso_type & ~VIRTIO_NET_HDR_GSO_ECN) { in macvtap_skb_from_vnet_hdr()
582 gso_type = SKB_GSO_TCPV4; in macvtap_skb_from_vnet_hdr()
585 gso_type = SKB_GSO_TCPV6; in macvtap_skb_from_vnet_hdr()
588 gso_type = SKB_GSO_UDP; in macvtap_skb_from_vnet_hdr()
594 if (vnet_hdr->gso_type & VIRTIO_NET_HDR_GSO_ECN) in macvtap_skb_from_vnet_hdr()
595 gso_type |= SKB_GSO_TCP_ECN; in macvtap_skb_from_vnet_hdr()
607 if (vnet_hdr->gso_type != VIRTIO_NET_HDR_GSO_NONE) { in macvtap_skb_from_vnet_hdr()
609 skb_shinfo(skb)->gso_type = gso_type; in macvtap_skb_from_vnet_hdr()
[all …]
Dvirtio_net.c486 if (hdr->hdr.gso_type != VIRTIO_NET_HDR_GSO_NONE) { in receive_buf()
488 switch (hdr->hdr.gso_type & ~VIRTIO_NET_HDR_GSO_ECN) { in receive_buf()
490 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in receive_buf()
493 skb_shinfo(skb)->gso_type = SKB_GSO_UDP; in receive_buf()
496 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV6; in receive_buf()
500 dev->name, hdr->hdr.gso_type); in receive_buf()
504 if (hdr->hdr.gso_type & VIRTIO_NET_HDR_GSO_ECN) in receive_buf()
505 skb_shinfo(skb)->gso_type |= SKB_GSO_TCP_ECN; in receive_buf()
515 skb_shinfo(skb)->gso_type |= SKB_GSO_DODGY; in receive_buf()
878 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) in xmit_skb()
[all …]
Dtun.c1165 if (gso.gso_type != VIRTIO_NET_HDR_GSO_NONE) { in tun_get_user()
1167 switch (gso.gso_type & ~VIRTIO_NET_HDR_GSO_ECN) { in tun_get_user()
1169 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in tun_get_user()
1172 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV6; in tun_get_user()
1175 skb_shinfo(skb)->gso_type = SKB_GSO_UDP; in tun_get_user()
1183 if (gso.gso_type & VIRTIO_NET_HDR_GSO_ECN) in tun_get_user()
1184 skb_shinfo(skb)->gso_type |= SKB_GSO_TCP_ECN; in tun_get_user()
1194 skb_shinfo(skb)->gso_type |= SKB_GSO_DODGY; in tun_get_user()
1279 if (sinfo->gso_type & SKB_GSO_TCPV4) in tun_put_user()
1280 gso.gso_type = VIRTIO_NET_HDR_GSO_TCPV4; in tun_put_user()
[all …]
Dxen-netfront.c592 gso->u.gso.type = (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) ? in xennet_start_xmit()
809 skb_shinfo(skb)->gso_type = in xennet_set_skb_gso()
815 skb_shinfo(skb)->gso_type |= SKB_GSO_DODGY; in xennet_set_skb_gso()
/linux-4.1.27/net/ipv6/
Dudp_offload.c39 int type = skb_shinfo(skb)->gso_type; in udp6_ufo_fragment()
63 if (skb->encapsulation && skb_shinfo(skb)->gso_type & in udp6_ufo_fragment()
163 skb_shinfo(skb)->gso_type |= SKB_GSO_UDP_TUNNEL_CSUM; in udp6_gro_complete()
167 skb_shinfo(skb)->gso_type |= SKB_GSO_UDP_TUNNEL; in udp6_gro_complete()
Dtcpv6_offload.c39 skb_shinfo(skb)->gso_type |= SKB_GSO_TCPV6; in tcp6_gro_complete()
Dip6_offload.c71 if (unlikely(skb_shinfo(skb)->gso_type & in ipv6_gso_segment()
104 skb_shinfo(skb)->gso_type & (SKB_GSO_SIT|SKB_GSO_IPIP)) in ipv6_gso_segment()
Dip6_output.c1115 skb_shinfo(skb)->gso_type = SKB_GSO_UDP; in ip6_ufo_append_data()
/linux-4.1.27/drivers/net/xen-netback/
Dnetback.c255 meta->gso_type = XEN_NETIF_GSO_TYPE_NONE; in get_next_rx_buffer()
278 int gso_type = XEN_NETIF_GSO_TYPE_NONE; in xenvif_gop_frag_copy() local
340 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) in xenvif_gop_frag_copy()
341 gso_type = XEN_NETIF_GSO_TYPE_TCPV4; in xenvif_gop_frag_copy()
342 else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) in xenvif_gop_frag_copy()
343 gso_type = XEN_NETIF_GSO_TYPE_TCPV6; in xenvif_gop_frag_copy()
346 if (*head && ((1 << gso_type) & queue->vif->gso_mask)) in xenvif_gop_frag_copy()
378 int gso_type; in xenvif_gop_skb() local
382 gso_type = XEN_NETIF_GSO_TYPE_NONE; in xenvif_gop_skb()
384 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) in xenvif_gop_skb()
[all …]
Dcommon.h73 int gso_type; member
/linux-4.1.27/net/ipv4/
Dudp_offload.c42 bool need_csum = !!(skb_shinfo(skb)->gso_type & in __skb_udp_tunnel_segment()
44 bool remcsum = !!(skb_shinfo(skb)->gso_type & SKB_GSO_TUNNEL_REMCSUM); in __skb_udp_tunnel_segment()
188 (skb_shinfo(skb)->gso_type & in udp4_ufo_fragment()
203 int type = skb_shinfo(skb)->gso_type; in udp4_ufo_fragment()
407 skb_shinfo(skb)->gso_type |= SKB_GSO_TUNNEL_REMCSUM; in udp_gro_complete()
421 skb_shinfo(skb)->gso_type |= SKB_GSO_UDP_TUNNEL_CSUM; in udp4_gro_complete()
425 skb_shinfo(skb)->gso_type |= SKB_GSO_UDP_TUNNEL; in udp4_gro_complete()
Dtcp_offload.c86 int type = skb_shinfo(skb)->gso_type; in tcp_gso_segment()
285 skb_shinfo(skb)->gso_type |= SKB_GSO_TCP_ECN; in tcp_gro_complete()
311 skb_shinfo(skb)->gso_type |= SKB_GSO_TCPV4; in tcp4_gro_complete()
Dgre_offload.c31 if (unlikely(skb_shinfo(skb)->gso_type & in gre_gso_segment()
236 skb_shinfo(skb)->gso_type = SKB_GSO_GRE; in gre_gro_complete()
Dip_tunnel_core.c136 skb_shinfo(skb)->gso_type |= gso_type_mask; in iptunnel_handle_offloads()
Dgre_demux.c88 !(skb_shinfo(skb)->gso_type & in gre_build_header()
Daf_inet.c1215 if (unlikely(skb_shinfo(skb)->gso_type & in inet_gso_segment()
1259 skb_shinfo(skb)->gso_type & (SKB_GSO_SIT|SKB_GSO_IPIP)) in inet_gso_segment()
Dtcp_output.c380 skb_shinfo(skb)->gso_type |= SKB_GSO_TCP_ECN; in tcp_ecn_send()
406 shinfo->gso_type = 0; in tcp_init_nondata_skb()
1073 shinfo->gso_type = 0; in tcp_set_skb_tso_segs()
1077 shinfo->gso_type = sk->sk_gso_type; in tcp_set_skb_tso_segs()
Dip_output.c831 skb_shinfo(skb)->gso_type = SKB_GSO_UDP; in ip_ufo_append_data()
1217 skb_shinfo(skb)->gso_type = SKB_GSO_UDP; in ip_append_page()
Dtcp_input.c1321 skb_shinfo(prev)->gso_type = sk->sk_gso_type; in tcp_shifted_skb()
1327 skb_shinfo(skb)->gso_type = 0; in tcp_shifted_skb()
/linux-4.1.27/include/uapi/linux/
Dvirtio_net.h93 __u8 gso_type; member
110 __u8 gso_type; member
/linux-4.1.27/net/mpls/
Dmpls_gso.c29 if (unlikely(skb_shinfo(skb)->gso_type & in mpls_gso_segment()
/linux-4.1.27/net/packet/
Daf_packet.c2430 unsigned short gso_type = 0; in packet_snd() local
2489 if (vnet_hdr.gso_type != VIRTIO_NET_HDR_GSO_NONE) { in packet_snd()
2490 switch (vnet_hdr.gso_type & ~VIRTIO_NET_HDR_GSO_ECN) { in packet_snd()
2492 gso_type = SKB_GSO_TCPV4; in packet_snd()
2495 gso_type = SKB_GSO_TCPV6; in packet_snd()
2498 gso_type = SKB_GSO_UDP; in packet_snd()
2504 if (vnet_hdr.gso_type & VIRTIO_NET_HDR_GSO_ECN) in packet_snd()
2505 gso_type |= SKB_GSO_TCP_ECN; in packet_snd()
2522 if (!gso_type && (len > dev->mtu + reserve + VLAN_HLEN + extra_len)) in packet_snd()
2553 if (!gso_type && (len > dev->mtu + reserve + extra_len) && in packet_snd()
[all …]
/linux-4.1.27/include/net/
Dudp_tunnel.h109 skb_shinfo(skb)->gso_type |= uh->check ? in udp_tunnel_gro_complete()
/linux-4.1.27/drivers/net/ethernet/sun/
Dsunvnet.c1124 skb_shinfo(nskb)->gso_type = skb_shinfo(skb)->gso_type; in vnet_skb_shape()
1154 int gso_size, gso_type, gso_segs; in vnet_handle_offloads() local
1175 gso_type = skb_shinfo(skb)->gso_type; in vnet_handle_offloads()
1217 skb_shinfo(curr)->gso_type = gso_type; in vnet_handle_offloads()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-main.h517 #define vxge_offload_type(skb) (skb_shinfo(skb)->gso_type)
/linux-4.1.27/net/openvswitch/
Dflow.c521 skb_shinfo(skb)->gso_type & SKB_GSO_UDP) in key_extract()
638 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP) in key_extract()
Ddatapath.c337 unsigned short gso_type = skb_shinfo(skb)->gso_type; in queue_gso_packets() local
349 if (gso_type & SKB_GSO_UDP) { in queue_gso_packets()
361 if (gso_type & SKB_GSO_UDP && skb != segs) in queue_gso_packets()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c522 if (skb_is_gso(skb) && (skb_shinfo(skb)->gso_type != SKB_GSO_FCOE)) { in ixgbe_fso()
524 skb_shinfo(skb)->gso_type); in ixgbe_fso()
Dixgbe_main.c1564 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in ixgbe_set_rsc_gso_size()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1339 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV6; in qlcnic_process_lro()
1341 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in qlcnic_process_lro()
1862 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV6; in qlcnic_83xx_process_lro()
1864 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in qlcnic_83xx_process_lro()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c1218 if (skb_shinfo(skb)->gso_type != SKB_GSO_FCOE) { in i40e_fcoe_tso()
1221 skb_shinfo(skb)->gso_type); in i40e_fcoe_tso()
/linux-4.1.27/include/linux/
Dskbuff.h322 unsigned short gso_type; member
3378 return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; in skb_is_gso_v6()
3390 unlikely(shinfo->gso_type == 0)) { in skb_warn_if_lro()
Dnetdevice.h3691 static inline bool net_gso_ok(netdev_features_t features, int gso_type) in net_gso_ok() argument
3693 netdev_features_t feature = gso_type << NETIF_F_GSO_SHIFT; in net_gso_ok()
3715 return net_gso_ok(features, skb_shinfo(skb)->gso_type) && in skb_gso_ok()
/linux-4.1.27/Documentation/mic/mpssd/
Dmpssd.c600 copy.out_len, hdr->gso_type); in virtio_net()
665 hdr->gso_type); in virtio_net()
/linux-4.1.27/net/core/
Dskbuff.c1037 skb_shinfo(new)->gso_type = skb_shinfo(old)->gso_type; in copy_skb_header()
4186 if (likely(shinfo->gso_type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6))) in skb_gso_transport_seglen()
4188 } else if (likely(shinfo->gso_type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6))) { in skb_gso_transport_seglen()
Ddev.c2359 skb_shinfo(skb)->gso_type, skb->ip_summed); in skb_warn_bad_offload()
2794 if (likely(shinfo->gso_type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6))) in qdisc_pkt_len_init()
2799 if (shinfo->gso_type & SKB_GSO_DODGY) in qdisc_pkt_len_init()
4219 skb_shinfo(skb)->gso_type = 0; in napi_reuse_skb()
/linux-4.1.27/drivers/net/ethernet/neterion/
Ds2io.h1141 #define s2io_offload_type(skb) skb_shinfo(skb)->gso_type
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe.c1698 skb_shinfo(skb)->gso_type = SKB_GSO_FCOE; in fcoe_xmit()
1701 skb_shinfo(skb)->gso_type = 0; in fcoe_xmit()
/linux-4.1.27/drivers/vhost/
Dnet.c533 .gso_type = VIRTIO_NET_HDR_GSO_NONE in handle_rx()
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c373 skb_shinfo(skb)->gso_type = SKB_GSO_FCOE; in bnx2fc_xmit()
376 skb_shinfo(skb)->gso_type = 0; in bnx2fc_xmit()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1624 (skb_shinfo(skb)->gso_type == SKB_GSO_TCPV6)) { in atl1e_cal_tdp_req()
1652 offload_type = skb_shinfo(skb)->gso_type; in atl1e_tso_csum()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c1963 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) in atl1c_cal_tpd_req()
1986 offload_type = skb_shinfo(skb)->gso_type; in atl1c_tso_csum()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c522 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV6; in bnx2x_set_gro_params()
525 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in bnx2x_set_gro_params()
3783 ip_hdr(skb)->protocol, skb_shinfo(skb)->gso_type, xmit_type, in bnx2x_start_xmit()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1272 bool v6 = (ssi->gso_type & SKB_GSO_TCPV6) != 0; in t4vf_eth_xmit()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1209 bool v6 = (ssi->gso_type & SKB_GSO_TCPV6) != 0; in t4_eth_xmit()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbnx2.c6611 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) { in bnx2_start_xmit()