Skip to content

net: drop implicit peer from offload API

Stefan Hajnoczi qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: remove implicit peer from offload APIhw/net/virtio-net.c hw/net/vmxnet3.c include/net/net.h +1 more+40 -400 replies
2/3vhost_net: use offload API instead of bypassing ithw/net/vhost_net.c+3 -30 replies
3/3virtio-net: use qemu_get_queue() where possiblehw/net/virtio-net.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] net: drop implicit peer from offload API

This series is based on my net tree, which already has Vincenzo's "Add netmap backend offloadings support" patch series merged.

After merging the series I realized we were bypassing the net.h API and directly accessing nc->info->... in some cases. This series cleans that up, at the cost of moving ->peer back up to offload API callers.

I think that's the right thing to do to make net.h APIs consistent (the other functions don't have implicit ->peer) and avoid bypassing the API.

Stefan Hajnoczi (3):
net: remove implicit peer from offload API
vhost_net: use offload API instead of bypassing it
virtio-net: use qemu_get_queue() where possible

 hw/net/vhost_net.c  |  6 +++---
 hw/net/virtio-net.c | 12 ++++++------
 hw/net/vmxnet3.c    | 18 +++++++++---------
 include/net/net.h   | 14 +++++++-------
 net/net.c           | 36 ++++++++++++++++++------------------
 5 files changed, 43 insertions(+), 43 deletions(-)
Signature · 1 line
1.8.5.3