diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-05-22 13:59:17 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-05-22 13:59:17 +0000 |
| commit | 2d8c4e44b2c6688da960edb436084df71fb5d892 (patch) | |
| tree | d72ec7f0b86304baaf52ede74cc1acd576e3a712 | |
| parent | fc1bcbd0727630fb3b7e24875ca64bf3fc7a43c1 (diff) | |
Notes
| -rw-r--r-- | sys/dev/gx/if_gx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/gx/if_gx.c b/sys/dev/gx/if_gx.c index 9c54680fbe0f..9def700a794c 100644 --- a/sys/dev/gx/if_gx.c +++ b/sys/dev/gx/if_gx.c @@ -478,6 +478,8 @@ gx_init(void *xsc) /* setup transmit checksum control */ if (ifp->if_capenable & IFCAP_TXCSUM) ifp->if_hwassist = GX_CSUM_FEATURES; + else + ifp->if_hwassist = 0; ctrl |= GX_RXC_STRIP_ETHERCRC; /* not on 82542? */ CSR_WRITE_4(gx, GX_RX_CONTROL, ctrl); @@ -1530,7 +1532,7 @@ printf("overflow(2): %d, %d\n", cnt, GX_TX_RING_CNT); tx->tx_addr = vtophys(mtod(m, vm_offset_t)); tx->tx_status = 0; tx->tx_len = m->m_len; - if (gx->arpcom.ac_if.if_hwassist) { + if (gx->arpcom.ac_if.if_capenable & IFCAP_TXCSUM) { tx->tx_type = 1; tx->tx_command = GX_TXTCP_EXTENSION; tx->tx_options = csumopts; |
