summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/de/if_de.c8
-rw-r--r--sys/pci/if_de.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index 32d68d0..08351b3 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -3737,8 +3737,6 @@ tulip_tx_intr(
TULIP_TXMAP_POSTSYNC(sc, map);
sc->tulip_txmaps[sc->tulip_txmaps_free++] = map;
#endif /* TULIP_BUS_DMA */
- if (sc->tulip_if.if_bpf != NULL)
- bpf_mtap(&sc->tulip_if, m);
m_freem(m);
#if defined(TULIP_DEBUG)
} else {
@@ -4364,6 +4362,12 @@ tulip_txput(
#endif /* TULIP_BUS_DMA */
/*
+ * bounce a copy to the bpf listener, if any.
+ */
+ if (sc->tulip_if.if_bpf != NULL)
+ bpf_mtap(&sc->tulip_if, m);
+
+ /*
* The descriptors have been filled in. Now get ready
* to transmit.
*/
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c
index 32d68d0..08351b3 100644
--- a/sys/pci/if_de.c
+++ b/sys/pci/if_de.c
@@ -3737,8 +3737,6 @@ tulip_tx_intr(
TULIP_TXMAP_POSTSYNC(sc, map);
sc->tulip_txmaps[sc->tulip_txmaps_free++] = map;
#endif /* TULIP_BUS_DMA */
- if (sc->tulip_if.if_bpf != NULL)
- bpf_mtap(&sc->tulip_if, m);
m_freem(m);
#if defined(TULIP_DEBUG)
} else {
@@ -4364,6 +4362,12 @@ tulip_txput(
#endif /* TULIP_BUS_DMA */
/*
+ * bounce a copy to the bpf listener, if any.
+ */
+ if (sc->tulip_if.if_bpf != NULL)
+ bpf_mtap(&sc->tulip_if, m);
+
+ /*
* The descriptors have been filled in. Now get ready
* to transmit.
*/
OpenPOWER on IntegriCloud