DOCA NVME Patch for GDS via nvidia-fs

I am trying to understand DOCA NVME patch required for nvidia-fs to work, based on my understanding basically we need to add 3 files in

drivers/nvme/host/nvfs-dma.c
drivers/nvme/host/nvfs-dma.h
drivers/nvme/host/nvfs.h
and patch drivers/nvme/host/pci.c

but what is confusing is the interleaving of flags HAVE_DMA_PCI_P2PDMA_SUPPORTED and CONFIG_NVFS , i thought both are mutually exclusive.
my question

  1. can i only consider changes under CONFIG_NVFS only ( i using 6.8 + kernel)
    2.rmmod of nvidia-fs stucks when i make cahnges as per 1.

Hi @alok.prasad7 ,
Thanks for contact NVidia and welcome.
Could you provide more info about the questions such as:

  • The document(s) you refered to?
  • The detail steps of reproducing the issue and your expected target?
  • Your environement information such as OS distribution and version, Kernel version, DOCA version, driver/firmware versions you are using?

Best regards!