Commit 4560cf4
mlxsw: spectrum_router: Replay IP NETDEV_UP on device deslavement
When a netdevice is removed from a bridge or a LAG, and it has an IP
address, it should join the router and gain a RIF. Do that by replaying
address addition event on the netdevice.
When handling deslavement of LAG or its upper from a bridge device, the
replay should be done after all the lowers of the LAG have left the bridge.
Thus these scenarios are handled by passing replay_deslavement of false,
and by invoking, after the lowers have been processed, a new helper,
mlxsw_sp_netdevice_post_lag_event(), which does the per-LAG / -upper
handling, and in particular invokes the replay.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 31618b2 commit 4560cf4
3 files changed
Lines changed: 65 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4838 | 4838 | | |
4839 | 4839 | | |
4840 | 4840 | | |
4841 | | - | |
| 4841 | + | |
4842 | 4842 | | |
4843 | 4843 | | |
4844 | 4844 | | |
4845 | 4845 | | |
4846 | | - | |
| 4846 | + | |
4847 | 4847 | | |
4848 | 4848 | | |
4849 | 4849 | | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
| 4853 | + | |
| 4854 | + | |
4850 | 4855 | | |
4851 | 4856 | | |
4852 | 4857 | | |
| |||
4855 | 4860 | | |
4856 | 4861 | | |
4857 | 4862 | | |
| 4863 | + | |
| 4864 | + | |
4858 | 4865 | | |
4859 | 4866 | | |
4860 | 4867 | | |
| |||
4924 | 4931 | | |
4925 | 4932 | | |
4926 | 4933 | | |
| 4934 | + | |
| 4935 | + | |
| 4936 | + | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
| 4943 | + | |
| 4944 | + | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
| 4954 | + | |
| 4955 | + | |
| 4956 | + | |
| 4957 | + | |
4927 | 4958 | | |
4928 | 4959 | | |
4929 | 4960 | | |
| |||
4940 | 4971 | | |
4941 | 4972 | | |
4942 | 4973 | | |
4943 | | - | |
| 4974 | + | |
4944 | 4975 | | |
4945 | 4976 | | |
4946 | 4977 | | |
| |||
4984 | 5015 | | |
4985 | 5016 | | |
4986 | 5017 | | |
4987 | | - | |
| 5018 | + | |
4988 | 5019 | | |
4989 | 5020 | | |
4990 | 5021 | | |
4991 | 5022 | | |
4992 | | - | |
| 5023 | + | |
4993 | 5024 | | |
4994 | 5025 | | |
4995 | 5026 | | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
| 5030 | + | |
| 5031 | + | |
4996 | 5032 | | |
4997 | 5033 | | |
4998 | 5034 | | |
| |||
5022 | 5058 | | |
5023 | 5059 | | |
5024 | 5060 | | |
5025 | | - | |
| 5061 | + | |
5026 | 5062 | | |
5027 | 5063 | | |
5028 | 5064 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9785 | 9785 | | |
9786 | 9786 | | |
9787 | 9787 | | |
| 9788 | + | |
9788 | 9789 | | |
9789 | 9790 | | |
9790 | 9791 | | |
9791 | 9792 | | |
9792 | 9793 | | |
9793 | 9794 | | |
| 9795 | + | |
9794 | 9796 | | |
9795 | 9797 | | |
9796 | 9798 | | |
| |||
9805 | 9807 | | |
9806 | 9808 | | |
9807 | 9809 | | |
9808 | | - | |
| 9810 | + | |
9809 | 9811 | | |
9810 | 9812 | | |
9811 | 9813 | | |
| |||
9817 | 9819 | | |
9818 | 9820 | | |
9819 | 9821 | | |
| 9822 | + | |
9820 | 9823 | | |
9821 | 9824 | | |
9822 | 9825 | | |
| |||
9833 | 9836 | | |
9834 | 9837 | | |
9835 | 9838 | | |
9836 | | - | |
| 9839 | + | |
| 9840 | + | |
9837 | 9841 | | |
9838 | 9842 | | |
9839 | 9843 | | |
| |||
9846 | 9850 | | |
9847 | 9851 | | |
9848 | 9852 | | |
| 9853 | + | |
9849 | 9854 | | |
9850 | 9855 | | |
9851 | 9856 | | |
| |||
9872 | 9877 | | |
9873 | 9878 | | |
9874 | 9879 | | |
| 9880 | + | |
| 9881 | + | |
| 9882 | + | |
| 9883 | + | |
| 9884 | + | |
| 9885 | + | |
| 9886 | + | |
| 9887 | + | |
| 9888 | + | |
| 9889 | + | |
| 9890 | + | |
| 9891 | + | |
| 9892 | + | |
| 9893 | + | |
9875 | 9894 | | |
9876 | 9895 | | |
9877 | 9896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
0 commit comments