Merge pull request #2521 from Simon-Leung/simon

[bsp][tm4c129x] Update drv_eth.c
This commit is contained in:
Bernard Xiong 2019-03-29 11:06:34 +08:00 committed by GitHub
commit 19f094ae43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -634,8 +634,13 @@ tivaif_transmit(net_device_t dev, struct pbuf *p)
pDesc->Desc.ui32CtrlStatus = 0;
}
#ifdef RT_LWIP_USING_HW_CHECKSUM
pDesc->Desc.ui32CtrlStatus |= (DES0_TX_CTRL_IP_ALL_CKHSUMS |
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
* pbuf chain. */