From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B727A3168 for ; Wed, 16 Oct 2019 10:58:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8E3131C0C8; Wed, 16 Oct 2019 10:58:24 +0200 (CEST) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by dpdk.org (Postfix) with ESMTP id D92881C0BC for ; Wed, 16 Oct 2019 10:58:23 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id A9351A3169; Wed, 16 Oct 2019 10:58:23 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 16 Oct 2019 08:58:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 18.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: donald_lee@trendmicro.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 354] net/tap can not get rx packet drop stats when packets be dropped in kernel (net/driver/tun.c) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D354 Bug ID: 354 Summary: net/tap can not get rx packet drop stats when packets be dropped in kernel (net/driver/tun.c) Product: DPDK Version: 18.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: donald_lee@trendmicro.com Target Milestone: --- Due to kernel tap/tun driver limitation, rte_eth_tap can not get the rx dro= pped stats, so we have to compensate it by ourself. $ ifconfig ethernet1 ethernet1 Link encap:Ethernet HWaddr 00:0d:3a:54:53:fb UP BROADCAST RUNNING PROMISC MULTICAST MTU:9216 Metric:1 RX packets:2505026 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1122805246 (1.0 GiB) TX bytes:98 (98.0 B) $ ifconfig dtap0 dtap0 Link encap:Ethernet HWaddr 00:0d:3a:54:53:fb inet6 addr: fe80::20d:3aff:fe54:53fb/64 Scope:Link UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST MTU:1500 Metric= :1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1295156 errors:0 dropped:10830 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:1049937532 (1001.2 MiB) $ ethtool -i ethernet1 driver: net_failsafe version: firmware-version: expansion-rom-version: bus-info: 0002:00:02.0 supports-statistics: yes supports-test: no supports-eeprom-access: no supports-register-dump: no supports-priv-flags: no $ ethtool -i dtap0 driver: tun version: 1.6 firmware-version: expansion-rom-version: bus-info: tap supports-statistics: no supports-test: no supports-eeprom-access: no supports-register-dump: no supports-priv-flags: no --=20 You are receiving this mail because: You are the assignee for the bug.=