ethernet: Release iob when dropping ethernet packets

Release iob when dropping ethernet packets

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
This commit is contained in:
gaohedong 2025-01-13 22:39:17 +08:00 committed by Alan C. Assis
parent 8d7799d6c1
commit 00dfb5d1f3

View file

@ -597,6 +597,7 @@ static void eth_input(FAR struct net_driver_s *dev)
ninfo("INFO: Dropped, Unknown type: %04x\n", eth_hdr->type);
NETDEV_RXDROPPED(dev);
dev->d_len = 0;
netdev_iob_release(dev);
}
/* If the above function invocation resulted in data