-
Notifications
You must be signed in to change notification settings - Fork 1.4k
lib/uknetdev: Define and implement burst transactions for netdevice #243
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
base: staging
Are you sure you want to change the base?
lib/uknetdev: Define and implement burst transactions for netdevice #243
Conversation
The netdev parameter maybe unused if the UK_ASSERT are not enabled. To suppress the unused warning we add `__maybe_unused` attribute. Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
Transmit a burst of packets. This patch also provides a compatible tx_one interface to be backwards compatible to the uk_netdev_tx_one interface. Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
On performing `uk_netdev_tx_burst`, a portion of netbufs on the list of buffers may not be sent and a status UK_NETDEV_UNDERRUN is reported back. The helper function allows to check the flag is set. Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
Receive a burst of packets on a rx queue. The patch also provides a compatible rx_one interface to be compatible with the uk_netdev_rx_one Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
Add support to ANY_LAYOUT to the virtio driver. The advantage of using ANY_LAYOUT reduces the necessity of having 2 descriptor per packet to 1 descriptor per packet Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
The transmit ring frees a burst of packet from the ring instead of freeing one packet at time. This patch also allows the users of the netdev to make the decision of releasing the transmission buffer. Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
|
Beep boop! I ran Unikraft's
Truncated logs starting from first warning a1569a0: View complete logs | Learn more about Unikraft's coding style and contribution guidelines. |
|
I see that netdevice supports burst in earlier versions, why was this feature removed? |
@skuenzer, could you answer this? |
Hi @Zack-Will, Thanks, Simon |
This patch series enables batching the send/receive operation on
a network packets on a netdev. The implementation extends the
virtio-net driver to support batch operation.