mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 02:13:19 +00:00
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:
parent
8d7799d6c1
commit
00dfb5d1f3
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue