diff options
| author | msaitoh <msaitoh@NetBSD.org> | 2019-07-09 08:46:58 +0000 |
|---|---|---|
| committer | msaitoh <msaitoh@NetBSD.org> | 2019-07-09 08:46:58 +0000 |
| commit | 586908d303a44bf79a844c0d489c5031debe07f0 (patch) | |
| tree | a74135514c6ada04ad788fdb324c753639a2aecf /sys/dev/hyperv | |
| parent | 590e7bf56be8fb35c38547438d6ed4b496ade99c (diff) | |
Don't automatically set ec_capenable's ETHERCAP_VLAN_HWTAGGING bit in
vlan_config() to make it user-controllable. Instead, set the bit in
xxx_attach().
Diffstat (limited to 'sys/dev/hyperv')
| -rw-r--r-- | sys/dev/hyperv/if_hvn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/hyperv/if_hvn.c b/sys/dev/hyperv/if_hvn.c index 92227c1fa34..be7dbe2d9fa 100644 --- a/sys/dev/hyperv/if_hvn.c +++ b/sys/dev/hyperv/if_hvn.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_hvn.c,v 1.3 2019/05/29 10:07:29 msaitoh Exp $ */ +/* $NetBSD: if_hvn.c,v 1.4 2019/07/09 08:46:58 msaitoh Exp $ */ /* $OpenBSD: if_hvn.c,v 1.39 2018/03/11 14:31:34 mikeb Exp $ */ /*- @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.3 2019/05/29 10:07:29 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.4 2019/07/09 08:46:58 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -284,6 +284,7 @@ hvn_attach(device_t parent, device_t self, void *aux) if (sc->sc_proto >= HVN_NVS_PROTO_VERSION_2) { sc->sc_ec.ec_capabilities |= ETHERCAP_VLAN_HWTAGGING; sc->sc_ec.ec_capabilities |= ETHERCAP_VLAN_MTU; + sc->sc_ec.ec_capenable |= ETHERCAP_VLAN_HWTAGGING; } IFQ_SET_MAXLEN(&ifp->if_snd, HVN_TX_DESC - 1); |
