Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152537378
D25364.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
D25364.diff
View Options
Index: head/sys/dev/oce/oce_if.c
===================================================================
--- head/sys/dev/oce/oce_if.c
+++ head/sys/dev/oce/oce_if.c
@@ -1225,6 +1225,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) {
@@ -1400,7 +1405,7 @@
if (!sc->link_status)
return;
- do {
+ while (true) {
IF_DEQUEUE(&sc->ifp->if_snd, m);
if (m == NULL)
break;
@@ -1417,12 +1422,7 @@
}
break;
}
- if (m != NULL)
- ETHER_BPF_MTAP(ifp, m);
-
- } while (TRUE);
-
- return;
+ }
}
@@ -1500,10 +1500,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
Thu, Apr 16, 1:34 PM (12 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31562981
Default Alt Text
D25364.diff (1 KB)
Attached To
Mode
D25364: oce(4): Account and trace mbufs before handing to hw
Attached
Detach File
Event Timeline
Log In to Comment