Project

General

Profile

Bug #30 ยป netif_vlan.diff

dragonfly, 12/30/2005 08:15 PM

View differences:

bge/if_bge.c 30 Dec 2005 19:29:21 -0000
ifq_set_maxlen(&ifp->if_snd, BGE_TX_RING_CNT - 1);
ifq_set_ready(&ifp->if_snd);
ifp->if_hwassist = BGE_CSUM_FEATURES;
ifp->if_capabilities = IFCAP_HWCSUM;
ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING |
IFCAP_VLAN_MTU;
ifp->if_capenable = ifp->if_capabilities;
/*
gx/if_gx.c 30 Dec 2005 19:50:46 -0000
ifp->if_init = gx_init;
ifp->if_mtu = ETHERMTU;
ifq_set_maxlen(&ifp->if_snd, GX_TX_RING_CNT - 1);
ifp->if_capabilities = IFCAP_VLAN_HWTAGGING;
ifq_set_ready(&ifp->if_snd);
/* see if we can enable hardware checksumming */
if (gx->gx_vflags & GXF_CSUM) {
ifp->if_capabilities = IFCAP_HWCSUM;
ifp->if_capabilities |= IFCAP_HWCSUM;
ifp->if_capenable = ifp->if_capabilities;
}
nge/if_nge.c 30 Dec 2005 19:19:08 -0000
ifq_set_maxlen(&ifp->if_snd, NGE_TX_LIST_CNT - 1);
ifq_set_ready(&ifp->if_snd);
ifp->if_hwassist = NGE_CSUM_FEATURES;
ifp->if_capabilities = IFCAP_HWCSUM;
ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING;
ifp->if_capenable = ifp->if_capabilities;
/*
ti/if_ti.c 30 Dec 2005 19:33:36 -0000
sc = device_get_softc(dev);
ifp = &sc->arpcom.ac_if;
if_initname(ifp, device_get_name(dev), device_get_unit(dev));
ifp->if_capabilities = IFCAP_HWCSUM;
ifp->if_capabilities = IFCAP_HWCSUM |
IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU;
ifp->if_capenable = ifp->if_capabilities;
pci_enable_busmaster(dev);
txp/if_txp.c 30 Dec 2005 19:35:16 -0000
if (rsp->rsp_par2 & rsp->rsp_par3 & OFFLOAD_VLAN) {
sc->sc_tx_capability |= OFFLOAD_VLAN;
sc->sc_rx_capability |= OFFLOAD_VLAN;
ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;
}
#if 0
    (1-1/1)