Thread (8 messages) flat view 8 messages, 2 authors, 2017-07-07

Re: [PATCH RFC 11/12] net: Remove all references to SKB_GSO_UDP.

From: David Miller <davem@davemloft.net>
Date: 2017-07-06 14:20:27

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: Wed, 5 Jul 2017 13:21:02 -0400
On Wed, Jul 5, 2017 at 12:06 PM, Willem de Bruijn
[off-list ref] wrote:
quoted
quoted
diff --git a/include/linux/virtio_net.h b/include/linux/virtio_net.h
index 5209b5e..32fb046 100644
--- a/include/linux/virtio_net.h
+++ b/include/linux/virtio_net.h
@@ -18,9 +18,6 @@ static inline int virtio_net_hdr_to_skb(struct sk_buff *skb,
                case VIRTIO_NET_HDR_GSO_TCPV6:
                        gso_type = SKB_GSO_TCPV6;
                        break;
-               case VIRTIO_NET_HDR_GSO_UDP:
-                       gso_type = SKB_GSO_UDP;
-                       break;
Virtio devices negotiate feature support before using this, but
tuntap and pf_packet may be passing these packets unconditionally.
Perhaps we should fragment those on the spot with skb_segment.
Tun has ioctl TUNSETIFF to probe for features and it can be argued
that packet sockets should query device features with ethtool before
relying on them. So perhaps we don't need to fix this up, after all.
Yes, this is the same thought process I went through, and the same
conclusion I arrived at. :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help