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
@ -1716,7 +1716,7 @@ static void stm32_receive(FAR struct stm32_ethmac_s *priv)
|
|||||||
|
|
||||||
if (dev->d_len > CONFIG_NET_ETH_PKTSIZE)
|
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 */
|
/* 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)
|
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 */
|
/* 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)
|
if (dev->d_len > CONFIG_NET_ETH_PKTSIZE)
|
||||||
{
|
{
|
||||||
nwarn("WARNING: DROPPED Too big: %d\n", dev->d_len);
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user