Problem initializing dpdk in ConnectX-5 and ConnectX-6 Dx in Switchdev mode

I am having difficulty initalizing dpdk in siwtchdev mode for the X5 and X6-Dx cards in kernel 4.18.0-348.el8.x86_64 and above i also tried running dpdk in kernel 5.13.1 but it the same issue the card is changed form legacy to switchdev but it is not running dpdk.
I have tried the running on the latest dpdk as well as the previous version upto 22.07 but the issue persist. so far the only kernel on which i am able to run dpdk with my cards in Switchdev mode is 4.18.0-348.7.1.el8_5.x86_64.

Rather ask in the network adapter forum:
https://forums.developer.nvidia.com/c/infrastructure/adapters-and-cables/infiniband-vpi-adapter-cards/541

Check here for switchdev support,

https://doc.dpdk.org/guides/nics/mlx5.html#multiport-e-switch