netdev_upperhalf: reply logic only for ipv4/ipv6/arp input
VELAPLATFO-12228 Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
This commit is contained in:
parent
04c4207dee
commit
872913e67b
|
@ -381,6 +381,18 @@ static void eth_input(FAR struct net_driver_s *dev)
|
||||||
NETDEV_RXDROPPED(dev);
|
NETDEV_RXDROPPED(dev);
|
||||||
dev->d_len = 0;
|
dev->d_len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If the above function invocation resulted in data
|
||||||
|
* that should be sent out on the network,
|
||||||
|
* the field d_len will set to a value > 0.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (dev->d_len > 0)
|
||||||
|
{
|
||||||
|
/* And send the packet */
|
||||||
|
|
||||||
|
netdev_upper_txpoll(dev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -454,18 +466,6 @@ static void netdev_upper_rxpoll_work(FAR struct netdev_upperhalf_s *upper)
|
||||||
nerr("Unknown link type %d\n", dev->d_lltype);
|
nerr("Unknown link type %d\n", dev->d_lltype);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the above function invocation resulted in data
|
|
||||||
* that should be sent out on the network,
|
|
||||||
* the field d_len will set to a value > 0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (dev->d_len > 0)
|
|
||||||
{
|
|
||||||
/* And send the packet */
|
|
||||||
|
|
||||||
netdev_upper_txpoll(dev);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue