Commit 465bac9
ipv4: Use rtnl_register_many().
We will remove rtnl_register() in favour of rtnl_register_many().
When it succeeds, rtnl_register_many() guarantees all rtnetlink types
in the passed array are supported, and there is no chance that a part
of message types is not supported.
Let's use rtnl_register_many() instead.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241014201828.91221-7-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 803838a commit 465bac9
File tree
5 files changed
+55
-33
lines changed- net
- core
- ipv4
5 files changed
+55
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1294 | 1301 | | |
1295 | 1302 | | |
1296 | 1303 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
| 1304 | + | |
| 1305 | + | |
1301 | 1306 | | |
1302 | 1307 | | |
1303 | 1308 | | |
| |||
1312 | 1317 | | |
1313 | 1318 | | |
1314 | 1319 | | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
| 1320 | + | |
1318 | 1321 | | |
1319 | 1322 | | |
1320 | 1323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2797 | 2797 | | |
2798 | 2798 | | |
2799 | 2799 | | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
2800 | 2810 | | |
2801 | 2811 | | |
2802 | 2812 | | |
2803 | 2813 | | |
2804 | 2814 | | |
2805 | 2815 | | |
2806 | 2816 | | |
2807 | | - | |
2808 | | - | |
2809 | | - | |
2810 | | - | |
2811 | | - | |
2812 | | - | |
2813 | | - | |
| 2817 | + | |
2814 | 2818 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
1652 | 1661 | | |
1653 | 1662 | | |
1654 | 1663 | | |
| |||
1658 | 1667 | | |
1659 | 1668 | | |
1660 | 1669 | | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
| 1670 | + | |
1665 | 1671 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4042 | 4042 | | |
4043 | 4043 | | |
4044 | 4044 | | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
4045 | 4062 | | |
4046 | 4063 | | |
4047 | 4064 | | |
4048 | 4065 | | |
4049 | 4066 | | |
4050 | 4067 | | |
4051 | | - | |
4052 | | - | |
4053 | | - | |
4054 | | - | |
4055 | | - | |
4056 | | - | |
4057 | | - | |
4058 | | - | |
4059 | | - | |
4060 | | - | |
4061 | | - | |
4062 | | - | |
4063 | | - | |
| 4068 | + | |
4064 | 4069 | | |
4065 | 4070 | | |
4066 | 4071 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3632 | 3632 | | |
3633 | 3633 | | |
3634 | 3634 | | |
| 3635 | + | |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
3635 | 3640 | | |
3636 | 3641 | | |
3637 | 3642 | | |
| |||
3689 | 3694 | | |
3690 | 3695 | | |
3691 | 3696 | | |
3692 | | - | |
3693 | | - | |
| 3697 | + | |
3694 | 3698 | | |
3695 | 3699 | | |
3696 | 3700 | | |
| |||
0 commit comments