Page MenuHomeFreeBSD

Fix capabilities handling for iflib drivers
ClosedPublic

Authored by shurd on Sep 13 2018, 8:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 26 2024, 5:43 PM
Unknown Object (File)
Dec 20 2023, 3:12 AM
Unknown Object (File)
Dec 5 2023, 6:46 PM
Unknown Object (File)
Nov 11 2023, 2:28 PM
Unknown Object (File)
Nov 9 2023, 8:02 PM
Unknown Object (File)
Nov 9 2023, 2:52 PM
Unknown Object (File)
Nov 9 2023, 12:06 PM
Unknown Object (File)
Nov 7 2023, 7:55 AM
Subscribers

Details

Summary

Various capabilities were not being handled correctly in the
SIOCSIFCAP handler. Specifically:

IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 could be set even if not supported

It was impossible to disable IFCAP_RXCSUM and/or IFCAP_RXCSUM_IPV6 via
ifconfig since it does ioctl() per command-line flag rather than combine
them into a single call.

IFCAP_VLAN_HWCSUM could not be modified via the ioctl()

Setting any combination of the three IFCAP_WOL flags would set only
IFCAP_WOL_MCAST | IFCAP_WOL_MAGIC. For example, setting only
IFCAP_WOL_UCAST would result in both IFCAP_WOL_MCAST and IFCAP_WOL_MAGIC
being enabled, bit IFCAP_WOL_UCAST would not be enabled.

Because if_vlancap() was called before if_togglecapenable(), vlan flags
were sometimes not paplied correctly.

Interfaces was being unnecessarily stopped and restarted for WoL
capability changes.

PR: 231151
Submitted by: Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>

Test Plan

Ensure all ifconfig options are applied correctly.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable