From 88b404a610325d9ddae100875a2ccb4de0c94bbe Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Sun, 23 May 2004 19:21:48 +0000 Subject: Mark the VLAN_MTU capability as initially enabled since it's hardcoded to "ON" for these interfaces. --- sys/dev/hme/if_hme.c | 1 + sys/dev/tx/if_tx.c | 1 + 2 files changed, 2 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/hme/if_hme.c b/sys/dev/hme/if_hme.c index 46cc6d6ba9640..e2c22fa27447d 100644 --- a/sys/dev/hme/if_hme.c +++ b/sys/dev/hme/if_hme.c @@ -319,6 +319,7 @@ hme_config(struct hme_softc *sc) */ ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); ifp->if_capabilities |= IFCAP_VLAN_MTU; + ifp->if_capenable |= IFCAP_VLAN_MTU; callout_init(&sc->sc_tick_ch, 0); return (0); diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index 944dcd3e9f8d1..2b58cb146618f 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -413,6 +413,7 @@ epic_attach(dev) ifp->if_hdrlen = sizeof(struct ether_vlan_header); ifp->if_capabilities |= IFCAP_VLAN_MTU; + ifp->if_capenable |= IFCAP_VLAN_MTU; callout_handle_init(&sc->stat_ch); /* Activate our interrupt handler. */ -- cgit v1.3