[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150828.141858.298466824970321801.davem@davemloft.net>
Date: Fri, 28 Aug 2015 14:18:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: fw@...len.de
Cc: netdev@...r.kernel.org, daniel@...earbox.net
Subject: Re: [PATCH -next 3/3] tcp: use dctcp if enabled on the route to
the initiator
From: Florian Westphal <fw@...len.de>
Date: Fri, 28 Aug 2015 14:11:09 +0200
> @@ -418,10 +418,13 @@ enum {
>
> #define RTAX_MAX (__RTAX_MAX - 1)
>
> -#define RTAX_FEATURE_ECN 0x00000001
> -#define RTAX_FEATURE_SACK 0x00000002
> -#define RTAX_FEATURE_TIMESTAMP 0x00000004
> -#define RTAX_FEATURE_ALLFRAG 0x00000008
> +#define RTAX_FEATURE_ECN (1 << 0)
> +#define RTAX_FEATURE_SACK (1 << 1)
> +#define RTAX_FEATURE_TIMESTAMP (1 << 2)
> +#define RTAX_FEATURE_ALLFRAG (1 << 3)
> +#define RTAX_FEATURE_ECN_CA (1 << 4)
> +
> +#define RTAX_FEATURE_MASK_ECN (RTAX_FEATURE_ECN | RTAX_FEATURE_ECN_CA)
I don't know about this.
You're adding a new user visible feature bit, but...
The user can set it and silently the kernel will accept it, but this
bit is ignored.
Regardless of it's internal value, we never publish it to the user.
This is just asking for trouble, and it's a bit sloppy if you ask me.
I think you're going to need to hold this piece of state outside of
the metric value, sorry.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists