Page MenuHomeFreeBSD

qlnxe: Refactor setting the promiscuous and allmulti mode
ClosedPublic

Authored by zlei on Jan 26 2026, 6:46 AM.
Tags
None
Referenced Files
F167469104: D54890.id170445.diff
Sat, Aug 22, 12:06 AM
Unknown Object (File)
Wed, Aug 19, 9:56 PM
Unknown Object (File)
Wed, Aug 19, 4:18 AM
Unknown Object (File)
Wed, Aug 19, 2:27 AM
Unknown Object (File)
Wed, Aug 19, 2:26 AM
Unknown Object (File)
Sat, Aug 15, 5:35 AM
Unknown Object (File)
Fri, Aug 14, 7:40 PM
Unknown Object (File)
Thu, Aug 13, 1:38 AM
Subscribers

Details

Summary

There're two entry points to set the promiscuous and allmulti mode. One
is ioctl and another is the init routine. Well they share almost the
identical logic so refactor a little to make the code clear.

While here, for the ioctl, translate the error to EINVAL to avoid
confusing the net stack.

MFC after: 1 week

Diff Detail

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

Event Timeline

zlei requested review of this revision.Jan 26 2026, 6:46 AM
This revision is now accepted and ready to land.Feb 6 2026, 6:29 AM