mirror of
https://github.com/apache/nuttx.git
synced 2026-08-06 13:08:59 +00:00
arch/arm/src/stm32h7/stm32_ethernet.c: Bazooka Joe's fix to the STM32 F7 Ethernet driver (ec4a7be5c2) should be applied to the H7 as well. The other STM32 Ethernet driver already has the change.
This commit is contained in:
parent
5995714cfd
commit
20f4e05b09
3 changed files with 12 additions and 2 deletions
|
|
@ -1716,7 +1716,7 @@ static void stm32_receive(FAR struct stm32_ethmac_s *priv)
|
|||
|
||||
if (dev->d_len > CONFIG_NET_ETH_PKTSIZE)
|
||||
{
|
||||
nerr("ERROR: Dropped, Too big: %d\n", dev->d_len);
|
||||
nwarn("WARNING: DROPPED Too big: %d\n", dev->d_len);
|
||||
|
||||
/* Free dropped packet buffer */
|
||||
|
||||
|
|
|
|||
|
|
@ -1796,7 +1796,7 @@ static void stm32_receive(struct stm32_ethmac_s *priv)
|
|||
|
||||
if (dev->d_len > CONFIG_NET_ETH_PKTSIZE)
|
||||
{
|
||||
nerr("ERROR: Dropped, Too big: %d\n", dev->d_len);
|
||||
nwarn("WARNING: DROPPED Too big: %d\n", dev->d_len);
|
||||
|
||||
/* Free dropped packet buffer */
|
||||
|
||||
|
|
|
|||
|
|
@ -1884,6 +1884,16 @@ static void stm32_receive(struct stm32_ethmac_s *priv)
|
|||
if (dev->d_len > CONFIG_NET_ETH_PKTSIZE)
|
||||
{
|
||||
nwarn("WARNING: DROPPED Too big: %d\n", dev->d_len);
|
||||
|
||||
/* Free dropped packet buffer */
|
||||
|
||||
if (dev->d_buf)
|
||||
{
|
||||
stm32_freebuffer(priv, dev->d_buf);
|
||||
dev->d_buf = NULL;
|
||||
dev->d_len = 0;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue