mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04: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:
parent
d0d598ca86
commit
aba546565b
5 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue