• David Ahern's avatar
    net/ipv6: Remove unnecessary checks on fib6_idev · eea68cd3
    David Ahern authored
    Prior to 4832c30d ("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 4832c30d 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: default avatarDavid Ahern <dsahern@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    eea68cd3
route.c 128 KB