net/offload: add offload support for pkt/arp

1. add offload support for pkt/arp
2. Reset the d_buf to NULL if d_iob has released

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2022-12-03 21:38:16 +08:00
committed by Xiang Xiao
parent 0dafa5f921
commit 82d67b201a
5 changed files with 71 additions and 9 deletions
+1
View File
@@ -124,5 +124,6 @@ void netdev_iob_release(FAR struct net_driver_s *dev)
{
iob_free_chain(dev->d_iob);
dev->d_iob = NULL;
dev->d_buf = NULL;
}
}