diff options
author | Jarno Rajahalme <jarno@ovn.org> | 2016-05-04 02:10:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-07 01:25:26 +0300 |
commit | 43b8448cd7b42a4c39476c9a12c960c1408f1946 (patch) | |
tree | f233f2f38ab8d6038855ae784012080cea201396 /include/net/udp_tunnel.h | |
parent | 8e0ddc040a87a3b700bdf67394d24fe30a0f1eb9 (diff) | |
download | linux-43b8448cd7b42a4c39476c9a12c960c1408f1946.tar.xz |
udp_tunnel: Remove redundant udp_tunnel_gro_complete().
The setting of the UDP tunnel GSO type is already performed by
udp[46]_gro_complete().
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/udp_tunnel.h')
-rw-r--r-- | include/net/udp_tunnel.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/net/udp_tunnel.h b/include/net/udp_tunnel.h index b83114077cee..a1140249ec25 100644 --- a/include/net/udp_tunnel.h +++ b/include/net/udp_tunnel.h @@ -106,15 +106,6 @@ static inline struct sk_buff *udp_tunnel_handle_offloads(struct sk_buff *skb, return iptunnel_handle_offloads(skb, type); } -static inline void udp_tunnel_gro_complete(struct sk_buff *skb, int nhoff) -{ - struct udphdr *uh; - - uh = (struct udphdr *)(skb->data + nhoff - sizeof(struct udphdr)); - skb_shinfo(skb)->gso_type |= uh->check ? - SKB_GSO_UDP_TUNNEL_CSUM : SKB_GSO_UDP_TUNNEL; -} - static inline void udp_tunnel_encap_enable(struct socket *sock) { #if IS_ENABLED(CONFIG_IPV6) |