tcp: remove sk_check_csum_caps()
Since TCP relies on GSO, we do not need this helper anymore. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
74d4a8f8d3
commit
dead7cdb0d
@@ -1863,15 +1863,6 @@ static inline void sk_nocaps_add(struct sock *sk, netdev_features_t flags)
|
||||
sk->sk_route_caps &= ~flags;
|
||||
}
|
||||
|
||||
static inline bool sk_check_csum_caps(struct sock *sk)
|
||||
{
|
||||
return (sk->sk_route_caps & NETIF_F_HW_CSUM) ||
|
||||
(sk->sk_family == PF_INET &&
|
||||
(sk->sk_route_caps & NETIF_F_IP_CSUM)) ||
|
||||
(sk->sk_family == PF_INET6 &&
|
||||
(sk->sk_route_caps & NETIF_F_IPV6_CSUM));
|
||||
}
|
||||
|
||||
static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb,
|
||||
struct iov_iter *from, char *to,
|
||||
int copy, int offset)
|
||||
|
Reference in New Issue
Block a user