lkml.org 
[lkml]   [2016]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC V2 PATCH 01/25] net: introduce NET policy
From
Date
On 08/04/16 12:36, kan.liang@intel.com wrote:
> From: Kan Liang <kan.liang@intel.com>
>
> This patch introduce NET policy subsystem. If proc is supported in the
> system, it creates netpolicy node in proc system.
>
> Signed-off-by: Kan Liang <kan.liang@intel.com>
> ---
> include/linux/netdevice.h | 7 +++
> include/net/net_namespace.h | 3 ++
> net/Kconfig | 7 +++
> net/core/Makefile | 1 +
> net/core/netpolicy.c | 128 ++++++++++++++++++++++++++++++++++++++++++++
> 5 files changed, 146 insertions(+)
> create mode 100644 net/core/netpolicy.c

> diff --git a/net/Kconfig b/net/Kconfig
> index c2cdbce..00552ba 100644
> --- a/net/Kconfig
> +++ b/net/Kconfig
> @@ -205,6 +205,13 @@ source "net/bridge/netfilter/Kconfig"
>
> endif
>
> +config NETPOLICY
> + depends on NET
> + bool "Net policy support"
> + default y
> + ---help---
> + Net policy support
> +

New kconfig options shouldn't default to y.


--
~Randy

\
 
 \ /
  Last update: 2016-08-04 22:41    [W:0.774 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site