Page MenuHomeFreeBSD

D45196.id139163.diff
No OneTemporary

D45196.id139163.diff

diff --git a/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c b/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
--- a/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
+++ b/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
@@ -688,7 +688,7 @@
dseg = &tx_desc->data;
/* send a copy of the frame to the BPF listener, if any */
- if (ifp != NULL && if_getbpf(ifp) != NULL)
+ if (ifp != NULL)
ETHER_BPF_MTAP(ifp, mb);
/* get default flags */
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
@@ -745,7 +745,7 @@
mb = *mbp;
/* Send a copy of the frame to the BPF listener, if any */
- if (ifp != NULL && if_getbpf(ifp) != NULL)
+ if (ifp != NULL)
ETHER_BPF_MTAP(ifp, mb);
if (mb->m_pkthdr.csum_flags & (CSUM_IP | CSUM_TSO)) {

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 15, 3:01 AM (11 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15805118
Default Alt Text
D45196.id139163.diff (801 B)

Event Timeline