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:
Gregory Nutt 2019-09-16 08:24:58 -06:00
parent 5995714cfd
commit 20f4e05b09
3 changed files with 12 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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;
}