Commit 256f5cd
mptcp: add TCP_MAXSEG sockopt support
The TCP_MAXSEG socket option is currently not supported by MPTCP, mainly
because it has never been requested before. But there are still valid
use-cases, e.g. with HAProxy.
This patch adds its support in MPTCP by propagating the value to all
subflows.
Similar to mptcp_setsockopt_first_sf_only(), a generic helper
mptcp_setsockopt_all_subflows() is added to set sockopt for each
subflows of the mptcp socket.
Add a new member for struct mptcp_sock to store the TCP_MAXSEG value,
and return this value in getsockopt.
Closes: multipath-tcp/mptcp_net-next#515
Signed-off-by: Geliang Tang <[email protected]>1 parent 8b8b4f7 commit 256f5cd
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
801 | 817 | | |
802 | 818 | | |
803 | 819 | | |
| |||
859 | 875 | | |
860 | 876 | | |
861 | 877 | | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
862 | 883 | | |
863 | 884 | | |
864 | 885 | | |
| |||
1406 | 1427 | | |
1407 | 1428 | | |
1408 | 1429 | | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1409 | 1433 | | |
1410 | 1434 | | |
1411 | 1435 | | |
| |||
1552 | 1576 | | |
1553 | 1577 | | |
1554 | 1578 | | |
| 1579 | + | |
1555 | 1580 | | |
1556 | 1581 | | |
1557 | 1582 | | |
| |||
0 commit comments