[dpdk-dev] [Bug 354] net/tap can not get rx packet drop stats when packets be dropped in kernel (net/driver/tun.c)
bugzilla at dpdk.org
bugzilla at dpdk.org
Wed Oct 16 10:58:22 CEST 2019
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 at dpdk.org
Reporter: donald_lee at 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.
More information about the dev
mailing list