Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150028820
D25364.1791504856.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1023 B
Referenced Files
None
Subscribers
None
D25364.1791504856.diff
View Options
Index: sys/dev/oce/oce_if.c
===================================================================
--- sys/dev/oce/oce_if.c
+++ sys/dev/oce/oce_if.c
@@ -1224,6 +1224,11 @@
*/
oce_is_pkt_dest_bmc(sc, m, &os2bmc, &m_new);
+ if_inc_counter(sc->ifp, IFCOUNTER_OBYTES, m->m_pkthdr.len);
+ if (m->m_flags & M_MCAST)
+ if_inc_counter(sc->ifp, IFCOUNTER_OMCASTS, 1);
+ ETHER_BPF_MTAP(sc->ifp, m);
+
OCE_WRITE_REG32(sc, db, wq->db_offset, reg_value);
} else if (rc == EFBIG) {
@@ -1399,7 +1404,7 @@
if (!sc->link_status)
return;
- do {
+ while (true) {
IF_DEQUEUE(&sc->ifp->if_snd, m);
if (m == NULL)
break;
@@ -1416,12 +1421,7 @@
}
break;
}
- if (m != NULL)
- ETHER_BPF_MTAP(ifp, m);
-
- } while (TRUE);
-
- return;
+ }
}
@@ -1499,10 +1499,6 @@
break;
}
drbr_advance(ifp, br);
- if_inc_counter(ifp, IFCOUNTER_OBYTES, next->m_pkthdr.len);
- if (next->m_flags & M_MCAST)
- if_inc_counter(ifp, IFCOUNTER_OMCASTS, 1);
- ETHER_BPF_MTAP(ifp, next);
}
return 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 9, 12:14 AM (16 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30246647
Default Alt Text
D25364.1791504856.diff (1023 B)
Attached To
Mode
D25364: oce(4): Account and trace mbufs before handing to hw
Attached
Detach File
Event Timeline
Log In to Comment