[rtems-libbsd commit] Revert "if_cgem: Enable hardware checksum assist"
Chris Johns
chrisj at rtems.org
Mon Jun 22 00:43:54 UTC 2015
Module: rtems-libbsd
Branch: master
Commit: 0d003d7e73566c11239e01fe72630c0cfdf0429b
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=0d003d7e73566c11239e01fe72630c0cfdf0429b
Author: Chris Johns <chrisj at rtems.org>
Date: Mon Jun 22 10:40:36 2015 +1000
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.
---
freebsd/sys/dev/cadence/if_cgem.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/freebsd/sys/dev/cadence/if_cgem.c b/freebsd/sys/dev/cadence/if_cgem.c
index 27ce43d..df4d346 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);
More information about the vc
mailing list