Ubuntu Server Guide
DPDK Device configuration
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
DPDK Device configuration
The package dpdk provides init scripts that ease configuration of device assignment and huge pages. It also makes them persistent across reboots. The following is an example of the file /etc/dpdk/interfaces configuring two ports of a network card. One with uio_pci_generic and the other one with vfio −pci. # C u r r e n t l y o n l y ” p c i ” i s s u p p o r t e d # De vi ce ID on t h e s p e c i f i e d bus # D r i v e r t o bind a g a i n s t ( v f i o −p c i o r u i o _ p c i _ g e n e r i c ) # # Be aware t h a t t h e two DPDK c o m p a t i b l e d r i v e r s u i o _ p c i _ g e n e r i c and v f i o −p c i a r e # p a r t o f l i n u x −image−e x t r a − # This package i s not always i n s t a l l e d by d e f a u l t − f o r example i n cloud − images . # So p l e a s e i n s t a l l i t i n c a s e you run i n t o m i s s i n g module i s s u e s . # # p c i 0 0 0 0 : 0 4 : 0 0 . 0 u i o _ p c i _ g e n e r i c p c i 0 0 0 0 : 0 4 : 0 0 . 1 v f i o −p c i Cards are identified by their PCI-ID. If you are unsure you might use the tool dpdk_nic_bind.py to show the current available devices and the drivers they are assigned to. dpdk_nic_bind . py −−s t a t u s Network d e v i c e s u s i n g DPDK−c o m p a t i b l e d r i v e r ============================================ 0 0 0 0 : 0 4 : 0 0 . 0 ’ E t h e r n e t C o n t r o l l e r 10− G i g a b i t X540−AT2’ drv=u i o _ p c i _ g e n e r i c unused=i x g b e Network d e v i c e s u s i n g k e r n e l d r i v e r =================================== 0 0 0 0 : 0 2 : 0 0 . 0 ’ NetXtreme BCM5719 G i g a b i t E t h e r n e t PCIe ’ i f =e t h 0 drv=t g 3 unused= u i o _ p c i _ g e n e r i c * A c t i v e * 0 0 0 0 : 0 2 : 0 0 . 1 ’ NetXtreme BCM5719 G i g a b i t E t h e r n e t PCIe ’ i f =e t h 1 drv=t g 3 unused= u i o _ p c i _ g e n e r i c 0 0 0 0 : 0 2 : 0 0 . 2 ’ NetXtreme BCM5719 G i g a b i t E t h e r n e t PCIe ’ i f =e t h 2 drv=t g 3 unused= u i o _ p c i _ g e n e r i c 0 0 0 0 : 0 2 : 0 0 . 3 ’ NetXtreme BCM5719 G i g a b i t E t h e r n e t PCIe ’ i f =e t h 3 drv=t g 3 unused= u i o _ p c i _ g e n e r i c 0 0 0 0 : 0 4 : 0 0 . 1 ’ E t h e r n e t C o n t r o l l e r 10− G i g a b i t X540−AT2’ i f =e t h 5 drv=i x g b e unused=u i o _ p c i _ g e n e r i c 69 |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling