[Devel] [PATCH] ve/tun: Make config to dep on TUN

Cyrill Gorcunov gorcunov at virtuozzo.com
Fri Oct 16 05:12:16 PDT 2015


Tun accounting uses tun diver so it should be shown
iif TUN is selected, also it should be M by default
as for general net accounting.

Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
CC: Vladimir Davydov <vdavydov at virtuozzo.com>
CC: Konstantin Khorenko <khorenko at virtuozzo.com>
CC: Vladimir Sementsov-Ogievskiy <vsementsov at virtuozzo.com>
---
 kernel/Kconfig.openvz |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-pcs7.git/kernel/Kconfig.openvz
===================================================================
--- linux-pcs7.git.orig/kernel/Kconfig.openvz
+++ linux-pcs7.git/kernel/Kconfig.openvz
@@ -106,7 +106,7 @@ config VZ_IOLIMIT
 
 config VE_TUNTAP_ACCOUNTING
 	bool "Accounting for tun/tap devices"
-	depends on VE_NETDEV_ACCOUNTING
-	default y
+	depends on VE_NETDEV_ACCOUNTING && TUN
+	default m
 	help
 	   This option enables accounting for tun/tap devices.



More information about the Devel mailing list