98c7b9c97e
'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: bfe2ae495ee2 ("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>