|
@@ -1018,7 +1018,7 @@ int tcp_sendpage(struct sock *sk, struct page *page, int offset,
|
|
|
ssize_t res;
|
|
|
|
|
|
if (!(sk->sk_route_caps & NETIF_F_SG) ||
|
|
|
- !(sk->sk_route_caps & NETIF_F_CSUM_MASK))
|
|
|
+ !sk_check_csum_caps(sk))
|
|
|
return sock_no_sendpage(sk->sk_socket, page, offset, size,
|
|
|
flags);
|
|
|
|
|
@@ -1175,7 +1175,7 @@ new_segment:
|
|
|
/*
|
|
|
* Check whether we can use HW checksum.
|
|
|
*/
|
|
|
- if (sk->sk_route_caps & NETIF_F_CSUM_MASK)
|
|
|
+ if (sk_check_csum_caps(sk))
|
|
|
skb->ip_summed = CHECKSUM_PARTIAL;
|
|
|
|
|
|
skb_entail(sk, skb);
|