Netdev List
 help / color / mirror / Atom feed
From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: Tom Herbert <tom@herbertland.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH net-next 6/6] mpls: Add MPLS entropy label in flow_keys
Date: Mon, 4 May 2015 17:56:10 -0700	[thread overview]
Message-ID: <20150505005609.GA14825@Alexeis-MacBook-Pro.local> (raw)
In-Reply-To: <1430780560-2758924-7-git-send-email-tom@herbertland.com>

On Mon, May 04, 2015 at 04:02:40PM -0700, Tom Herbert wrote:
> In flow dissector if an MPLS header contains an entropy label this is
> saved in the new extra entropy field of flow_keys. The entropy label is
> then represented in the flow hash function input.
> 
> Signed-off-by: Tom Herbert <tom@herbertland.com>
> ---
>  include/uapi/linux/in.h   |  2 ++
>  include/uapi/linux/mpls.h |  3 +++
>  net/core/flow_dissector.c | 27 +++++++++++++++++++++++++++
>  3 files changed, 32 insertions(+)
> 
> diff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h
> index 589ced0..c86f6ab 100644
> --- a/include/uapi/linux/in.h
> +++ b/include/uapi/linux/in.h
> @@ -69,6 +69,8 @@ enum {
>  #define IPPROTO_SCTP		IPPROTO_SCTP
>    IPPROTO_UDPLITE = 136,	/* UDP-Lite (RFC 3828)			*/
>  #define IPPROTO_UDPLITE		IPPROTO_UDPLITE
> +  IPPROTO_MPLS = 137,		/* MPLS in IP (RFC 4023)		*/
> +#define IPPROTO_MPLS		IPPROTO_SCTP

odd typo. was it tested?

  reply	other threads:[~2015-05-05  0:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04 23:02 [PATCH net-next 0/6] net: Increase inputs to flow_keys hashing Tom Herbert
2015-05-04 23:02 ` [PATCH net-next 1/6] net: Get skb hash over flow_keys structure Tom Herbert
2015-05-04 23:02 ` [PATCH net-next 2/6] net: Add full IPv6 addresses to flow_keys Tom Herbert
2015-05-04 23:02 ` [PATCH net-next 3/6] net: Add VLAN ID " Tom Herbert
2015-05-04 23:02 ` [PATCH net-next 4/6] net: Add IPv6 flow label " Tom Herbert
2015-05-04 23:02 ` [PATCH net-next 5/6] net: Add GRE keyid in flow_keys Tom Herbert
2015-05-04 23:02 ` [PATCH net-next 6/6] mpls: Add MPLS entropy label " Tom Herbert
2015-05-05  0:56   ` Alexei Starovoitov [this message]
2015-05-05  2:13     ` Tom Herbert

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=20150505005609.GA14825@Alexeis-MacBook-Pro.local \
    --to=alexei.starovoitov@gmail.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=tom@herbertland.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox