diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-30 17:36:59 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-30 17:36:59 +0200 |
commit | c3fec06db030445563d3945eec6320afa9a3db62 (patch) | |
tree | 67c378766f2e999813f6c32007afed3b69cab6b9 /ring_rx.h | |
parent | 6fbc585ee38b92cea338e96a5f661c811cd28990 (diff) |
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 <dborkman@redhat.com>
Diffstat (limited to 'ring_rx.h')
-rw-r--r-- | ring_rx.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 */ |