From: Florian Westphal <f...@strlen.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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to