[Bug 231151] ifconfig: unable to disable rxcsum, rxcsum6 and vlanhwcsum on em driver

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Sep 12 17:53:47 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231151

--- Comment #8 from Stephen Hurd <shurd at FreeBSD.org> ---
(In reply to Kaho Toshikazu from comment #7)

> the variable setmask should be also masked by isc_capabilities, I think. 

Everything going into setmask should be masked by mask already... I've got that
fixed in my patch now, will update right away.

> No, it is not broken. 

I meant in the existing code, not in your patch.  I'm trying to figure out why
the old code was forcing only IFCAP_WOL_MCAST|IFCAP_WOL_MAGIC if any WoL flag
(including IFCAL_WOL_UCAST) was set.

If a driver requires something like this, and the isc_capabilities isn't enough
to restrict it, there needs to be a flag, a callback, or at least an update to
some manpages regarding it.  It's almost certainly better to set the WoL
capabilities as specified and have some not work then it is to not allow some
to be specified at all or to change what set is enabled.

> But the Wol feature doesn't have any effect until shutdown or suspend time, and set flags only and avoid re-initialization.

Yeah, that part is good.  We may actually want a larger set of things that
don't reinit.

> The vlan_hwcsum is simply forgot in the  definition IFCAP_FLAGS. 

You also moved the if_vlancap(ifp) line to after the reinit.  I'm trying to
figure out if it should be set while the interface is stopped.  It currently
doesn't really make a difference as far as I can tell, but it may make sense to
update while the interface is down, but then the context will be locked.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list