diff options
Diffstat (limited to 'ring_rx.h')
-rw-r--r-- | ring_rx.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -23,6 +23,11 @@ static inline int user_may_pull_from_rx(struct tpacket2_hdr *hdr) return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER); } +static inline int user_may_pull_from_rx_block(struct block_desc *pbd) +{ + return ((pbd->h1.block_status & TP_STATUS_USER) == TP_STATUS_USER); +} + static inline void kernel_may_pull_from_rx(struct tpacket2_hdr *hdr) { hdr->tp_status = TP_STATUS_KERNEL; |