Lines Matching refs:gso_type
376 unsigned short gso_type = 0;
377 if (vnet_hdr->gso_type != VIRTIO_NET_HDR_GSO_NONE) {
378 switch (vnet_hdr->gso_type & ~VIRTIO_NET_HDR_GSO_ECN) {
380 gso_type = SKB_GSO_TCPV4;
383 gso_type = SKB_GSO_TCPV6;
386 gso_type = SKB_GSO_UDP;
392 if (vnet_hdr->gso_type & VIRTIO_NET_HDR_GSO_ECN)
393 gso_type |= SKB_GSO_TCP_ECN;
405 if (vnet_hdr->gso_type != VIRTIO_NET_HDR_GSO_NONE) {
407 skb_shinfo(skb)->gso_type = gso_type;
410 skb_shinfo(skb)->gso_type |= SKB_GSO_DODGY;
427 if (sinfo->gso_type & SKB_GSO_TCPV4)
428 vnet_hdr->gso_type = VIRTIO_NET_HDR_GSO_TCPV4;
429 else if (sinfo->gso_type & SKB_GSO_TCPV6)
430 vnet_hdr->gso_type = VIRTIO_NET_HDR_GSO_TCPV6;
431 else if (sinfo->gso_type & SKB_GSO_UDP)
432 vnet_hdr->gso_type = VIRTIO_NET_HDR_GSO_UDP;
435 if (sinfo->gso_type & SKB_GSO_TCP_ECN)
436 vnet_hdr->gso_type |= VIRTIO_NET_HDR_GSO_ECN;
438 vnet_hdr->gso_type = VIRTIO_NET_HDR_GSO_NONE;