mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 01:57:05 +08:00
[bsp][tm4c129x] Update drv_eth.c
Decide whether to close eth hardware checksum by definition.
This commit is contained in:
parent
eabb04ed3d
commit
066a54fbc1
@ -634,8 +634,13 @@ tivaif_transmit(net_device_t dev, struct pbuf *p)
|
|||||||
pDesc->Desc.ui32CtrlStatus = 0;
|
pDesc->Desc.ui32CtrlStatus = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef RT_LWIP_USING_HW_CHECKSUM
|
||||||
pDesc->Desc.ui32CtrlStatus |= (DES0_TX_CTRL_IP_ALL_CKHSUMS |
|
pDesc->Desc.ui32CtrlStatus |= (DES0_TX_CTRL_IP_ALL_CKHSUMS |
|
||||||
DES0_TX_CTRL_CHAINED);
|
DES0_TX_CTRL_CHAINED);
|
||||||
|
#else
|
||||||
|
pDesc->Desc.ui32CtrlStatus |= (DES0_TX_CTRL_NO_CHKSUM |
|
||||||
|
DES0_TX_CTRL_CHAINED);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Decrement our descriptor counter, move on to the next buffer in the
|
/* Decrement our descriptor counter, move on to the next buffer in the
|
||||||
* pbuf chain. */
|
* pbuf chain. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user