All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geliang Tang <geliang.tang@suse.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-next 2/7] mptcp: add clear_flags in pm_netlink
Date: Mon, 10 Jan 2022 20:35:02 +0800	[thread overview]
Message-ID: <20220110123502.GB3145@bogon> (raw)
In-Reply-To: <1b01c2a797fad9d2971d485b158d2dbd61d14fec.camel@redhat.com>

On Mon, Jan 10, 2022 at 12:38:14PM +0100, Paolo Abeni wrote:
> Hello,
> 
> On Mon, 2022-01-10 at 11:30 +0800, Geliang Tang wrote:
> > Splite set_flags() into two parts, set_flags() and clear_flags(), make it
> > easy to add new flags to set or clear.
> > 
> > This patch added a new PM command MPTCP_PM_CMD_CLEAR_FLAGS, and a new
> > function mptcp_nl_cmd_clear_flags().
> > 
> > Signed-off-by: Geliang Tang <geliang.tang@suse.com>
> > ---
> >  include/uapi/linux/mptcp.h |  1 +
> >  net/mptcp/pm_netlink.c     | 36 ++++++++++++++++++++++++++----------
> >  2 files changed, 27 insertions(+), 10 deletions(-)
> > 
> > diff --git a/include/uapi/linux/mptcp.h b/include/uapi/linux/mptcp.h
> > index f106a3941cdf..1ca9b13c2ed0 100644
> > --- a/include/uapi/linux/mptcp.h
> > +++ b/include/uapi/linux/mptcp.h
> > @@ -92,6 +92,7 @@ enum {
> >  	MPTCP_PM_CMD_SET_LIMITS,
> >  	MPTCP_PM_CMD_GET_LIMITS,
> >  	MPTCP_PM_CMD_SET_FLAGS,
> > +	MPTCP_PM_CMD_CLEAR_FLAGS,
> >  
> >  	__MPTCP_PM_CMD_AFTER_LAST
> >  };
> 
> I'm unsure if this has already been discussed in some mtg I missed. If
> so, I'm sorry for the late feedback :(
> 
> Looking at the existing netlink interfaces, I *think* the preferred way
> of handling this would be adding instead a couple of MPTCP address
> flags:
> 
> 	MPTCP_PM_ADDR_FLAG_NOBACKUP,
> 	MPTCP_PM_ADDR_FLAG_NOFULLMESH
> 
> As e.g. IFA_F_NOPREFIXROUTE, IFA_F_NODAD,...
> 
> The above should require a similar amount of code and will make it
> clear that we can't/wan't to flip the SUBFLOW or SIGNAL flags.
> 
> WDYT?

Agree, will update in v2.

Thanks,
-Geliang

> 
> Thanks!
> 
> Paolo
> 


  reply	other threads:[~2022-01-10 12:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10  3:29 [PATCH mptcp-next 0/7] fullmesh flag setting support Geliang Tang
2022-01-10  3:29 ` [PATCH mptcp-next 1/7] mptcp: fix removing ids bitmap Geliang Tang
2022-01-10 11:40   ` Paolo Abeni
2022-01-10 12:33     ` Geliang Tang
2022-01-10  3:30 ` [PATCH mptcp-next 2/7] mptcp: add clear_flags in pm_netlink Geliang Tang
2022-01-10 11:38   ` Paolo Abeni
2022-01-10 12:35     ` Geliang Tang [this message]
2022-01-10 15:59       ` Paolo Abeni
2022-01-10  3:30 ` [PATCH mptcp-next 3/7] selftests: mptcp: add clear_flags in pm_nl_ctl Geliang Tang
2022-01-10  3:30 ` [PATCH mptcp-next 4/7] selftests: mptcp: add clear_flags in mptcp_join.sh Geliang Tang
2022-01-10  3:30 ` [PATCH mptcp-next 5/7] mptcp: set fullmesh flag in pm_netlink Geliang Tang
2022-01-10  3:30 ` [PATCH mptcp-next 6/7] selftests: mptcp: set fullmesh flag in pm_nl_ctl Geliang Tang
2022-01-10  3:30 ` [PATCH mptcp-next 7/7] selftests: mptcp: add fullmesh setting tests Geliang Tang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220110123502.GB3145@bogon \
    --to=geliang.tang@suse.com \
    --cc=mptcp@lists.linux.dev \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.