X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcrypto%2Fbcmfs%2Fbcmfs_sym_pmd.c;h=bc7fb6721829e5d430c493aef3ebc0565e4f881f;hb=581c39b1cb7d82d301a8ec6a16778bcf6ee11c7c;hp=568797b4fdedbf9f57023eef065148724a89a78f;hpb=492a19a04634e0efad1b4bd594f420969fec420f;p=dpdk.git diff --git a/drivers/crypto/bcmfs/bcmfs_sym_pmd.c b/drivers/crypto/bcmfs/bcmfs_sym_pmd.c index 568797b4fd..bc7fb67218 100644 --- a/drivers/crypto/bcmfs/bcmfs_sym_pmd.c +++ b/drivers/crypto/bcmfs/bcmfs_sym_pmd.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include "bcmfs_device.h" #include "bcmfs_logs.h" @@ -132,10 +132,8 @@ static void spu_req_init(struct bcmfs_sym_request *sr, rte_iova_t iova __rte_unused) { memset(sr, 0, sizeof(*sr)); - sr->fptr = iova; - sr->cptr = iova + offsetof(struct bcmfs_sym_request, cipher_key); - sr->aptr = iova + offsetof(struct bcmfs_sym_request, auth_key); - sr->iptr = iova + offsetof(struct bcmfs_sym_request, iv); + sr->fptr = iova + offsetof(struct bcmfs_sym_request, fmd); + sr->optr = iova + offsetof(struct bcmfs_sym_request, omd); sr->dptr = iova + offsetof(struct bcmfs_sym_request, digest); sr->rptr = iova + offsetof(struct bcmfs_sym_request, resp); } @@ -396,6 +394,8 @@ bcmfs_sym_dev_create(struct bcmfs_device *fsdev) internals->sym_dev_id = cryptodev->data->dev_id; internals->fsdev_capabilities = bcmfs_sym_get_capabilities(); + rte_cryptodev_pmd_probing_finish(cryptodev); + BCMFS_LOG(DEBUG, "Created bcmfs-sym device %s as cryptodev instance %d", cryptodev->data->name, internals->sym_dev_id); return 0;