Skip to content

Commit

Permalink
netlink: specs: mptcp: clearly mention attributes
Browse files Browse the repository at this point in the history
The rendered version of the MPTCP events [1] looked strange, because the
whole content of the 'doc' was displayed in the same block.

It was then not clear that the first words, not even ended by a period,
were the attributes that are defined when such events are emitted. These
attributes have now been moved to the end, prefixed with 'The defined
attributes are' and ended with a period.

Fixes: bc8aeb2 ("Documentation: netlink: add a YAML spec for mptcp")
Link: https://docs.kernel.org/networking/netlink_spec/mptcp_pm.html#event-type [1]
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe authored and intel-lab-lkp committed Dec 13, 2024
1 parent 7502adb commit 703896a
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions Documentation/netlink/specs/mptcp_pm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,66 +23,67 @@ definitions:
-
name: created
doc:
token, family, saddr4 | saddr6, daddr4 | daddr6, sport, dport,
server-side
A new MPTCP connection has been created. It is the good time to
allocate memory and send ADD_ADDR if needed. Depending on the
traffic-patterns it can take a long time until the
MPTCP_EVENT_ESTABLISHED is sent.
The defined attributes are token, family, saddr4 | saddr6, daddr4 |
daddr6, sport, dport, server-side.
-
name: established
doc:
token, family, saddr4 | saddr6, daddr4 | daddr6, sport, dport,
server-side
A MPTCP connection is established (can start new subflows).
The defined attributes are token, family, saddr4 | saddr6, daddr4 |
daddr6, sport, dport, server-side.
-
name: closed
doc:
token
A MPTCP connection has stopped.
The defined attribute is token.
-
name: announced
value: 6
doc:
token, rem_id, family, daddr4 | daddr6 [, dport]
A new address has been announced by the peer.
The defined attributes are token, rem_id, family, daddr4 | daddr6
[, dport].
-
name: removed
doc:
token, rem_id
An address has been lost by the peer.
The defined attributes are token, rem_id.
-
name: sub-established
value: 10
doc:
token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 | daddr6, sport,
dport, backup, if_idx [, error]
A new subflow has been established. 'error' should not be set.
The defined attributes are token, family, loc_id, rem_id, saddr4 |
saddr6, daddr4 | daddr6, sport, dport, backup, if_idx [, error].
-
name: sub-closed
doc:
token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 | daddr6, sport,
dport, backup, if_idx [, error]
A subflow has been closed. An error (copy of sk_err) could be set if an
error has been detected for this subflow.
The defined attributes are token, family, loc_id, rem_id, saddr4 |
saddr6, daddr4 | daddr6, sport, dport, backup, if_idx [, error].
-
name: sub-priority
value: 13
doc:
token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 | daddr6, sport,
dport, backup, if_idx [, error]
The priority of a subflow has changed. 'error' should not be set.
The defined attributes are token, family, loc_id, rem_id, saddr4 |
saddr6, daddr4 | daddr6, sport, dport, backup, if_idx [, error].
-
name: listener-created
value: 15
doc:
family, sport, saddr4 | saddr6
A new PM listener is created.
The defined attributes are family, sport, saddr4 | saddr6.
-
name: listener-closed
doc:
family, sport, saddr4 | saddr6
A PM listener is closed.
The defined attributes are family, sport, saddr4 | saddr6.

attribute-sets:
-
Expand Down

0 comments on commit 703896a

Please sign in to comment.