Page MenuHomeFreeBSD

D25364.diff
No OneTemporary

D25364.diff

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

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)

Event Timeline