summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/cadence
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-06-22 10:40:36 +1000
committerChris Johns <chrisj@rtems.org>2015-06-22 10:40:36 +1000
commit0d003d7e73566c11239e01fe72630c0cfdf0429b (patch)
tree0e27e985b4a9b42e6e587601f18451299da22440 /freebsd/sys/dev/cadence
parentRevert "Return the default TX and RX hardware checksum for the Cadence driver... (diff)
downloadrtems-libbsd-0d003d7e73566c11239e01fe72630c0cfdf0429b.tar.bz2
Revert "if_cgem: Enable hardware checksum assist"
This reverts commit dec6b678bba05624335c87b73dc160b54d845cbd. This default for TXCSUM and RXCSUM should be used and a user should turn on TXCSUM and RXCSUM.
Diffstat (limited to 'freebsd/sys/dev/cadence')
-rw-r--r--freebsd/sys/dev/cadence/if_cgem.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/freebsd/sys/dev/cadence/if_cgem.c b/freebsd/sys/dev/cadence/if_cgem.c
index 27ce43d3..df4d3469 100644
--- a/freebsd/sys/dev/cadence/if_cgem.c
+++ b/freebsd/sys/dev/cadence/if_cgem.c
@@ -1778,15 +1778,10 @@ cgem_attach(device_t dev)
ifp->if_init = cgem_init;
ifp->if_capabilities |= IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 |
IFCAP_VLAN_MTU | IFCAP_VLAN_HWCSUM;
-#ifndef __rtems__
/* Disable hardware checksumming by default. */
ifp->if_hwassist = 0;
ifp->if_capenable = ifp->if_capabilities &
~(IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 | IFCAP_VLAN_HWCSUM);
-#else /* __rtems__ */
- ifp->if_hwassist = CGEM_CKSUM_ASSIST;
- ifp->if_capenable = ifp->if_capabilities;
-#endif /* __rtems__ */
ifp->if_snd.ifq_drv_maxlen = CGEM_NUM_TX_DESCS;
IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen);
IFQ_SET_READY(&ifp->if_snd);