mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
net: remove sk_route_nocaps
Instead of using a full netdev_features_t, we can use a single bit, as sk_route_nocaps is only used to remove NETIF_F_GSO_MASK from sk->sk_route_cap. 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
d0d598ca86
commit
aba546565b
@@ -1182,7 +1182,7 @@ int tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
|
||||
if (!md5sig)
|
||||
return -ENOMEM;
|
||||
|
||||
sk_nocaps_add(sk, NETIF_F_GSO_MASK);
|
||||
sk_gso_disable(sk);
|
||||
INIT_HLIST_HEAD(&md5sig->head);
|
||||
rcu_assign_pointer(tp->md5sig_info, md5sig);
|
||||
}
|
||||
@@ -1620,7 +1620,7 @@ struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
|
||||
*/
|
||||
tcp_md5_do_add(newsk, addr, AF_INET, 32, l3index, key->flags,
|
||||
key->key, key->keylen, GFP_ATOMIC);
|
||||
sk_nocaps_add(newsk, NETIF_F_GSO_MASK);
|
||||
sk_gso_disable(newsk);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user