Skip to content

Commit

Permalink
[CI] Make handling functions and tap field pub
Browse files Browse the repository at this point in the history
Make event handling functions from vsock and tap field from net
pub so we can use them from fuzzer.

Signed-off-by: AlexandruCihodaru <cihodar@amazon.com>
  • Loading branch information
AlexandruCihodaru committed Jul 15, 2021
1 parent 214314d commit 1a93dcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/devices/src/virtio/net/device.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ unsafe impl ByteValued for ConfigSpace {}
pub struct Net {
pub(crate) id: String,

pub(crate) tap: Tap,
pub tap: Tap,

pub(crate) avail_features: u64,
pub(crate) acked_features: u64,
Expand Down
8 changes: 4 additions & 4 deletions src/devices/src/virtio/vsock/event_handler.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl<B> Vsock<B>
where
B: VsockBackend + 'static,
{
pub(crate) fn handle_rxq_event(&mut self, evset: EventSet) -> bool {
pub fn handle_rxq_event(&mut self, evset: EventSet) -> bool {
debug!("vsock: RX queue event");

if evset != EventSet::IN {
Expand All @@ -56,7 +56,7 @@ where
raise_irq
}

pub(crate) fn handle_txq_event(&mut self, evset: EventSet) -> bool {
pub fn handle_txq_event(&mut self, evset: EventSet) -> bool {
debug!("vsock: TX queue event");

if evset != EventSet::IN {
Expand All @@ -82,7 +82,7 @@ where
raise_irq
}

fn handle_evq_event(&mut self, evset: EventSet) -> bool {
pub fn handle_evq_event(&mut self, evset: EventSet) -> bool {
debug!("vsock: event queue event");

if evset != EventSet::IN {
Expand All @@ -98,7 +98,7 @@ where
false
}

fn notify_backend(&mut self, evset: EventSet) -> bool {
pub fn notify_backend(&mut self, evset: EventSet) -> bool {
debug!("vsock: backend event");

self.backend.notify(evset);
Expand Down

0 comments on commit 1a93dcc

Please sign in to comment.