summaryrefslogtreecommitdiff
path: root/ring_rx.h
diff options
context:
space:
mode:
Diffstat (limited to 'ring_rx.h')
-rw-r--r--ring_rx.h5
1 files changed, 5 insertions, 0 deletions
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 */