diff options
author | David S. Miller | 2017-07-03 16:29:12 +0200 |
---|---|---|
committer | David S. Miller | 2017-07-17 18:52:58 +0200 |
commit | 880388aa3c07fdea4f9b85e35641753017b1852f (patch) | |
tree | 767dee04d3a7aae805a6f32b005b727ad318b873 /net/core/filter.c | |
parent | inet: Stop generating UFO packets. (diff) | |
download | kernel-qcow2-linux-880388aa3c07fdea4f9b85e35641753017b1852f.tar.gz kernel-qcow2-linux-880388aa3c07fdea4f9b85e35641753017b1852f.tar.xz kernel-qcow2-linux-880388aa3c07fdea4f9b85e35641753017b1852f.zip |
net: Remove all references to SKB_GSO_UDP.
Such packets are no longer possible.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/filter.c')
-rw-r--r-- | net/core/filter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index e23aa6fa1119..29e690cbe820 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -2051,8 +2051,8 @@ static int bpf_skb_proto_4_to_6(struct sk_buff *skb) return ret; if (skb_is_gso(skb)) { - /* SKB_GSO_UDP stays as is. SKB_GSO_TCPV4 needs to - * be changed into SKB_GSO_TCPV6. + /* SKB_GSO_TCPV4 needs to be changed into + * SKB_GSO_TCPV6. */ if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) { skb_shinfo(skb)->gso_type &= ~SKB_GSO_TCPV4; @@ -2087,8 +2087,8 @@ static int bpf_skb_proto_6_to_4(struct sk_buff *skb) return ret; if (skb_is_gso(skb)) { - /* SKB_GSO_UDP stays as is. SKB_GSO_TCPV6 needs to - * be changed into SKB_GSO_TCPV4. + /* SKB_GSO_TCPV6 needs to be changed into + * SKB_GSO_TCPV4. */ if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) { skb_shinfo(skb)->gso_type &= ~SKB_GSO_TCPV6; |