mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
ip: Make use of the inline function dst_metric_locked()
Signed-off-by: Satoru SATOH <satoru.satoh@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1e0ba0060f
commit
0bbeafd011
2 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ int ip_dont_fragment(struct sock *sk, struct dst_entry *dst)
|
|||
{
|
||||
return (inet_sk(sk)->pmtudisc == IP_PMTUDISC_DO ||
|
||||
(inet_sk(sk)->pmtudisc == IP_PMTUDISC_WANT &&
|
||||
!(dst_metric(dst, RTAX_LOCK)&(1<<RTAX_MTU))));
|
||||
!(dst_metric_locked(dst, RTAX_MTU))));
|
||||
}
|
||||
|
||||
extern void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue