On Wed, 2019-10-02 at 20:14 +0200, Matthieu Baerts wrote:
Hi Davide, Paolo,
On 27/09/2019 22:51, Davide Caratti wrote:
> add ulp-specific diagnostic functions, so that subflow information can be
> dumped to userspace programs like 'ss'.
Thank you for the patch and the review!
I am applying this patch and I will continue doing it but I have 2
questions here below. If they are relevant, this can be fixed in a
> @@ -0,0 +1,34 @@
> +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
> +#ifndef _UAPI_MPTCP_H
> +#define _UAPI_MPTCP_H
> +#include <linux/types.h>
> +#define SUBFLOW_FLAGS_MCAP_REM BIT(0)
> +#define SUBFLOW_FLAGS_MCAP_LOC BIT(1)
> +#define SUBFLOW_FLAGS_JOIN_REM BIT(2)
> +#define SUBFLOW_FLAGS_JOIN_LOC BIT(3)
> +#define SUBFLOW_FLAGS_BKUP_REM BIT(4)
> +#define SUBFLOW_FLAGS_BKUP_LOC BIT(5)
> +#define SUBFLOW_FLAGS_4THACK BIT(6)
> +#define SUBFLOW_FLAGS_CONNECTED BIT(7)
> +#define SUBFLOW_FLAGS_MAPVALID BIT(8)
Should we not prefix all of these with MPTCP_?
Should we prefix them as well? If yes only with "mptcp_"
"mptcp_diag_"? (as linked to diag.c, not subflow.c)
and yes. I see the follow-up patch is already posted, will review it.