numam-dpdk/drivers/crypto/bcmfs/bcmfs_sym_pmd.h
Vikas Gupta 751dca9024 crypto/bcmfs: create a symmetric cryptodev
Create a symmetric crypto device and add supported cryptodev ops.

Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2020-10-14 22:22:06 +02:00

39 lines
961 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Broadcom
* All rights reserved.
*/
#ifndef _BCMFS_SYM_PMD_H_
#define _BCMFS_SYM_PMD_H_
#include <rte_cryptodev.h>
#include "bcmfs_device.h"
#define CRYPTODEV_NAME_BCMFS_SYM_PMD crypto_bcmfs
#define BCMFS_CRYPTO_MAX_HW_DESCS_PER_REQ 16
extern uint8_t cryptodev_bcmfs_driver_id;
/** private data structure for a BCMFS device.
* This BCMFS device is a device offering only symmetric crypto service,
* there can be one of these on each bcmfs_pci_device (VF).
*/
struct bcmfs_sym_dev_private {
/* The bcmfs device hosting the service */
struct bcmfs_device *fsdev;
/* Device instance for this rte_cryptodev */
uint8_t sym_dev_id;
/* BCMFS device symmetric crypto capabilities */
const struct rte_cryptodev_capabilities *fsdev_capabilities;
};
int
bcmfs_sym_dev_create(struct bcmfs_device *fdev);
int
bcmfs_sym_dev_destroy(struct bcmfs_device *fdev);
#endif /* _BCMFS_SYM_PMD_H_ */