Skip to content

Commit 647d4c1

Browse files
dsaherndavem330
authored andcommitted
net/ipv6: Remove compare of fib6_idev from rt6_duplicate_nexthop
After 4832c30 ("net: ipv6: put host and anycast routes on device with address") the comparison of idev does not add value since it correlates to the nexthop device which is already compared. Remove the idev comparison. Signed-off-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6fe7494 commit 647d4c1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/net/ip6_route.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt,
275275
static inline bool rt6_duplicate_nexthop(struct fib6_info *a, struct fib6_info *b)
276276
{
277277
return a->fib6_nh.nh_dev == b->fib6_nh.nh_dev &&
278-
a->fib6_idev == b->fib6_idev &&
279278
ipv6_addr_equal(&a->fib6_nh.nh_gw, &b->fib6_nh.nh_gw) &&
280279
!lwtunnel_cmp_encap(a->fib6_nh.nh_lwtstate, b->fib6_nh.nh_lwtstate);
281280
}

0 commit comments

Comments
 (0)