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 <gorcu...@virtuozzo.com>
CC: Vladimir Davydov <vdavy...@virtuozzo.com>
CC: Konstantin Khorenko <khore...@virtuozzo.com>
CC: Vladimir Sementsov-Ogievskiy <vsement...@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.
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to