Skip to content

Commit 645c36a

Browse files
authored
feat(s2n-quic-xdp): Make io::rx::Channel::for_each public (#2405)
This allows iteration over descriptors in the rx channel.
1 parent fd5ee73 commit 645c36a

File tree

1 file changed

+1
-1
lines changed
  • tools/xdp/s2n-quic-xdp/src/io

1 file changed

+1
-1
lines changed

tools/xdp/s2n-quic-xdp/src/io/rx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl<D: Driver> Channel<D> {
117117

118118
/// Iterates over all of the acquired entries in the ring and calls `on_packet`
119119
#[inline]
120-
fn for_each<F: FnMut(RxTxDescriptor)>(&mut self, mut on_packet: F) {
120+
pub fn for_each<F: FnMut(RxTxDescriptor)>(&mut self, mut on_packet: F) {
121121
// one last effort to acquire any packets
122122
let len = self.rx.acquire(1);
123123
let len = self.fill.acquire(len);

0 commit comments

Comments
 (0)