mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 23:35:02 +00:00
make desc_reclaimable macro safe to arbitrary arguments
This commit is contained in:
parent
c2c54c3d82
commit
b9d6bc3b79
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167524
|
@ -411,7 +411,7 @@ void t3_update_qset_coalesce(struct sge_qset *qs, const struct qset_params *p);
|
|||
/*
|
||||
* XXX figure out how we can return this to being private to sge
|
||||
*/
|
||||
#define desc_reclaimable(q) (q->processed - q->cleaned - TX_MAX_DESC)
|
||||
#define desc_reclaimable(q) ((q)->processed - (q)->cleaned - TX_MAX_DESC)
|
||||
|
||||
#define container_of(p, stype, field) ((stype *)(((uint8_t *)(p)) - offsetof(stype, field)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue