1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/sys/dev/mlx4
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
..
mlx4_core mlx4en(4): add missing newline to debug messages 2023-06-18 12:14:41 +08:00
mlx4_en mlx4, mlx5: Eliminate redundent NULL check for packet filter 2024-05-28 12:46:04 +08:00
mlx4_ib mlx4: Finish conversion to IfAPI 2023-02-14 10:21:19 -05:00
cmd.h
cq.h
device.h mlx4: Map core_clock page to user space only when allowed 2021-07-12 14:22:35 +02:00
doorbell.h
driver.h
qp.h
srq.h
stats.h