[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54D373D0.40405@6wind.com>
Date: Thu, 05 Feb 2015 14:44:48 +0100
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: David Ahern <dsahern@...il.com>, netdev@...r.kernel.org
CC: ebiederm@...ssion.com
Subject: Re: [RFC PATCH 14/29] net: vrf: Introduce vrf header file
Le 05/02/2015 02:34, David Ahern a écrit :
> Defines for min and max vrf id and helpers for examining
>
> Signed-off-by: David Ahern <dsahern@...il.com>
> ---
> include/net/vrf.h | 36 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 include/net/vrf.h
>
> diff --git a/include/net/vrf.h b/include/net/vrf.h
> new file mode 100644
> index 000000000000..67bc2e465661
> --- /dev/null
> +++ b/include/net/vrf.h
> @@ -0,0 +1,36 @@
> +#ifndef _VRF_H_
> +#define _VRF_H_
> +
> +#define VRF_BITS 12
> +#define VRF_MIN 1
> +#define VRF_MAX ((1 << VRF_BITS) - 1)
> +#define VRF_MASK VRF_MAX
> +
> +#define VRF_DEFAULT 1
> +#define VRF_ANY 0xffff
It could be useful to expose this value to userland.
--
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