HomeFreeBSD

qlnxe: Refactor setting the promiscuous and allmulti mode

Description

qlnxe: Refactor setting the promiscuous and allmulti mode

There are two entry points to set the promiscuous and allmulti mode.
One is ioctl, and another is the init routine. Given they share almost
the identical logic, refactor a little to make the code more clear.

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

Reviewed by: kbowling
MFC after: 5 days
Differential Revision: https://reviews.freebsd.org/D54890

Details

Provenance
zleiAuthored on Feb 6 2026, 5:52 PM
Reviewer
kbowling
Differential Revision
D54890: qlnxe: Refactor setting the promiscuous and allmulti mode
Parents
rGec7950fe4234: qlnxev: Remove now unneeded include for opt_inet.h
Branches
Unknown
Tags
Unknown