You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "wengzhe (via GitHub)" <gi...@apache.org> on 2023/06/15 00:42:05 UTC
[GitHub] [nuttx] wengzhe commented on a diff in pull request #9543: netdev/upper: Optimize on quota related operations
wengzhe commented on code in PR #9543:
URL: https://github.com/apache/nuttx/pull/9543#discussion_r1230300451
##########
drivers/net/netdev_upperhalf.c:
##########
@@ -72,6 +84,10 @@ struct netdev_upperhalf_s
#else
struct work_s work;
#endif
+
+#ifdef HAVE_ATOMIC
+ atomic_int quota[NETPKT_TYPENUM]; /* A copy as atomic from lower-half */
Review Comment:
Then the lower-half will need to change their init expression to `atomic_init`. Or maybe we can make a macro for lower-half to init it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org