Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107434988
D45196.id138519.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
801 B
Referenced Files
None
Subscribers
None
D45196.id138519.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 15, 3:01 AM (11 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15805118
Default Alt Text
D45196.id138519.diff (801 B)
Attached To
Mode
D45196: mlx4, mlx5: Eliminate redundent check for NULL packet filter
Attached
Detach File
Event Timeline
Log In to Comment