You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/02/18 03:08:51 UTC
[nuttx] branch master updated: stm32_eth: Enabled store-end-forward.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 9bfa9a0b49 stm32_eth: Enabled store-end-forward.
9bfa9a0b49 is described below
commit 9bfa9a0b49886afb1e57db8cb0cde24a4d8947f3
Author: Fotis Panagiotopoulos <f....@gmail.com>
AuthorDate: Fri Feb 17 22:16:30 2023 +0200
stm32_eth: Enabled store-end-forward.
---
arch/arm/src/stm32/stm32_eth.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/arch/arm/src/stm32/stm32_eth.c b/arch/arm/src/stm32/stm32_eth.c
index f01fbe3bb9..29b8c4ccbf 100644
--- a/arch/arm/src/stm32/stm32_eth.c
+++ b/arch/arm/src/stm32/stm32_eth.c
@@ -485,12 +485,10 @@
* ETH_DMAOMR_ST Start/stop transmission 0 (not running)
* ETH_DMAOMR_TTC Transmit threshold control 0 (64 bytes)
* ETH_DMAOMR_FTF Flush transmit FIFO 0 (no flush)
- * ETH_DMAOMR_TSF Transmit store and forward Depends on
- * CONFIG_STM32_ETH_HWCHECKSUM
+ * ETH_DMAOMR_TSF Transmit store and forward 1 (enabled)
* ETH_DMAOMR_DFRF Disable flushing of received 0 (enabled)
* frames
- * ETH_DMAOMR_RSF Receive store and forward Depends on
- * CONFIG_STM32_ETH_HWCHECKSUM
+ * ETH_DMAOMR_RSF Receive store and forward 1 (enabled)
* TH_DMAOMR_DTCEFD Dropping of TCP/IP checksum Depends on
* error frames disable CONFIG_STM32_ETH_HWCHECKSUM
*
@@ -507,7 +505,7 @@
#else
# define DMAOMR_SET_MASK \
(ETH_DMAOMR_OSF | ETH_DMAOMR_RTC_64 | ETH_DMAOMR_TTC_64 | \
- ETH_DMAOMR_DTCEFD)
+ ETH_DMAOMR_TSF | ETH_DMAOMR_RSF | ETH_DMAOMR_DTCEFD)
#endif
/* Clear the DMABMR bits that will be setup during MAC initialization (or