DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 354] net/tap can not get rx packet drop stats when packets be dropped in kernel (net/driver/tun.c)
@ 2019-10-16  8:58 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2019-10-16  8:58 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=354

            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 dropped
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

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-16  8:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16  8:58 [dpdk-dev] [Bug 354] net/tap can not get rx packet drop stats when packets be dropped in kernel (net/driver/tun.c) bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).