DPDK
===
###### tags: `Telecom` `QCT` `DPDK` `5G`
## Poll Mode Driver
[PMD 機制簡介](https://my.oschina.net/u/2539854/blog/735332)
- igb_uio - It is an out-of-tree kernel module.
- vfio - It requires an IOMMU be present (though this should change in future kernels).
- uio_pci_generic - It requires the device have legacy interrupts, so won't work with virtual function devices.
## Kernel NIC Interface
The KNI kernel loadable module *rte_kni* provides the kernel interface /dev/kni for DPDK applications to communicate with the kernel network protocal stack by DPDK KNI APIs.
:::info
/dev/kni is faster than existing Linux TUN/TAP interfaces (by eliminating system calls and copy_to_user()/copy_from_user() operations).
:::
* Allows an interface /dev/kni with the kernel network protocal stack.
* Allows DPDK ports using standard Linux net tools such as ethtool, ifconfig and tcpdump.
- [Learning DPDK : KNI interface](https://haryachyy.wordpress.com/2016/02/07/learning-dpdk-kni-sample-overview/amp/)