HomeFreeBSD

ifnet: Remove dead code

Description

ifnet: Remove dead code

Since change [1], if_bpf will not be detached by the interface departure
eventhandler and will not be NULL. Then the logic to re-attach if_bpf
becomes dead and serves no purpose any more.

This partially reverts commit 05fc416403ec.

  1. 9ce40d321dd5 bpf: Fix incorrect cleanup

Reviewed by: kp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45599

Details

Provenance
zleiAuthored on Jun 30 2024, 9:44 AM
Reviewer
kp
Differential Revision
D45599: ifnet: Remove dead code
Parents
rG4ca4a3b1c8e3: enc.4: Remove a redundant word
Branches
Unknown
Tags
Unknown
Reverts
rG05fc416403ec: During if_vmove() we call if_detach_internal() which in turn calls the event