[Devel] [PATCH RH7 2/3] vznetstat: Simplify venet_acct_out_hook()
Kirill Tkhai
ktkhai at virtuozzo.com
Tue Oct 6 16:19:08 MSK 2020
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
kernel/ve/vznetstat/ip_vznetstat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/ve/vznetstat/ip_vznetstat.c b/kernel/ve/vznetstat/ip_vznetstat.c
index 999a93b84cab..d96065768ab3 100644
--- a/kernel/ve/vznetstat/ip_vznetstat.c
+++ b/kernel/ve/vznetstat/ip_vznetstat.c
@@ -82,7 +82,7 @@ static unsigned int venet_acct_out_hook(const struct nf_hook_ops *hook,
res = NF_ACCEPT;
/* Skip loopback dev */
- if (out == dev_net(out)->loopback_dev)
+ if (out->flags & IFF_LOOPBACK)
goto out;
/* Paranoia */
More information about the Devel
mailing list