diff options
author | Laurent Vivier <lvivier@redhat.com> | 2025-09-02 09:52:50 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-09-03 20:43:45 +0200 |
commit | 7ae35a9862bfddbe1a2debe649f82113fb807fae (patch) | |
tree | 9d0727511b9f74920761ab0315b58c22a1ecb8ff | |
parent | 2eb845a0e78c4ce0cd6f79c5cd9057f30c819595 (diff) | |
download | passt-7ae35a9862bfddbe1a2debe649f82113fb807fae.tar passt-7ae35a9862bfddbe1a2debe649f82113fb807fae.tar.gz passt-7ae35a9862bfddbe1a2debe649f82113fb807fae.tar.bz2 passt-7ae35a9862bfddbe1a2debe649f82113fb807fae.tar.lz passt-7ae35a9862bfddbe1a2debe649f82113fb807fae.tar.xz passt-7ae35a9862bfddbe1a2debe649f82113fb807fae.tar.zst passt-7ae35a9862bfddbe1a2debe649f82113fb807fae.zip |
packet: remove PACKET_POOL() and PACKET_POOL_P()
These macros are no longer used following the refactoring of packet
handlers to directly use iov_tail. Callers no longer require PACKET_POOL_P
for temporary pools, and PACKET_POOL can be replaced by PACKET_POOL_DECL
and separate initialization if needed.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | packet.h | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -59,19 +59,10 @@ struct _name ## _t { \ .size = _size, \ } -#define PACKET_POOL(name, size, buf, buf_size) \ - PACKET_POOL_DECL(name, size, buf) name = \ - PACKET_POOL_INIT_NOCAST(size, buf, buf_size) - #define PACKET_INIT(name, size, buf, buf_size) \ (struct name ## _t) PACKET_POOL_INIT_NOCAST(size, buf, buf_size) #define PACKET_POOL_NOINIT(name, size, buf) \ PACKET_POOL_DECL(name, size, buf) name ## _storage; \ static struct pool *name = (struct pool *)&name ## _storage - -#define PACKET_POOL_P(name, size, buf, buf_size) \ - PACKET_POOL(name ## _storage, size, buf, buf_size); \ - struct pool *name = (struct pool *)&name ## _storage - #endif /* PACKET_H */ |