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

(cherry picked from commit 9738277b5c662a75347efa6a58daea485d30f895)
(cherry picked from commit a8790965b0c6b63ec64c42f236cd09cef06f481c)

Details

Provenance
zleiAuthored on Jun 30 2024, 9:44 AM
Reviewer
kp
Differential Revision
D45599: ifnet: Remove dead code
Parents
rGc5d9624226e5: 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