MCPcopy Create free account
hub / github.com/F-Stack/f-stack / async_iter_initialize

Function async_iter_initialize

dpdk/lib/vhost/virtio_net.c:1059–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057}
1058
1059static __rte_always_inline int
1060async_iter_initialize(struct virtio_net *dev, struct vhost_async *async)
1061{
1062 struct vhost_iov_iter *iter;
1063
1064 if (unlikely(async->iovec_idx >= VHOST_MAX_ASYNC_VEC)) {
1065 VHOST_LOG_DATA(dev->ifname, ERR, "no more async iovec available\n");
1066 return -1;
1067 }
1068
1069 iter = async->iov_iter + async->iter_idx;
1070 iter->iov = async->iovec + async->iovec_idx;
1071 iter->nr_segs = 0;
1072
1073 return 0;
1074}
1075
1076static __rte_always_inline int
1077async_iter_add_iovec(struct virtio_net *dev, struct vhost_async *async,

Callers 4

mbuf_to_descFunction · 0.85
desc_to_mbufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected