iob: Remove iob_user_e enum and related code

since it is impossible to track producer and consumer
correctly if TCP/IP stack pass IOB directly to netdev

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-08-08 10:21:03 +08:00
committed by Petro Karashchenko
parent e247eaf3e8
commit ba9486de4a
66 changed files with 246 additions and 589 deletions
+2 -2
View File
@@ -410,7 +410,7 @@ int sixlowpan_queue_frames(FAR struct radio_driver_s *radio,
* necessary.
*/
iob = net_ioballoc(false, IOBUSER_NET_6LOWPAN);
iob = net_ioballoc(false);
DEBUGASSERT(iob != NULL);
/* Initialize the IOB */
@@ -634,7 +634,7 @@ int sixlowpan_queue_frames(FAR struct radio_driver_s *radio,
* necessary.
*/
iob = net_ioballoc(false, IOBUSER_NET_6LOWPAN);
iob = net_ioballoc(false);
DEBUGASSERT(iob != NULL);
/* Initialize the IOB */
+1 -1
View File
@@ -763,7 +763,7 @@ int sixlowpan_input(FAR struct radio_driver_s *radio,
if (ret >= 0)
{
iob_free(iob, IOBUSER_NET_6LOWPAN);
iob_free(iob);
}
/* Was the frame successfully processed? Is the packet in d_buf fully