opnsense-src/sys/dev/mlx4/mlx4_en
Zhenlei Huang 2439ae9483 mlx4, mlx5: Eliminate redundent NULL check for packet filter
mlx4 and mlx5 are Ethernet devices and ether_ifattach() does an
unconditional bpfattach(). From commit 16d878cc99 [1] and on, we
should not check ifp->if_bpf to tell us whether or not we have any bpf
peers that might be interested in receiving packets. And since commit
2b9600b449 [2], ifp->if_bpf can not be NULL even after the network
interface has been detached.

No functional change intended.

1. 16d878cc99 Fix the following bpf(4) race condition which can result in a panic
2. 2b9600b449 Add dead_bpf_if structure, that should be used as fake bpf_if during ifnet detach

Reviewed by:	kp, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45196
2024-05-28 12:46:04 +08:00
..
en.h Mechanically convert mlx4(4) to IfAPI 2023-02-07 14:16:11 -05:00
en_port.h Update the mlx4 core and mlx4en(4) modules towards Linux v4.9. 2017-11-15 11:14:39 +00:00
mlx4_en_cq.c mlx4en: Remove the DRBR and associated logic in the transmit path. 2018-12-05 13:31:45 +00:00
mlx4_en_main.c mlx4: rename conflicting netdev_priv() to mlx4_netdev_priv() 2021-10-25 20:12:32 +00:00
mlx4_en_netdev.c mlx4(5): fix driver initialization 2023-12-23 22:53:02 +02:00
mlx4_en_port.c Mechanically convert mlx4(4) to IfAPI 2023-02-07 14:16:11 -05:00
mlx4_en_resources.c Mechanically convert mlx4(4) to IfAPI 2023-02-07 14:16:11 -05:00
mlx4_en_rx.c Mechanically convert mlx4(4) to IfAPI 2023-02-07 14:16:11 -05:00
mlx4_en_tx.c mlx4, mlx5: Eliminate redundent NULL check for packet filter 2024-05-28 12:46:04 +08:00