summaryrefslogtreecommitdiff
path: root/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'ring.h')
-rw-r--r--ring.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/ring.h b/ring.h
index facda23..5e47d37 100644
--- a/ring.h
+++ b/ring.h
@@ -31,12 +31,21 @@ struct frame_map {
struct sockaddr_ll s_ll __align_tpacket(sizeof(struct tpacket2_hdr));
};
+struct block_desc {
+ uint32_t version;
+ uint32_t offset_to_priv;
+ struct tpacket_hdr_v1 h1;
+};
+
struct ring {
struct iovec *frames;
uint8_t *mm_space;
size_t mm_len;
- struct tpacket_req layout;
struct sockaddr_ll s_ll;
+ union {
+ struct tpacket_req layout;
+ struct tpacket_req3 layout3;
+ };
};
static inline void next_rnd_slot(unsigned int *it, struct ring *ring)
ures where it's less common like ARM64. Change the default selection so that it's only done explicitly on those architectures where ACPI is universally used. Signed-off-by: Mark Brown <broonie@kernel.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Hanjun Guo <hanjun.guo@linaro.org> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/.gitignore')