numam-dpdk/drivers/crypto/octeontx/otx_cryptodev.h
Anoob Joseph 98c7b9c97e crypto/octeontx: fix global log variable definition
'cpt_logtype' & 'otx_cryptodev_driver_id' global variables are defined
in a header file which was causing multiple definitions of the
variables. Fixed it by moving the required vars to the .c file and
introducing a new macro so the CPT_LOG macros in common/cpt would use
the associated PMD log var.

Issue has been detected by '-fno-common' gcc flag.

Fixes: bfe2ae495e ("crypto/octeontx: add PMD skeleton")
Cc: stable@dpdk.org

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
2019-10-09 11:50:12 +02:00

25 lines
498 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Cavium, Inc
*/
#ifndef _OTX_CRYPTODEV_H_
#define _OTX_CRYPTODEV_H_
/* Cavium OCTEON TX crypto PMD device name */
#define CRYPTODEV_NAME_OCTEONTX_PMD crypto_octeontx
/* Device ID */
#define PCI_VENDOR_ID_CAVIUM 0x177d
#define CPT_81XX_PCI_VF_DEVICE_ID 0xa041
#define CPT_LOGTYPE otx_cpt_logtype
extern int otx_cpt_logtype;
/*
* Crypto device driver ID
*/
extern uint8_t otx_cryptodev_driver_id;
#endif /* _OTX_CRYPTODEV_H_ */