vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Please test with any em(4) adapters. This enables transmit TCP/UDP checksum offload. Please send me the dmesg. Index: if_em.c ================================================== ================= RCS file: /cvs/src/sys/dev/pci/if_em.c,v retrieving revision 1.166 diff -u -p -r1.166 if_em.c --- if_em.c 2007/01/26 15:55:30 1.166 +++ if_em.c 2007/01/31 06:35:24 @@ -928,8 +928,7 @@ em_media_change(struct ifnet *ifp) int em_encap(struct em_softc *sc, struct mbuf *m_head) { - u_int32_t txd_upper; - u_int32_t txd_lower, txd_used = 0, txd_saved = 0; + u_int32_t txd_upper, txd_lower, txd_used, txd_saved; int i, j, first, error = 0, last = 0; bus_dmamap_t map; @@ -941,6 +940,8 @@ em_encap(struct em_softc *sc, struct mbu struct em_buffer *tx_buffer, *tx_buffer_mapped; struct em_tx_desc *current_tx_desc = NULL; + txd_upper = txd_lower = txd_used = txd_saved = 0; + /* * Force a cleanup if number of TX descriptors * available hits the threshold @@ -977,14 +978,8 @@ em_encap(struct em_softc *sc, struct mbu if (map->dm_nsegs > sc->num_tx_desc_avail - 2) goto fail; -#ifdef EM_CSUM_OFFLOAD if (sc->hw.mac_type >= em_82543) em_transmit_checksum_setup(sc, m_head, &txd_upper, &txd_lower); - else - txd_upper = txd_lower = 0; -#else - txd_upper = txd_lower = 0; -#endif i = sc->next_avail_tx_desc; if (sc->pcix_82544) @@ -1647,10 +1642,8 @@ em_setup_interface(struct em_softc *sc) ifp->if_capabilities = IFCAP_VLAN_MTU; -#ifdef EM_CSUM_OFFLOAD if (sc->hw.mac_type >= em_82543) - ifp->if_capabilities |= IFCAP_CSUM_TCPv4|IFCAP_CSUM_UDPv4; -#endif + ifp->if_capabilities |= IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4; /* * Specify the media types supported by this adapter and register |