MPTCP Linux Development
 help / color / mirror / Atom feed
From: Mat Martineau <mathew.j.martineau at linux.intel.com>
To: mptcp at lists.01.org
Subject: [MPTCP] Re: [MPTCP][RFC PATCH mptcp-next 5/6] mptcp: add the mib for MP_PRIO
Date: Mon, 09 Nov 2020 18:09:41 -0800	[thread overview]
Message-ID: <6e91d79b-318f-d96b-55e8-2d724be232fc@linux.intel.com> (raw)
In-Reply-To: 97272e9a7c59c402dceec4a86ee96a1c6bac9b8c.1604572610.git.geliangtang@gmail.com

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

On Thu, 5 Nov 2020, Geliang Tang wrote:

> This patch added the mib for MP_PRIO, named MPTCP_MIB_MPPRIO, for
> receiving of the MP_PRIO suboption.
>
> Signed-off-by: Geliang Tang <geliangtang(a)gmail.com>

Hi Geliang & Matt -

Do you think it makes sense to also have a MIB for number of MP_PRIOs 
sent?


Mat


> ---
> net/mptcp/mib.c     | 1 +
> net/mptcp/mib.h     | 1 +
> net/mptcp/options.c | 1 +
> 3 files changed, 3 insertions(+)
>
> diff --git a/net/mptcp/mib.c b/net/mptcp/mib.c
> index a8744ad62087..3812c6417c00 100644
> --- a/net/mptcp/mib.c
> +++ b/net/mptcp/mib.c
> @@ -32,6 +32,7 @@ static const struct snmp_mib mptcp_snmp_list[] = {
> 	SNMP_MIB_ITEM("PortAdd", MPTCP_MIB_PORTADD),
> 	SNMP_MIB_ITEM("RmAddr", MPTCP_MIB_RMADDR),
> 	SNMP_MIB_ITEM("RmSubflow", MPTCP_MIB_RMSUBFLOW),
> +	SNMP_MIB_ITEM("MPPrio", MPTCP_MIB_MPPRIO),
> 	SNMP_MIB_SENTINEL
> };
>
> diff --git a/net/mptcp/mib.h b/net/mptcp/mib.h
> index 1b07fc1ad1a0..522b3b191654 100644
> --- a/net/mptcp/mib.h
> +++ b/net/mptcp/mib.h
> @@ -25,6 +25,7 @@ enum linux_mptcp_mib_field {
> 	MPTCP_MIB_PORTADD,		/* Received ADD_ADDR with port */
> 	MPTCP_MIB_RMADDR,		/* Received RM_ADDR */
> 	MPTCP_MIB_RMSUBFLOW,		/* Remove a subflow */
> +	MPTCP_MIB_MPPRIO,		/* Received MP_PRIO */
> 	__MPTCP_MIB_MAX
> };
>
> diff --git a/net/mptcp/options.c b/net/mptcp/options.c
> index affbadb77faf..c09695dba1e1 100644
> --- a/net/mptcp/options.c
> +++ b/net/mptcp/options.c
> @@ -1010,6 +1010,7 @@ void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb)
>
> 	if (mp_opt.mp_prio) {
> 		mptcp_pm_mp_prio_received(sk, mp_opt.prio_bkup);
> +		MPTCP_INC_STATS(sock_net(sk), MPTCP_MIB_MPPRIO);
> 		mp_opt.mp_prio = 0;
> 	}
>
> -- 
> 2.26.2

--
Mat Martineau
Intel

                 reply	other threads:[~2020-11-10  2:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=6e91d79b-318f-d96b-55e8-2d724be232fc@linux.intel.com \
    --to=mptcp@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox