Commit 5374a50
mlxsw: Convert does-RIF-have-this-netdev queries to a dedicated helper
In a number of places, a netdevice underlying a RIF is obtained only to
compare it to another pointer. In order to clean up the interface between
the router and the other modules, add a new helper to specifically answer
this question, and convert the relevant uses to this new interface.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 0255f74 commit 5374a50
3 files changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | | - | |
| 707 | + | |
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
| 712 | + | |
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
721 | 720 | | |
722 | 721 | | |
723 | 722 | | |
724 | 723 | | |
725 | 724 | | |
726 | | - | |
| 725 | + | |
727 | 726 | | |
728 | 727 | | |
729 | 728 | | |
| |||
733 | 732 | | |
734 | 733 | | |
735 | 734 | | |
736 | | - | |
737 | 735 | | |
738 | 736 | | |
739 | 737 | | |
740 | 738 | | |
741 | 739 | | |
742 | | - | |
| 740 | + | |
743 | 741 | | |
744 | 742 | | |
745 | 743 | | |
| |||
748 | 746 | | |
749 | 747 | | |
750 | 748 | | |
751 | | - | |
752 | 749 | | |
753 | 750 | | |
754 | 751 | | |
| |||
758 | 755 | | |
759 | 756 | | |
760 | 757 | | |
761 | | - | |
| 758 | + | |
762 | 759 | | |
763 | 760 | | |
764 | 761 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7705 | 7705 | | |
7706 | 7706 | | |
7707 | 7707 | | |
7708 | | - | |
| 7708 | + | |
7709 | 7709 | | |
7710 | 7710 | | |
7711 | 7711 | | |
| |||
8085 | 8085 | | |
8086 | 8086 | | |
8087 | 8087 | | |
| 8088 | + | |
| 8089 | + | |
| 8090 | + | |
| 8091 | + | |
| 8092 | + | |
| 8093 | + | |
8088 | 8094 | | |
8089 | 8095 | | |
8090 | 8096 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
0 commit comments