Page MenuHomeFreeBSD

qlnxe: Refactor setting the promiscuous and allmulti mode
ClosedPublic

Authored by zlei on Mon, Jan 26, 6:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 18, 12:10 AM
Unknown Object (File)
Tue, Feb 17, 11:15 PM
Unknown Object (File)
Tue, Feb 10, 11:59 PM
Unknown Object (File)
Mon, Feb 9, 10:34 AM
Unknown Object (File)
Mon, Jan 26, 11:46 PM
Unknown Object (File)
Mon, Jan 26, 9:01 PM
Unknown Object (File)
Mon, Jan 26, 8:37 PM
Unknown Object (File)
Mon, Jan 26, 7:00 PM
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