mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 01:10:15 +08:00
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.
This commit is contained in:
parent
82830ce063
commit
0d003d7e73
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user