Page MenuHomeFreeBSD

libifconfig: Fix bridge status member list
ClosedPublic

Authored by grembo on Dec 20 2023, 8:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 21 2024, 3:37 PM
Unknown Object (File)
Sep 7 2024, 8:07 PM
Unknown Object (File)
Aug 30 2024, 9:29 AM
Unknown Object (File)
Aug 29 2024, 4:32 PM
Unknown Object (File)
Aug 20 2024, 12:55 PM
Unknown Object (File)
Aug 6 2024, 11:54 AM
Unknown Object (File)
Aug 6 2024, 11:54 AM
Unknown Object (File)
Aug 6 2024, 11:52 AM

Details

Summary

When this functionality was moved to libifconfig in 3dfbda3401abea84da9,
the end of list calculation was modified for unknown reasons, practically
limiting the number of bridge member returned to 102.

This patch changes the calculation back to what it was originally.

Test Plan

Create 200 epair interfaces and add them to bridge0, check
the number of members shown on ifconfig bridge0.

Diff Detail

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

Event Timeline

I'll try to review tomorrow.

Can I get you to add a test case for this to tests/sys/net/if_bridge_test.sh too?

@kp here you go (lint error seems to be a false positive)

This revision is now accepted and ready to land.Dec 21 2023, 2:52 PM
This revision was landed with ongoing or failed builds.Dec 21 2023, 3:51 PM
This revision was automatically updated to reflect the committed changes.