ipv6: Refactor rt6_device_match
authorDavid Ahern <dsahern@gmail.com>
Tue, 9 Apr 2019 21:41:18 +0000 (14:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 21:24:07 +0000 (14:24 -0700)
commit0c59d00675874f9ee7a0371ad9d9b69386ea2d03
tree67f248d29d40dc7f73f6bdec02cd14c188629a80
parentd83009d462a68ad908a51e1690d46917cbad0440
ipv6: Refactor rt6_device_match

Move the device and gateway checks in the fib6_next loop to a helper
that can be called per fib6_nh entry.

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