net/devif: fix devif loopback

devif_loopback needs to be applied on l2 data, and was broken by commit below, now fix it.

| commit 8850dee746
| Author: chao an <anchao@xiaomi.com>
| Date:   Sun Nov 27 03:31:07 2022 +0800
|
|     net/devif: move preprocess of txpoll into common code
|
|     Signed-off-by: chao an <anchao@xiaomi.com>

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng 2022-12-01 14:33:06 +08:00 committed by Xiang Xiao
parent f7937d11a2
commit 3aac6a1a3b

View File

@ -842,6 +842,8 @@ int devif_poll_out(FAR struct net_driver_s *dev,
return 0;
}
devif_out(dev);
bstop = devif_loopback(dev);
if (bstop)
{
@ -850,8 +852,6 @@ int devif_poll_out(FAR struct net_driver_s *dev,
if (callback)
{
devif_out(dev);
return callback(dev);
}