diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2022-06-28 10:01:14 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2022-06-28 10:01:14 +0000 |
commit | 59b53b08aef84c836289f4230075c47316c9fb05 (patch) | |
tree | 07961b67968ea166321c6b3e7e87e51761b3a5a7 /regress | |
parent | 19ce84fd9068377523942d050c4431789e9dc468 (diff) |
Use refcnt API for struct rtentry instead of hand-crafted atomic
operations.
OK mvs@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/net/rtable/kern_compat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/sys/net/rtable/kern_compat.h b/regress/sys/net/rtable/kern_compat.h index 6515fe389f6..874e726de65 100644 --- a/regress/sys/net/rtable/kern_compat.h +++ b/regress/sys/net/rtable/kern_compat.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_compat.h,v 1.12 2021/04/13 08:21:12 claudio Exp $ */ +/* $OpenBSD: kern_compat.h,v 1.13 2022/06/28 10:01:13 bluhm Exp $ */ #ifndef _KERN_COMPAT_H_ #define _KERN_COMPAT_H_ @@ -74,6 +74,8 @@ extern struct domain *domains[]; #define rw_exit_write(rwl) #define rw_assert_wrlock(rwl) +#define refcnt_read(cnt) 1 + #define SET(t, f) ((t) |= (f)) #define CLR(t, f) ((t) &= ~(f)) #define ISSET(t, f) ((t) & (f)) |