From c3fec06db030445563d3945eec6320afa9a3db62 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 30 May 2013 17:36:59 +0200 Subject: ring: add necessary structures and helper functions for v3 Prepare and add some structures an helper functions for TPACKET_V3. Signed-off-by: Daniel Borkmann --- ring_rx.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ring_rx.h') diff --git a/ring_rx.h b/ring_rx.h index 8d695e5..0e0478c 100644 --- a/ring_rx.h +++ b/ring_rx.h @@ -28,4 +28,9 @@ static inline void kernel_may_pull_from_rx(struct tpacket2_hdr *hdr) hdr->tp_status = TP_STATUS_KERNEL; } +static inline void kernel_may_pull_from_rx_block(struct block_desc *pbd) +{ + pbd->h1.block_status = TP_STATUS_KERNEL; +} + #endif /* RX_RING_H */ -- cgit v1.2.3-54-g00ecf