| 1057 | } |
| 1058 | |
| 1059 | static __rte_always_inline int |
| 1060 | async_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 | |
| 1076 | static __rte_always_inline int |
| 1077 | async_iter_add_iovec(struct virtio_net *dev, struct vhost_async *async, |
no outgoing calls
no test coverage detected