Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109438288
D35499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D35499.diff
View Options
diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c
--- a/sys/dev/dwc/if_dwc.c
+++ b/sys/dev/dwc/if_dwc.c
@@ -824,14 +824,6 @@
m = map->mbuf;
ifp = sc->ifp;
rdesc0 = desc ->desc0;
- /* Validate descriptor. */
- if (rdesc0 & RDESC0_ES) {
- /*
- * Errored packet. Statistic counters are updated
- * globally, so do nothing
- */
- return (NULL);
- }
if ((rdesc0 & (RDESC0_FS | RDESC0_LS)) !=
(RDESC0_FS | RDESC0_LS)) {
@@ -1441,16 +1433,12 @@
sc->stats_harvest_count = 0;
ifp = sc->ifp;
- if_inc_counter(ifp, IFCOUNTER_IPACKETS, READ4(sc, RXFRAMECOUNT_GB));
- if_inc_counter(ifp, IFCOUNTER_IMCASTS, READ4(sc, RXMULTICASTFRAMES_G));
if_inc_counter(ifp, IFCOUNTER_IERRORS,
READ4(sc, RXOVERSIZE_G) + READ4(sc, RXUNDERSIZE_G) +
READ4(sc, RXCRCERROR) + READ4(sc, RXALIGNMENTERROR) +
READ4(sc, RXRUNTERROR) + READ4(sc, RXJABBERERROR) +
READ4(sc, RXLENGTHERROR));
- if_inc_counter(ifp, IFCOUNTER_OPACKETS, READ4(sc, TXFRAMECOUNT_G));
- if_inc_counter(ifp, IFCOUNTER_OMCASTS, READ4(sc, TXMULTICASTFRAMES_G));
if_inc_counter(ifp, IFCOUNTER_OERRORS,
READ4(sc, TXOVERSIZE_G) + READ4(sc, TXEXCESSDEF) +
READ4(sc, TXCARRIERERR) + READ4(sc, TXUNDERFLOWERROR));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 1:51 AM (20 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16484680
Default Alt Text
D35499.diff (1 KB)
Attached To
Mode
D35499: if_dwc: avoid duplicate packet counts
Attached
Detach File
Event Timeline
Log In to Comment