Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154254110
D44817.id161549.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
595 B
Referenced Files
None
Subscribers
None
D44817.id161549.diff
View Options
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -3042,13 +3042,9 @@
case IFCOUNTER_OPACKETS:
return (txaccum.vtxs_opackets);
case IFCOUNTER_OBYTES:
- if (!VTNET_ALTQ_ENABLED)
- return (txaccum.vtxs_obytes);
- /* FALLTHROUGH */
+ return (txaccum.vtxs_obytes);
case IFCOUNTER_OMCASTS:
- if (!VTNET_ALTQ_ENABLED)
- return (txaccum.vtxs_omcasts);
- /* FALLTHROUGH */
+ return (txaccum.vtxs_omcasts);
default:
return (if_get_counter_default(ifp, cnt));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 10:30 AM (1 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32269562
Default Alt Text
D44817.id161549.diff (595 B)
Attached To
Mode
D44817: Support IFCOUNTER_OBYTES and IFCOUNTER_OMCASTS even with VTNET_LEGACY_TX defined
Attached
Detach File
Event Timeline
Log In to Comment