kernel/include/linux/virtio_net.h
.. .. @@ -148,6 +148,10 @@ 148 148 if (gso_type & SKB_GSO_UDP) 149 149 nh_off -= thlen; 150 150 151 + /* Kernel has a special handling for GSO_BY_FRAGS. */152 + if (gso_size == GSO_BY_FRAGS)153 + return -EINVAL;154 +151 155 /* Too small packets are not really GSO ones. */ 152 156 if (skb->len - nh_off > gso_size) { 153 157 shinfo->gso_size = gso_size;