Lines Matching refs:gso_type
1105 unsigned short gso_type = 0;
1162 if (vnet_hdr.gso_type != VIRTIO_NET_HDR_GSO_NONE) {
1163 switch (vnet_hdr.gso_type & ~VIRTIO_NET_HDR_GSO_ECN) {
1165 gso_type = SKB_GSO_TCPV4;
1168 gso_type = SKB_GSO_TCPV6;
1171 gso_type = SKB_GSO_UDP;
1177 if (vnet_hdr.gso_type & VIRTIO_NET_HDR_GSO_ECN)
1178 gso_type |= SKB_GSO_TCP_ECN;
1187 if (!gso_type && (len > dev->mtu+reserve))
1227 skb_shinfo(skb)->gso_type = gso_type;
1230 skb_shinfo(skb)->gso_type |= SKB_GSO_DODGY;
1615 if (sinfo->gso_type & SKB_GSO_TCPV4)
1616 vnet_hdr.gso_type = VIRTIO_NET_HDR_GSO_TCPV4;
1617 else if (sinfo->gso_type & SKB_GSO_TCPV6)
1618 vnet_hdr.gso_type = VIRTIO_NET_HDR_GSO_TCPV6;
1619 else if (sinfo->gso_type & SKB_GSO_UDP)
1620 vnet_hdr.gso_type = VIRTIO_NET_HDR_GSO_UDP;
1621 else if (sinfo->gso_type & SKB_GSO_FCOE)
1625 if (sinfo->gso_type & SKB_GSO_TCP_ECN)
1626 vnet_hdr.gso_type |= VIRTIO_NET_HDR_GSO_ECN;
1628 vnet_hdr.gso_type = VIRTIO_NET_HDR_GSO_NONE;