General comments: You need to wrap i40e private API by #ifdef RTE_LIBRTE_I40E_PMD #endif
Otherwise it will cause compile error if I40E_PMD is not enable in config. You can refer to other implementation like cmd_ptype_mapping_get_parsed. Thanks Jingjing