diff options
author | Björn Töpel <bjorn.topel@intel.com> | 2018-05-22 09:35:03 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-22 10:25:06 +0200 |
commit | d3b42f1422d9c050bf5a2c660c045af2ab5d3e72 (patch) | |
tree | 12259d05c54986563fb2696dd85b48fc5c94f686 /net/xdp/xdp_umem.h | |
parent | xsk: simplified umem setup (diff) | |
download | linux-d3b42f1422d9c050bf5a2c660c045af2ab5d3e72.tar.xz linux-d3b42f1422d9c050bf5a2c660c045af2ab5d3e72.zip |
xsk: convert atomic_t to refcount_t
Introduce refcount_t, in favor of atomic_t.
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/xdp/xdp_umem.h')
-rw-r--r-- | net/xdp/xdp_umem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xdp/xdp_umem.h b/net/xdp/xdp_umem.h index 9802287ff19d..0881cf456230 100644 --- a/net/xdp/xdp_umem.h +++ b/net/xdp/xdp_umem.h @@ -27,7 +27,7 @@ struct xdp_umem { struct pid *pid; unsigned long address; size_t size; - atomic_t users; + refcount_t users; struct work_struct work; }; |