mirror of
https://github.com/apache/nuttx.git
synced 2026-10-23 23:08:44 +00:00
drivers/net: change netdev_lower_quota_load to macro.
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
This commit is contained in:
parent
79758c5150
commit
060fda032b
3 changed files with 5 additions and 22 deletions
|
|
@ -320,8 +320,7 @@ void netdev_lower_txdone(FAR struct netdev_lowerhalf_s *dev);
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
int netdev_lower_quota_load(FAR struct netdev_lowerhalf_s *dev,
|
||||
enum netpkt_type_e type);
|
||||
#define netdev_lower_quota_load(dev, type) atomic_read(&dev->quota[type])
|
||||
|
||||
/****************************************************************************
|
||||
* Name: netpkt_alloc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue