Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the problem that DPDK17 or 18 cannot bind a network card on CentOS 6

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Problems: such as the problem; for systems with kernel version less than 2.6.37, kernel modules can be compiled and inserted, but binding to the network card always fails (trace given in message refers to interrupt problem) After looking for some resources and comparing the relevant implementation code of 16, it is found that there is a problem with the flag sent, which can be bound normally after modification and the test is normal, but it must also be inserted into the dca kernel module before it can operate, otherwise it will always be reported to io error. The specific changes are as follows (the code in 17 and 18 moves part of it to a place called igbuio_pci_open, paying attention to the middle part At the beginning of igbuio_pci_open, directly reuturn 0): source file: igb_uio.c function: igbuio_pci_probeerr = sysfs_create_group (& dev- > dev.kobj, & dev_attr_grp); if (err! = 0) goto fail_release_iomem;udev- > mode = RTE_INTR_MODE_NONE;#if LINUX_VERSION_CODE

< KERNEL_VERSION(2, 6, 37) udev->

Info.irq =-2 udev- udev- > info.irq = 0 * register uio driver * / err = uio_register_device (& dev- > dev, & udev- > info)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report