Commit d848a3c
mptcp: implement IPV6_TCLASS socket option support
This patch adds full support for the IPV6_TCLASS socket option in MPTCP,
ensuring consistent traffic class handling across all subflows.
Key changes:
1. setsockopt(IPV6_TCLASS):
- First sets the traffic class value on the main MPTCP socket
- Propagates the new value to all existing subflows
- Uses lock synchronization to ensure atomic updates
2. getsockopt(IPV6_TCLASS):
- Returns the current traffic class value stored in the main socket's
inet6_sk structure
This implementation mirrors the existing IPv4 TOS handling (IP_TOS) and
ensures QoS settings are consistently applied to all underlying TCP
connections in the MPTCP session.
Closes: multipath-tcp/mptcp_net-next#568
Signed-off-by: Geliang Tang <[email protected]>1 parent d278e28 commit d848a3c
1 file changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
387 | 414 | | |
388 | 415 | | |
389 | 416 | | |
| |||
426 | 453 | | |
427 | 454 | | |
428 | 455 | | |
| 456 | + | |
| 457 | + | |
429 | 458 | | |
430 | 459 | | |
431 | 460 | | |
| |||
1475 | 1504 | | |
1476 | 1505 | | |
1477 | 1506 | | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
1478 | 1510 | | |
1479 | 1511 | | |
1480 | 1512 | | |
| |||
0 commit comments