netif_vlan.diff

dragonfly, 12/30/2005 08:15 PM

Download (2.93 KB)

View differences:

bge/if_bge.c 30 Dec 2005 19:29:21 -0000
1661 1661
	ifq_set_maxlen(&ifp->if_snd, BGE_TX_RING_CNT - 1);
1662 1662
	ifq_set_ready(&ifp->if_snd);
1663 1663
	ifp->if_hwassist = BGE_CSUM_FEATURES;
1664
	ifp->if_capabilities = IFCAP_HWCSUM;
1664
	ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING |
1665
	    IFCAP_VLAN_MTU;
1665 1666
	ifp->if_capenable = ifp->if_capabilities;
1666 1667

  
1667 1668
	/*
gx/if_gx.c 30 Dec 2005 19:50:46 -0000
335 335
	ifp->if_init = gx_init;
336 336
	ifp->if_mtu = ETHERMTU;
337 337
	ifq_set_maxlen(&ifp->if_snd, GX_TX_RING_CNT - 1);
338
	ifp->if_capabilities = IFCAP_VLAN_HWTAGGING;
338 339
	ifq_set_ready(&ifp->if_snd);
339 340

  
340 341
	/* see if we can enable hardware checksumming */
341 342
	if (gx->gx_vflags & GXF_CSUM) {
342
		ifp->if_capabilities = IFCAP_HWCSUM;
343
		ifp->if_capabilities |= IFCAP_HWCSUM;
343 344
		ifp->if_capenable = ifp->if_capabilities;
344 345
	}
345 346

  
nge/if_nge.c 30 Dec 2005 19:19:08 -0000
849 849
	ifq_set_maxlen(&ifp->if_snd, NGE_TX_LIST_CNT - 1);
850 850
	ifq_set_ready(&ifp->if_snd);
851 851
	ifp->if_hwassist = NGE_CSUM_FEATURES;
852
	ifp->if_capabilities = IFCAP_HWCSUM;
852
	ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING;
853 853
	ifp->if_capenable = ifp->if_capabilities;
854 854

  
855 855
	/*
ti/if_ti.c 30 Dec 2005 19:33:36 -0000
1409 1409
	sc = device_get_softc(dev);
1410 1410
	ifp = &sc->arpcom.ac_if;
1411 1411
	if_initname(ifp, device_get_name(dev), device_get_unit(dev));
1412
	ifp->if_capabilities = IFCAP_HWCSUM;
1412
	ifp->if_capabilities = IFCAP_HWCSUM |
1413
	    IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU;
1413 1414
	ifp->if_capenable = ifp->if_capabilities;
1414 1415

  
1415 1416
	pci_enable_busmaster(dev);
txp/if_txp.c 30 Dec 2005 19:35:16 -0000
1723 1723
	if (rsp->rsp_par2 & rsp->rsp_par3 & OFFLOAD_VLAN) {
1724 1724
		sc->sc_tx_capability |= OFFLOAD_VLAN;
1725 1725
		sc->sc_rx_capability |= OFFLOAD_VLAN;
1726
		ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;
1726 1727
	}
1727 1728

  
1728 1729
#if 0