mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ip: Make use of the inline function dst_metric_locked()
Signed-off-by: Satoru SATOH <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1e0ba0060f
commit
0bbeafd011
2 changed files with 2 additions and 2 deletions
|
|
@ -1613,7 +1613,7 @@ static void rt_set_nexthop(struct rtable *rt, struct fib_result *res, u32 itag)
|
|||
sizeof(rt->u.dst.metrics));
|
||||
if (fi->fib_mtu == 0) {
|
||||
rt->u.dst.metrics[RTAX_MTU-1] = rt->u.dst.dev->mtu;
|
||||
if (rt->u.dst.metrics[RTAX_LOCK-1] & (1 << RTAX_MTU) &&
|
||||
if (dst_metric_locked(&rt->u.dst, RTAX_MTU) &&
|
||||
rt->rt_gateway != rt->rt_dst &&
|
||||
rt->u.dst.dev->mtu > 576)
|
||||
rt->u.dst.metrics[RTAX_MTU-1] = 576;
|
||||
|
|
|
|||
Loading…
Reference in a new issue