-
Notifications
You must be signed in to change notification settings - Fork 103
net: implement a backend for tap devices #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c675d96
to
1c53e25
Compare
0ebad2c
to
4e51a43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, please fix the cfg!
comment.
I'm not sure how we want to handle enabling the features/offload, if we hardcode them then why do we let the user specify the virtio features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the comments that Matej already made, this looks good to me.
Apologies for the delay, this one fell through the cracks.
4e3b406
to
b5e6cf9
Compare
We're going to use it from different modules, so move them upper in the crate. Signed-off-by: Sergio Lopez <[email protected]>
We're going to incorporate a new backend that doesn't require us to write the header on each frame, so move this functionality from the worker to each backend. Signed-off-by: Sergio Lopez <[email protected]>
0a09706
to
1ef4f3a
Compare
Implement a new backend that allows network interfaces to use a tap device on the host to read/write frames. Signed-off-by: Sergio Lopez <[email protected]>
With the new API, as we're actively participating in opening the connection to the network proxy, the creation of the virtio-net backend may fail. Avoid using "unwrap" and fail gracefully on device activation instead. Signed-off-by: Sergio Lopez <[email protected]>
We had cfg! checks for net on methods that are only present if net is enabled, so let's remove them. Suggested-by: Matej Hrica <[email protected]> Signed-off-by: Sergio Lopez <[email protected]>
@mtjhrc PTAL |
@mtjhrc do we need any more changes to this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now
Implement a new backend that allows network interfaces to use a tap device on the host to read/write frames.