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
@@ -1359,7 +1359,7 @@ static int __tcp_transmit_skb(struct sock *sk, struct sk_buff *skb,
|
||||
#ifdef CONFIG_TCP_MD5SIG
|
||||
/* Calculate the MD5 hash, as we have all we need now */
|
||||
if (md5) {
|
||||
sk_nocaps_add(sk, NETIF_F_GSO_MASK);
|
||||
sk_gso_disable(sk);
|
||||
tp->af_specific->calc_md5_hash(opts.hash_location,
|
||||
md5, sk, skb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user