Re: [dpdk-users] Error while building DPDK version 19.11 over latest kernel version

2020-10-02 Thread David Marchand
On Fri, Oct 2, 2020 at 9:06 AM Klei rama  wrote:
> I am trying to build DPDK version 19.11 in my ubuntu machine (18.04) with
> the latest kernel version 5.9. It gives me an error while I try to build
> it. The error is when I try to build linux/kni module.
> The error looks something like this:
>
> *dpdk/kernel/linux/kni/kni_dev.h:104:30:* *error: *passing argument 1 of ‘
> *get_user_pages_remote*’ from incompatible pointer type [
> *-Werror=incompatible-pointer-types*]

There was a patch merged recently in the main branch.
See: https://git.dpdk.org/dpdk/commit/?id=87efaea6376c


-- 
David Marchand



Re: [dpdk-users] Error while building DPDK version 19.11 over latest kernel version

2020-10-02 Thread Thomas Monjalon
01/10/2020 19:04, Klei rama:
> Hei,
> 
> I am trying to build DPDK version 19.11 in my ubuntu machine (18.04) with
> the latest kernel version 5.9. It gives me an error while I try to build
> it. The error is when I try to build linux/kni module.
> The error looks something like this:
> 
> *dpdk/kernel/linux/kni/kni_dev.h:104:30:* *error: *passing argument 1 of ‘
> *get_user_pages_remote*’ from incompatible pointer type [
> *-Werror=incompatible-pointer-types*]
> 
> 
> Is there any workaround?

Yes, it will be fixed with the backport of this patch:
http://git.dpdk.org/dpdk/commit/?id=87efaea6376c8

> Do I need to disable that module or should I
> downgrade the kernel version? I wanted to debug my application and see if
> it needs kni module but I did not not how to disable kni module. I tried
> common_base and common_linux under config directory but could not find the
> line which disable this module.

You can disable KNI in the config file:
CONFIG_RTE_KNI_KMOD=n





[dpdk-users] dpdk hash performance

2020-10-02 Thread rahul s
Hi,

I am using rte_hash library with parameters as 2k entries with rte_jhash
function with key len as 8 bytes.And key I am using here is just 64 bit
unsigned integer .

Similarly  I am looking on c ++ std:unorder_mapmap  with similar entries .
I am just doing lookup  with 20 keys  aginsts 2k entries and the  through
put  performance dip around <=4gbps using rte_hash when compared to
std:unorder_map in 100G line  .Is there any way to scale the performance
using the rte_hash library...

with regards,
Rahul


[dpdk-users] Interface disappears after binding with DPDK igb_uio

2020-10-02 Thread Nilanjana Basu
Hello,

I am trying to use DPDK on a IXGBE port, but whenever I bind the igb_uio
driver to this interface, the interface disappears from the system. DPDK
however shows the interface as attached. I also have the KNI module present
added to the system, as there are some previous threads that suggested that
the interface does not show up because igb_uio driver does not generate
netdev devices.

Following is the log of the operations:

1. `ifconfig` before binding:
enp3s0f0: flags=4099  mtu 1500
ether a0:36:9f:2d:d9:90  txqueuelen 1000  (Ethernet)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 1000  (Local Loopback)
RX packets 142934  bytes 63512875 (63.5 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 142934  bytes 63512875 (63.5 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

2. ./dpdk-devbind.py --status-dev net
Network devices using kernel driver
===
:02:00.0 '82576 Gigabit Network Connection 10c9' if=enp2s0f0 drv=igb
unused=igb_uio
:02:00.1 '82576 Gigabit Network Connection 10c9' if=enp2s0f1 drv=igb
unused=igb_uio
:03:00.0 'Ethernet Controller 10-Gigabit X540-AT2 1528' if=enp3s0f0
drv=ixgbe unused=igb_uio

3. ./dpdk-devbind.py -b igb_uio :03:00.0

4. ./dpdk-devbind.py --status-dev net
Network devices using DPDK-compatible driver

:03:00.0 'Ethernet Controller 10-Gigabit X540-AT2 1528' drv=igb_uio
unused=ixgbe

Network devices using kernel driver
===
:02:00.0 '82576 Gigabit Network Connection 10c9' if=enp2s0f0 drv=igb
unused=igb_uio
:02:00.1 '82576 Gigabit Network Connection 10c9' if=enp2s0f1 drv=igb
unused=igb_uio

5. `ifconfig` after binding:
lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 1000  (Local Loopback)
RX packets 142934  bytes 63512875 (63.5 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 142934  bytes 63512875 (63.5 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Any help will be greatly appreciated.


[dpdk-users] Error while building DPDK version 19.11 over latest kernel version

2020-10-02 Thread Klei rama
Hei,

I am trying to build DPDK version 19.11 in my ubuntu machine (18.04) with
the latest kernel version 5.9. It gives me an error while I try to build
it. The error is when I try to build linux/kni module.
The error looks something like this:

*dpdk/kernel/linux/kni/kni_dev.h:104:30:* *error: *passing argument 1 of ‘
*get_user_pages_remote*’ from incompatible pointer type [
*-Werror=incompatible-pointer-types*]


Is there any workaround?Do I need to disable that module or should I
downgrade the kernel version? I wanted to debug my application and see if
it needs kni module but I did not not how to disable kni module. I tried
common_base and common_linux under config directory but could not find the
line which disable this module.


Any kind of help will be very much appreciated.


Cheers,

Klei