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

Function get_data_ptr

dpdk/lib/vhost/vhost_crypto.c:537–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537static __rte_always_inline void *
538get_data_ptr(struct vhost_crypto_data_req *vc_req,
539 struct vhost_crypto_desc *cur_desc,
540 uint8_t perm)
541 __rte_shared_locks_required(&vc_req->vq->iotlb_lock)
542{
543 void *data;
544 uint64_t dlen = cur_desc->len;
545
546 data = IOVA_TO_VVA(void *, vc_req, cur_desc->addr, &dlen, perm);
547 if (unlikely(!data || dlen != cur_desc->len)) {
548 VC_LOG_ERR("Failed to map object");
549 return NULL;
550 }
551
552 return data;
553}
554
555static __rte_always_inline uint32_t
556copy_data_from_desc(void *dst, 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