net/devif: remove link layer length from loopback

Add link layer length in loopback is unnecessary after below change checkin:

 | commit 6fa60627eb
 | Author: chao an <anchao@xiaomi.com>
 | Date:   Sun Nov 27 02:13:21 2022 +0800
 |
 |     net/devif/ip: build l2 header on the IP layer
 |
 |     Signed-off-by: chao an <anchao@xiaomi.com>

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-11-30 02:32:23 +08:00 committed by Xiang Xiao
parent 391b501639
commit 823252261f

View File

@ -123,13 +123,6 @@ int devif_loopback(FAR struct net_driver_s *dev)
}
NETDEV_TXDONE(dev);
/* Add the link layer header length for the next loop */
if (dev->d_len != 0)
{
dev->d_len += dev->d_llhdrlen;
}
}
while (dev->d_len > 0);