mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
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:
committed by
Petro Karashchenko
parent
e247eaf3e8
commit
ba9486de4a
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user