mirror of https://github.com/F-Stack/f-stack.git
Update igb_uio, sync from git://dpdk.org/dpdk-kmods.
This commit is contained in:
parent
fe40712835
commit
5ada33e91a
|
@ -1,7 +1,7 @@
|
|||
KSRC ?= /lib/modules/`uname -r`/build
|
||||
KSRC ?= /lib/modules/$(shell uname -r)/build
|
||||
|
||||
all:
|
||||
make -C $(KSRC)/ M=$(PWD)
|
||||
make -C $(KSRC)/ M=$(CURDIR)
|
||||
|
||||
clean:
|
||||
make -C $(KSRC)/ M=$(PWD) clean
|
||||
%:
|
||||
make -C $(KSRC)/ M=$(CURDIR) $@
|
||||
|
|
|
@ -512,18 +512,12 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
|||
goto fail_release_iomem;
|
||||
|
||||
/* set 64-bit DMA mask */
|
||||
err = pci_set_dma_mask(dev, DMA_BIT_MASK(64));
|
||||
err = dma_set_mask_and_coherent(&dev->dev, DMA_BIT_MASK(64));
|
||||
if (err != 0) {
|
||||
dev_err(&dev->dev, "Cannot set DMA mask\n");
|
||||
goto fail_release_iomem;
|
||||
}
|
||||
|
||||
err = pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(64));
|
||||
if (err != 0) {
|
||||
dev_err(&dev->dev, "Cannot set consistent DMA mask\n");
|
||||
goto fail_release_iomem;
|
||||
}
|
||||
|
||||
/* fill uio infos */
|
||||
udev->info.name = "igb_uio";
|
||||
udev->info.version = "0.1";
|
||||
|
|
Loading…
Reference in New Issue