NetBSD Problem Report #55676

From adrian@mx.aik.onl  Mon Sep 21 16:51:11 2020
Return-Path: <adrian@mx.aik.onl>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id EAC861A9217
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 21 Sep 2020 16:51:10 +0000 (UTC)
Message-Id: <20200921140741.74A6A27492@www3.kiess.onl>
Date: Mon, 21 Sep 2020 16:07:41 +0200 (CEST)
From: adrian@kiess.onl
Reply-To: adrian@kiess.onl
To: gnats-bugs@NetBSD.org
Subject: Network interface vmx0 does not count outpackets/sent packets
X-Send-Pr-Version: 3.95

>Number:         55676
>Category:       port-amd64
>Synopsis:       Network interface vmx0 does not count outpackets/sent packets
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-amd64-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Mon Sep 21 16:55:00 +0000 2020
>Closed-Date:    Tue Apr 02 14:25:40 +0000 2024
>Last-Modified:  Tue Apr 02 14:25:40 +0000 2024
>Originator:     Adrian Immanuel Kiess
>Release:        NetBSD 9.0_STABLE
>Organization:

>Environment:
        NetBSD 9 running as a VMWare ESXi 6.5 with hardware emulation version 4 guest
System: NetBSD www3.kiess.onl 9.0_STABLE NetBSD 9.0_STABLE (GENERIC) #4: Sun Sep 13 19:36:14 CEST 2020 mlelstv@gossam:/home/netbsd9/obj.amd64/home/netbsd9/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
        Network interface vmx0 does not count outpackets/sent packets as can be shown with netstat -i or running gkrellm.
        Only a very minimal number of packets gets counted. Received packets are getting counted correctly.
        The used host runs as a guest to an VMWare ESXi 6.5 with hardware emulation version 4 host at my providers place.
        The provider is https://www.ionos.de, where I booked a virtual private server.
        The version of NetBSD is 9-STABLE from Sep 13, 2020. 
        The outgoing packets are counted at the same provider, when using a FreeBSD or Debian instance.
>How-To-Repeat:
        netstat -i and have a look at Opkts from the interface vmx0
        or
        run gkrellm and look at the outgoing transfer rate of vmx0, which is mostly zero
>Fix:


>Release-Note:

>Audit-Trail:

From: Adrian =?UTF-8?B?S2llw58=?= <adrian@mx.aik.onl>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, adrian@kiess.onl
Subject: Re: port-amd64/55676: Network interface vmx0 does not count
 outpackets/sent packets
Date: Tue, 2 Apr 2024 11:40:25 +0200

 Dear Maintainers,

 I want to report that the bug I described for NetBSD 9 in conjunction
 with VMWare ESXi running at my providers ( https://www.ionos.de ) place, is fixed now that I
 upgraded to NetBSD 10 RELEASE.

 root@www3 ~ # netstat -i
 Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs Colls
 vmx0  1500  <Link>        00:50:56:01:96:69  1090044     0   485563     0     0
 vmx0  1500  fe80::/64     fe80::250:56ff:fe  1090044     0   485563     0     0
 vmx0  1500  217.160.254.1 www3.kiess.onl     1090044     0   485563     0     0
 vmx0  1500  www3.kiess.on 2001:8d8:1800:3cd  1090044     0   485563     0     0
 lo0   33624 <Link>                            239962     0   239962     0     0
 lo0   33624 127/8         localhost           239962     0   239962     0     0
 lo0   33624 localhost/128 ::1                 239962     0   239962     0     0
 lo0   33624 fe80::/64     fe80::1             239962     0   239962     0     0
 root@www3 ~ # uname -a
 NetBSD www3.kiess.onl 10.0 NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
 root@www3 ~ # 

 You can see in the above output from:

 # netstat -i

 that the vmx0 network interfaces out packets are counted again, gkrellm
  (application from pkgsrc) now also shows the outgoing network traffic
 rate correctly.

 Thank you very much for your kind attention.

 Sincerely,

 Adrian Kiess

State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Tue, 02 Apr 2024 14:25:40 +0000
State-Changed-Why:
fixed in sys/arch/x86/pci/if_vmx.c rev. 1.57
back in February 2020, in the late before-times
pullup to 9 might be a bit of work because of change in if stats API
but we could look into that if it's important


>Unformatted:
         Network interface vmx0 does not count outpackets/sent packets

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.