Skip to content

Commit

Permalink
feat(s2n-quic-xdp): Make io::rx::Channel::for_each public (#2405)
Browse files Browse the repository at this point in the history
This allows iteration over descriptors in the rx channel.
  • Loading branch information
OliverGavin authored Dec 6, 2024
1 parent fd5ee73 commit 645c36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/xdp/s2n-quic-xdp/src/io/rx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl<D: Driver> Channel<D> {

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

0 comments on commit 645c36a

Please sign in to comment.