Skip to content
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

virtio_net: support split header #144

Open
hengqiali opened this issue Sep 2, 2022 · 0 comments
Open

virtio_net: support split header #144

hengqiali opened this issue Sep 2, 2022 · 0 comments

Comments

@hengqiali
Copy link

The purpose of this feature is to split the header and the payload of
the packet.

|                                                receive buffer                                              |
|                                      0th descriptor                        |   1th descriptor    |
|  virtnet hdr  |  mac  |  ip hdr  |  tcp hdr |<-- hold -->|          payload       |

We can use a buffer plus a separate page when allocating the receive
buffer. In this way, we can ensure that all payloads can be
independently in a page, which is very beneficial for the zerocopy
implemented by the upper layer.

https://lists.oasis-open.org/archives/virtio-dev/202208/msg00110.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant