虚拟机Ubuntu 18.04安装dpdk18.11

1 虚拟机用了2个核,2G内存,3个网卡

2 去http://core.dpdk.org/download/下载了18.11

3 安装apt-get install libnuma-dev

4 运行ifconfig down ***停掉2个网卡,方便后面添加到dpdk

5 解压后,进入usertools,运行dpdk-setup.sh。系统是64位的,所以选择x86_64-native-linuxapp-gcc。

运行成功:

 其中 .......cannot run with T defined .......暂时不管

6 根据提示的选项,安装IGB UIO

7 根据提示的选项设置hugepages,这里设置256

8 根据提示的选项绑定之前停用的网卡,这里都是intel的网卡

9 根据提示的选项,运行testpmd。如果报EAL Error reading from file descriptor 23 Input output error  则需要修改dpdk目录下的kernel/igb_uio/igb_uio.c,将

将文件中该行修改
pci_intx_mask_supported(dev)
修改为
pci_intx_mask_supported(dev)||true
再重新编译。

10 运行:

testpmd> start                # 开始转发命令

testpmd> stop                # 停止转发命令,结束时会显示转发的汇总(收、发、drop)

testpmd> quit                 # 退出testpmd

testpmd> show port stats all                 # 显示所有端口的收发包信息

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
2. DPDK Release 18.08 2.1. New Features Added support for Hyper-V netvsc PMD. The new netvsc poll mode driver provides native support for networking on Hyper-V. See the Netvsc poll mode driver NIC driver guide for more details on this new driver. Added Flow API support for CXGBE PMD. Flow API support has been added to CXGBE Poll Mode Driver to offload flows to Chelsio T5/T6 NICs. Support added for: Wildcard (LE-TCAM) and Exact (HASH) match filters. Match items: physical ingress port, IPv4, IPv6, TCP and UDP. Action items: queue, drop, count, and physical egress port redirect. Added ixgbe preferred Rx/Tx parameters. Rather than applications providing explicit Rx and Tx parameters such as queue and burst sizes, they can request that the EAL instead uses preferred values provided by the PMD, falling back to defaults within the EAL if the PMD does not provide any. The provision of such tuned values now includes the ixgbe PMD. Added descriptor status check support for fm10k. The rte_eth_rx_descriptor_status and rte_eth_tx_descriptor_status APIs are now supported by fm10K. Updated the enic driver. Add low cycle count Tx handler for no-offload Tx. Add low cycle count Rx handler for non-scattered Rx. Minor performance improvements to scattered Rx handler. Add handlers to add/delete VxLAN port number. Add devarg to specify ingress VLAN rewrite mode. Updated mlx5 driver. Updated the mlx5 driver including the following changes: Added port representors support. Added Flow API support for e-switch rules. Added support for ACTION_PORT_ID, ACTION_DROP, ACTION_OF_POP_VLAN, ACTION_OF_PUSH_VLAN, ACTION_OF_SET_VLAN_VID, ACTION_OF_SET_VLAN_PCP and ITEM_PORT_ID. Added support for 32-bit compilation. Added TSO support for the mlx4 driver. Added TSO support for the mlx4 drivers from MLNX_OFED_4.4 and above. SoftNIC PMD rework. The SoftNIC PMD infrastructure has been restructured to use the Packet Framework, which makes it more flexible, modular and easier to add new functionality in the future. Updated the AESNI MB PMD. The AESNI MB PMD has been updated with additional support for: 3DES for 8, 16 and 24 byte keys. Added a new compression PMD using Intel’s QuickAssist (QAT) device family. Added the new QAT compression driver, for compression and decompression operations in software. See the Intel(R) QuickAssist (QAT) Compression Poll Mode Driver compression driver guide for details on this new driver. Updated the ISA-L PMD. Added support for chained mbufs (input and output).
要在VMware虚拟机安装Ubuntu 18.04,可以按照以下步骤进行操作: 1. 首先,从官方网站上下载并安装VMware软件。在安装过程中,请按照向导的提示进行操作,并确保VMware软件成功安装。 2. 下载Ubuntu 18.04的镜像文件。你可以从Ubuntu官方网站上下载镜像文件,并确保选择与你的计算机系统兼容的版本。 3. 在VMware中创建一个新的虚拟机,并将Ubuntu 18.04的镜像文件加载到虚拟机中。在创建虚拟机的过程中,你需要为虚拟机分配足够的内存、硬盘空间和其他必要的设置。 4. 安装Ubuntu 18.04操作系统。在虚拟机中启动Ubuntu 18.04,并按照向导的提示进行安装。在安装过程中,你需要选择安装语言、时区、键盘布局等相关设置。 5. 设置Ubuntu系统。一旦安装完成,你可以根据需要进行一些系统设置,例如调整分辨率[2.3.1]、安装VMware Tools[2.3.2]等。 总结起来,安装VMware虚拟机中的Ubuntu 18.04的步骤包括:下载并安装VMware软件、下载Ubuntu 18.04镜像文件、在VMware中创建虚拟机并加载镜像文件、安装Ubuntu 18.04操作系统,最后进行必要的系统设置。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [VMware虚拟机安装Ubuntu18.04linux发行版)【超详细图文教程】](https://blog.csdn.net/weixin_43290551/article/details/125954709)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [VMware15虚拟机安装Ubuntu18.04的图文教程](https://download.csdn.net/download/weixin_38657835/14048613)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值