Commit af51a65
mptcp: add mptcp_pm_genl_fill_addr helper
To save some redundant code in dump_addr() interfaces of both the
netlink PM and userspace PM, the code that calls netlink message
helpers (genlmsg_put/cancel/end) and mptcp_nl_fill_addr() is wrapped
into a new helper mptcp_pm_genl_fill_addr().
This helper will also be used in BPF path managers.
Signed-off-by: Geliang Tang <[email protected]>1 parent 6667e65 commit af51a65
4 files changed
+26
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
492 | 513 | | |
493 | 514 | | |
494 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1798 | 1798 | | |
1799 | 1799 | | |
1800 | 1800 | | |
1801 | | - | |
1802 | 1801 | | |
1803 | 1802 | | |
1804 | 1803 | | |
| |||
1813 | 1812 | | |
1814 | 1813 | | |
1815 | 1814 | | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
| 1815 | + | |
1820 | 1816 | | |
1821 | 1817 | | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | 1818 | | |
1828 | | - | |
1829 | 1819 | | |
1830 | 1820 | | |
1831 | 1821 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
645 | 644 | | |
646 | 645 | | |
647 | 646 | | |
| |||
657 | 656 | | |
658 | 657 | | |
659 | 658 | | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
| 659 | + | |
664 | 660 | | |
665 | 661 | | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | 662 | | |
672 | | - | |
673 | 663 | | |
674 | 664 | | |
675 | 665 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
1134 | 1137 | | |
1135 | 1138 | | |
1136 | 1139 | | |
| |||
0 commit comments