]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Remove unnecessary checks on fib6_idev
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Apr 2018 22:39:02 +0000 (15:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 19:40:13 +0000 (15:40 -0400)
commitb55c35ff1c9e65d94d4368e958bf312b4feae490
tree37b2c7aa3cbf7e155ee980f83a1fc362bd38058b
parent89c506bbf39417ea3a001c98d023ad1b19c0130d
net/ipv6: Remove unnecessary checks on fib6_idev

Prior to 1ad23e7d336a ("net: ipv6: put host and anycast routes on device
with address") host routes and anycast routes were installed with the
device set to loopback (or VRF device once that feature was added). In the
older code dst.dev was set to loopback (needed for packet tx) and rt6i_idev
was used to denote the actual interface.

Commit 1ad23e7d336a changed the code to have dst.dev pointing to the real
device with the switch to lo or vrf device done on dst clones. As a
consequence of this change a couple of device checks during route lookups
are no longer needed. Remove them.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c