Repository navigation
Commit 6d3d07b
ipv6: Refactor fib6_ignore_linkdown
fib6_ignore_linkdown takes a fib6_info but only looks at the net_device
and its IPv6 config. Change it to take a net_device over a fib6_info as
its input argument.
In addition, move it to a header file to make the check inline and usable
later with IPv4 code without going through the ipv6 stub, and rename to
ip6_ignore_linkdown since it is only checking the setting based on the
ipv6 struct on a device.
Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 2b2450c commit 6d3d07b
2 files changed
Lines changed: 11 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
428 | 436 | | |
429 | 437 | | |
430 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | 642 | | |
658 | 643 | | |
659 | 644 | | |
| |||
664 | 649 | | |
665 | 650 | | |
666 | 651 | | |
667 | | - | |
| 652 | + | |
668 | 653 | | |
669 | 654 | | |
670 | 655 | | |
| |||
3875 | 3860 | | |
3876 | 3861 | | |
3877 | 3862 | | |
3878 | | - | |
| 3863 | + | |
3879 | 3864 | | |
3880 | 3865 | | |
3881 | 3866 | | |
| |||
4608 | 4593 | | |
4609 | 4594 | | |
4610 | 4595 | | |
4611 | | - | |
| 4596 | + | |
4612 | 4597 | | |
4613 | 4598 | | |
4614 | 4599 | | |
| |||
0 commit comments