diff mbox series

[iproute2-next] mptcp: add support for implicit flag

Message ID 1eaea070b52f2db1f310506ac49f4b5d51b5704c.1683294873.git.aclaudi@redhat.com (mailing list archive)
State Superseded
Delegated to: David Ahern
Headers show
Series [iproute2-next] mptcp: add support for implicit flag | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Andrea Claudi May 5, 2023, 1:58 p.m. UTC
Kernel supports implicit flag since commit d045b9eb95a9 ("mptcp:
introduce implicit endpoints"), included in v5.18.

Let's add support for displaying it to iproute2.

Before this change:
$ ip mptcp endpoint show
10.0.2.2 id 1 rawflags 10

After this change:
$ ip mptcp endpoint show
10.0.2.2 id 1 implicit

Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
---
 ip/ipmptcp.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Ahern May 10, 2023, 8:03 p.m. UTC | #1
On 5/5/23 7:58 AM, Andrea Claudi wrote:
> Kernel supports implicit flag since commit d045b9eb95a9 ("mptcp:
> introduce implicit endpoints"), included in v5.18.
> 
> Let's add support for displaying it to iproute2.
> 
> Before this change:
> $ ip mptcp endpoint show
> 10.0.2.2 id 1 rawflags 10
> 
> After this change:
> $ ip mptcp endpoint show
> 10.0.2.2 id 1 implicit
> 
> Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
> ---
>  ip/ipmptcp.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/ip/ipmptcp.c b/ip/ipmptcp.c
> index beba7a41..9847f95b 100644
> --- a/ip/ipmptcp.c
> +++ b/ip/ipmptcp.c
> @@ -58,6 +58,7 @@ static const struct {
>  	{ "subflow",		MPTCP_PM_ADDR_FLAG_SUBFLOW },
>  	{ "backup",		MPTCP_PM_ADDR_FLAG_BACKUP },
>  	{ "fullmesh",		MPTCP_PM_ADDR_FLAG_FULLMESH },
> +	{ "implicit",		MPTCP_PM_ADDR_FLAG_IMPLICIT },
>  	{ "nobackup",		MPTCP_PM_ADDR_FLAG_NONE },
>  	{ "nofullmesh",		MPTCP_PM_ADDR_FLAG_NONE }
>  };

Update the manpage with the new option.
diff mbox series

Patch

diff --git a/ip/ipmptcp.c b/ip/ipmptcp.c
index beba7a41..9847f95b 100644
--- a/ip/ipmptcp.c
+++ b/ip/ipmptcp.c
@@ -58,6 +58,7 @@  static const struct {
 	{ "subflow",		MPTCP_PM_ADDR_FLAG_SUBFLOW },
 	{ "backup",		MPTCP_PM_ADDR_FLAG_BACKUP },
 	{ "fullmesh",		MPTCP_PM_ADDR_FLAG_FULLMESH },
+	{ "implicit",		MPTCP_PM_ADDR_FLAG_IMPLICIT },
 	{ "nobackup",		MPTCP_PM_ADDR_FLAG_NONE },
 	{ "nofullmesh",		MPTCP_PM_ADDR_FLAG_NONE }
 };