Page MenuHomeFreeBSD

libifconfig: Fix bridge status member list
ClosedPublic

Authored by grembo on Dec 20 2023, 8:27 PM.
Tags
None
Referenced Files
F85216816: D43135.diff
Mon, Jun 3, 5:43 AM
Unknown Object (File)
Fri, May 31, 6:37 AM
Unknown Object (File)
Fri, May 31, 6:37 AM
Unknown Object (File)
Thu, May 9, 10:41 AM
Unknown Object (File)
Thu, May 9, 10:40 AM
Unknown Object (File)
Thu, May 9, 4:07 AM
Unknown Object (File)
Thu, May 9, 4:07 AM
Unknown Object (File)
Thu, May 9, 4:04 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 Warnings
SeverityLocationCodeMessage
Warningtests/sys/net/if_bridge_test.sh:CHMOD1Invalid Executable
Unit
No Test Coverage
Build Status
Buildable 55053
Build 51942: arc lint + arc unit

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.