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

Function find_write_desc

dpdk/lib/vhost/vhost_crypto.c:474–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474static __rte_always_inline struct vhost_crypto_desc *
475find_write_desc(struct vhost_crypto_desc *head, struct vhost_crypto_desc *desc,
476 uint32_t max_n_descs)
477{
478 if (desc < head)
479 return NULL;
480
481 while (desc - head < (int)max_n_descs) {
482 if (desc->flags & VRING_DESC_F_WRITE)
483 return desc;
484 desc++;
485 }
486
487 return NULL;
488}
489
490static __rte_always_inline struct virtio_crypto_inhdr *
491reach_inhdr(struct vhost_crypto_data_req *vc_req,

Callers 2

prepare_sym_cipher_opFunction · 0.85
prepare_sym_chain_opFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected