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)
Sat, May 4, 1:06 AM
Unknown Object (File)
Sat, Apr 27, 6:25 AM
Unknown Object (File)
Sat, Apr 27, 5:19 AM
Unknown Object (File)
Sat, Apr 27, 1:49 AM
Unknown Object (File)
Tue, Apr 16, 5:36 PM
Unknown Object (File)
Feb 18 2024, 12:03 PM
Unknown Object (File)
Feb 9 2024, 8:16 PM
Unknown Object (File)
Jan 28 2024, 1:57 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.