Page MenuHomeFreeBSD

libalias: Remove unused function LibAliasCheckNewLink
ClosedPublic

Authored by donner on May 15 2021, 1:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 10, 2:12 PM
Unknown Object (File)
Tue, Mar 26, 7:21 PM
Unknown Object (File)
Mar 18 2024, 8:43 AM
Unknown Object (File)
Jan 13 2024, 4:29 AM
Unknown Object (File)
Dec 23 2023, 12:37 AM
Unknown Object (File)
Nov 24 2023, 8:12 PM
Unknown Object (File)
Nov 1 2023, 6:29 PM
Unknown Object (File)
Oct 6 2023, 11:48 AM
Subscribers

Details

Summary

The functionality to detect a newly created link after processing a
single packet is decoupled from the packet processing. Every new
packet is processed asynchronously and wil reset the indicator, hence
the function is unusable. I made a Google search for third party code,
which uses the function, and failed to find one.

That's why the function should be removed: It unusable and unused.

Test Plan

Recompile without errors.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

struct libalias is exposed to userspace, right? It looks like nothing in userspace uses it. Or at least in the base system. I don't know if there are ports that care about this.

Edit: It appears you've searched and not found any.
It may be useful to at least have a comment next to the field to indicate it's unused. Ideally it should just be removed, but that'll result in ABI changes, so it makes sense to keep it.

  • Reestablish ABI without providing any functionality.
  • Remove the last piece from the internal structure.
In D30275#680105, @kp wrote:

struct libalias is exposed to userspace, right?

No. It's an opaque type, which is instantiated by library functions.

It may be useful to at least have a comment next to the field to indicate it's unused.
Ideally it should just be removed, but that'll result in ABI changes, so it makes sense to keep it.

Done, keep the ABI function call at least for anything up to 13.

bcr added a subscriber: bcr.

OK from manpages.

This revision was not accepted when it landed; it landed in state Needs Review.May 31 2021, 11:05 AM
This revision was automatically updated to reflect the committed changes.