mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
devif_poll: only call the corresponding xxx_poll when there is data to be sent
reduce the execution consumption of irrelevant code testing the TX rates of TCP and UDP based on the Infineon board can increase them by 13%. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -411,6 +411,10 @@ struct net_driver_s
|
||||
|
||||
net_ipv6addr_t d_ipv6draddr; /* Default router IPv6 address */
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
uint32_t d_polltype; /* The collection of protocols that need to
|
||||
* be processed in devif_poll
|
||||
*/
|
||||
|
||||
/* This is a new design that uses d_iob as packets input and output
|
||||
* buffer which used by some NICs such as celluler net driver. Case for
|
||||
* data input, note that d_iob maybe a linked chain only when using
|
||||
|
||||
Reference in New Issue
Block a user