HomeFreeBSD

vlan: Respect IFCAP_LRO mask

Description

vlan: Respect IFCAP_LRO mask

vlan_capabilities(), used by the IFCAP ioctl, was not respecting the
IFCAP_LRO bit if it was masked by the requestor.

This prevented if_bridge(4) from automasking LRO with a message like:
bridge0: can't disable some capabilities on em3.11: 0x400

This also prevented manually disabling LRO from any vlan interface.

PR: 254596
Reported by: Paul Vixie <paul@redbarn.org>

(cherry picked from commit b1a39c31a3569bd045a0f40057c3773fc8166f6d)

Details

Provenance
Kevin Bowling <kbowling@FreeBSD.org>Authored on Aug 12 2023, 4:31 PM
Parents
rGb8e5efdd24b0: e1000: Some fixes for hardware capabilities
Branches
Unknown
Tags
Unknown

Event Timeline

Kevin Bowling <kbowling@FreeBSD.org> committed rGf73eb35106cc: vlan: Respect IFCAP_LRO mask (authored by Kevin Bowling <kbowling@FreeBSD.org>).Aug 18 2023, 12:59 AM