On Wed, 31 Jan 2024 17:12:43 +0800, Jason Wang <jasowang@xxxxxxxxxx> wrote: > On Tue, Jan 30, 2024 at 7:43 PM Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx> wrote: > > > > Export the premapped to drivers, then drivers can check > > the vq premapped mode after the find_vqs(). > > This looks odd, it's the charge of the driver to set premapped, so it > should know it? If the use_dma_api is false, we can not enable the premapped mode. Though we wrapped dma apis, but the AF_XDP use the default dma api directly. As we discussed, we just work in premapped mode when the use_dma_api is true. Thanks. > > Thanks >