Page MenuHomeFreeBSD

net: refactor if_clone.c #1
ClosedPublic

Authored by melifaro on Mar 13 2023, 10:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 28, 8:25 PM
Unknown Object (File)
Tue, Nov 25, 7:24 PM
Unknown Object (File)
Tue, Nov 25, 5:03 PM
Unknown Object (File)
Sun, Nov 23, 1:03 AM
Unknown Object (File)
Nov 11 2025, 9:39 PM
Unknown Object (File)
Nov 7 2025, 2:08 AM
Unknown Object (File)
Nov 2 2025, 12:43 AM
Unknown Object (File)
Nov 1 2025, 3:51 AM
Subscribers

Details

Summary
  • Add ifc_find_cloner()
  • Rename current ifc_find_cloner() to ifc_find_cloner_vnet()
  • Add ifc_find_cloner_match()

This change simplifies the code a bit and reduces the diff to
the netlink interface cloners merge (D39032).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 50318
Build 47210: arc lint + arc unit

Event Timeline

Two non-blocking remarks.

sys/net/if_clone.c
199

That declaration probably needs to be before int error; in line 196, and separated from the assignment.

296

Would ifc_find_cloner_in_vnet() be better?

This revision is now accepted and ready to land.Mar 13 2023, 12:51 PM
glebius added inline comments.
sys/net/if_clone.c
199

+1 on that

This revision was automatically updated to reflect the committed changes.