All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni at redhat.com>
To: mptcp at lists.01.org
Subject: [MPTCP] Re: [MPTCP][PATCH v2 mptcp-next 4/4] mptcp: trigger the RM_ADDR signal
Date: Wed, 29 Jul 2020 18:29:37 +0200	[thread overview]
Message-ID: <872b781aa6fa312c427b121ebb71ee8d415d618c.camel@redhat.com> (raw)
In-Reply-To: 20200729093332.GA26613@OptiPlex

[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]

On Wed, 2020-07-29 at 17:33 +0800, Geliang Tang wrote:
> I have sent out REMOVE_ADDR patchset v3 to you.
> 
> On Wed, Jul 22, 2020 at 01:34:25PM +0200, Paolo Abeni wrote:
> > On Wed, 2020-07-22 at 12:41 +0200, Paolo Abeni wrote:
> > > > +void mptcp_pm_nl_rm_addr_received(struct mptcp_sock *msk)
> > > > +{
> > > > + struct mptcp_subflow_context *subflow, *tmp;
> > > > +
> > > > + pr_debug("remote_id %d", msk->pm.rm_id);
> > > > +
> > > > + msk->pm.add_addr_accepted--;
> > > > + msk->pm.subflows--;
> > > > + WRITE_ONCE(msk->pm.accept_addr, true);
> > > > +
> > > > + list_for_each_entry_safe(subflow, tmp, &msk->conn_list, node) {
> > > > +         struct sock *tcp_sk = mptcp_subflow_tcp_sock(subflow);
> > > > +
> > > > +         if (msk->pm.rm_id == subflow->remote_id) {
> > > > +                 mptcp_subflow_shutdown(tcp_sk, 1, 1, msk->write_seq);
> > > 
> > > the 2nd argument for mptcp_subflow_shutdown() should be something alike
> > > 'RCV_SHUTDOWN|SEND_SHUTDOWN' - we are closing the subflow in both
> > > direction - and the third argument '0' - the msk will remain
> > > open/established.
> > > 
> 
> I have updated these arguments in patchset v3.

Thanks! I'll try to review before tomorrow's mtg - sorry for the
latency, I'm lagging behind other tasks.

/P

             reply	other threads:[~2020-07-29 16:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-29 16:29 Paolo Abeni [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-07-29  9:33 [MPTCP] Re: [MPTCP][PATCH v2 mptcp-next 4/4] mptcp: trigger the RM_ADDR signal Geliang Tang
2020-07-22 11:12 Paolo Abeni

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=872b781aa6fa312c427b121ebb71ee8d415d618c.camel@redhat.com \
    --to=unknown@example.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.