Repository navigation
Commit 43b54c6
mptcp: Use full MPTCP-level disconnect state machine
RFC 8684 appendix D describes the connection state machine for
MPTCP. This patch implements the DATA_FIN / DATA_ACK exchanges and
MPTCP-level socket state changes described in that appendix, rather than
simply sending DATA_FIN along with TCP FIN when disconnecting subflows.
DATA_FIN is now sent and acknowledged before shutting down the
subflows. Received DATA_FIN information (if not part of a data packet)
is written to the MPTCP socket when the incoming DSS option is parsed by
the subflow, and the MPTCP worker is scheduled to process the
flag. DATA_FIN received as part of a full DSS mapping will be handled
when the mapping is processed.
The DATA_FIN is acknowledged by the worker if the reader is caught
up. If there is still data to be moved to the MPTCP-level queue, ack_seq
will be incremented to account for the DATA_FIN when it reaches the end
of the stream and a DATA_ACK will be sent to the peer.
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 16a9a9d commit 43b54c6
3 files changed
Lines changed: 92 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
871 | 882 | | |
872 | 883 | | |
873 | 884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
384 | 393 | | |
385 | 394 | | |
386 | 395 | | |
| |||
466 | 475 | | |
467 | 476 | | |
468 | 477 | | |
469 | | - | |
| 478 | + | |
| 479 | + | |
470 | 480 | | |
471 | 481 | | |
472 | 482 | | |
| |||
1384 | 1394 | | |
1385 | 1395 | | |
1386 | 1396 | | |
| 1397 | + | |
1387 | 1398 | | |
1388 | 1399 | | |
1389 | 1400 | | |
| |||
1393 | 1404 | | |
1394 | 1405 | | |
1395 | 1406 | | |
| 1407 | + | |
| 1408 | + | |
1396 | 1409 | | |
1397 | 1410 | | |
1398 | 1411 | | |
| |||
1515 | 1528 | | |
1516 | 1529 | | |
1517 | 1530 | | |
1518 | | - | |
| 1531 | + | |
1519 | 1532 | | |
1520 | 1533 | | |
1521 | 1534 | | |
| |||
1528 | 1541 | | |
1529 | 1542 | | |
1530 | 1543 | | |
1531 | | - | |
1532 | | - | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1533 | 1553 | | |
1534 | 1554 | | |
1535 | 1555 | | |
| |||
1570 | 1590 | | |
1571 | 1591 | | |
1572 | 1592 | | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
1573 | 1615 | | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
1574 | 1619 | | |
1575 | 1620 | | |
| 1621 | + | |
1576 | 1622 | | |
1577 | 1623 | | |
1578 | 1624 | | |
| |||
1581 | 1627 | | |
1582 | 1628 | | |
1583 | 1629 | | |
1584 | | - | |
1585 | | - | |
1586 | 1630 | | |
1587 | 1631 | | |
1588 | 1632 | | |
| |||
2265 | 2309 | | |
2266 | 2310 | | |
2267 | 2311 | | |
2268 | | - | |
2269 | | - | |
2270 | 2312 | | |
2271 | 2313 | | |
2272 | | - | |
2273 | 2314 | | |
2274 | 2315 | | |
2275 | 2316 | | |
| |||
2283 | 2324 | | |
2284 | 2325 | | |
2285 | 2326 | | |
2286 | | - | |
2287 | | - | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
2288 | 2331 | | |
2289 | | - | |
2290 | | - | |
| 2332 | + | |
| 2333 | + | |
2291 | 2334 | | |
2292 | | - | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
2293 | 2352 | | |
2294 | 2353 | | |
2295 | 2354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
| 602 | + | |
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
| |||
648 | 649 | | |
649 | 650 | | |
650 | 651 | | |
651 | | - | |
| 652 | + | |
| 653 | + | |
652 | 654 | | |
653 | 655 | | |
654 | 656 | | |
| |||
660 | 662 | | |
661 | 663 | | |
662 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
663 | 668 | | |
664 | 669 | | |
665 | 670 | | |
| |||
748 | 753 | | |
749 | 754 | | |
750 | 755 | | |
751 | | - | |
| 756 | + | |
752 | 757 | | |
753 | 758 | | |
754 | 759 | | |
| |||
0 commit comments