Chain all the descriptors in the ring with an END */
| 294 | |
| 295 | /* Chain all the descriptors in the ring with an END */ |
| 296 | static inline void |
| 297 | vring_desc_init_split(struct vring_desc *dp, uint16_t n) |
| 298 | { |
| 299 | uint16_t i; |
| 300 | |
| 301 | for (i = 0; i < n - 1; i++) |
| 302 | dp[i].next = (uint16_t)(i + 1); |
| 303 | dp[i].next = VQ_RING_DESC_CHAIN_END; |
| 304 | } |
| 305 | |
| 306 | static inline void |
| 307 | vring_desc_init_indirect_packed(struct vring_packed_desc *dp, int n) |
no outgoing calls
no test coverage detected