diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2018-11-12 19:17:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-15 14:41:22 -0500 |
commit | 6ab6dfa6bb500f5cbb9b7a0f23a1613417ca2d12 (patch) | |
tree | 7222e6edbc4c24c46144a05a626f7f192a2eb6f4 /include/net/tcp.h | |
parent | 5c72299fba9df407c2f2994e194edebf878996ee (diff) |
net: get rid of __tcp_checksum_complete()
__tcp_checksum_complete() is 100% same with __skb_checksum_complete()
and there is no other caller except tcp_checksum_complete().
So, just use __skb_checksum_complete() there.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 4743836bed2e..b84b694e8b3d 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1315,15 +1315,10 @@ static inline __sum16 tcp_v4_check(int len, __be32 saddr, | |||
1315 | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); | 1315 | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
1316 | } | 1316 | } |
1317 | 1317 | ||
1318 | static inline __sum16 __tcp_checksum_complete(struct sk_buff *skb) | ||
1319 | { | ||
1320 | return __skb_checksum_complete(skb); | ||
1321 | } | ||
1322 | |||
1323 | static inline bool tcp_checksum_complete(struct sk_buff *skb) | 1318 | static inline bool tcp_checksum_complete(struct sk_buff *skb) |
1324 | { | 1319 | { |
1325 | return !skb_csum_unnecessary(skb) && | 1320 | return !skb_csum_unnecessary(skb) && |
1326 | __tcp_checksum_complete(skb); | 1321 | __skb_checksum_complete(skb); |
1327 | } | 1322 | } |
1328 | 1323 | ||
1329 | bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb); | 1324 | bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb); |