[dpdk-users] RSS in X710 NIC

2016-12-01 Thread Eli Britstein
Hello all,

I am trying to operate RSS in X710 NIC.
In order to do so, I use l3fwd example.
I added a printf in l3fwd_lpm.c, right after rte_eth_rx_burst to print the 
lcore, queueid and nb_rx.
In my server I have 2 NICs. X520 and X710. From each NIC I connect to a switch, 
and another connection to another server running pktgen, with range DST IPs.
I operate with this cmdline:
./build/l3fwd -c f -n 1 -w  -- -P -p 1 -config 
"(0,0,1),(0,1,2)"
Where  is either a port from X520 NIC or the X710 one.

With X520 (using ixgbe), I see packets on both queues (0,1).
With X710 (using i40e) I see packets always on queue 0.
Though there is a message that I'd expect it should work.
PMD: i40e_pf_config_rss(): Max of contiguous 2 PF queues are configured

I use DPDK 16.07. Also tried 16.11 (and had to add -parse-ptype flag).

Please advise.
Thanks,
Eli
-
This email and any files transmitted and/or attachments with it are 
confidential and proprietary information of
Toga Networks Ltd., and intended solely for the use of the individual or entity 
to whom they are addressed.
If you have received this email in error please notify the system manager. This 
message contains confidential
information of Toga Networks Ltd., and is intended only for the individual 
named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail 
from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing 
or taking any action in reliance on
the contents of this information is strictly prohibited.




[dpdk-users] RSS in X710 NIC

2016-12-01 Thread Eli Britstein
Hello all,

I am trying to operate RSS in X710 NIC.
In order to do so, I use l3fwd example.
I added a printf in l3fwd_lpm.c, right after rte_eth_rx_burst to print the 
lcore, queueid and nb_rx.
In my server I have 2 NICs. 82599 and X710. From each NIC I connect to a 
switch, and another connection to another server running pktgen, with range DST 
IPs.
I operate with this cmdline:
./build/l3fwd -c f -n 1 -w  -- -P -p 1 -config 
"(0,0,1),(0,1,2)"
Where  is either a port from 82599 NIC or the X710 one.

With 82599 (using ixgbe), I see packets on both queues (0,1).
With X710 (using i40e) I see packets always on queue 0.
Though there is a message that I'd expect it should work.
PMD: i40e_pf_config_rss(): Max of contiguous 2 PF queues are configured

I use DPDK 16.07. Also tried 16.11 (and had to add -parse-ptype flag).

Please advise.
Thanks,
Eli
-
This email and any files transmitted and/or attachments with it are 
confidential and proprietary information of
Toga Networks Ltd., and intended solely for the use of the individual or entity 
to whom they are addressed.
If you have received this email in error please notify the system manager. This 
message contains confidential
information of Toga Networks Ltd., and is intended only for the individual 
named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail 
from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing 
or taking any action in reliance on
the contents of this information is strictly prohibited.




[dpdk-users] SRIOV with DPDK-PF: PMD: eth_ixgbevf_dev_init(): VF Initialization Failure

2016-11-10 Thread Eli Britstein
Hi all,

I want to use both PF and VF bound to igb_uio.
However, when doing so, VF init fails:

EAL: PCI device :04:10.1 on NUMA socket 0
EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd
PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -100
EAL: Error - exiting with code: 1
  Cause: Requested device :04:10.1 cannot be used

The sequence I use it this:

Initial state:
- 04:00.1 is bound to Linux driver (ixgbe)
- no VFs configured

Step 1: configure a VF
echo 1 > /sys/bus/pci/devices/:04:00.1/sriov_numvfs

Step 2: set VF's MAC address
ip link set dev enp4s0f1 vf 0 mac 00:bb:dd:04:00:00

Step 3: bind the VF to igb_uio

Step 4: execute L2FWD
./dpdk/examples/l2fwd/build/l2fwd -c 1 -n 1 -w :04:00.1 -- -T 0 -p 1 Works 
as expected

Step 5: bind the PF to igb_uio

Step 6: execute L2FWD again
./dpdk/examples/l2fwd/build/l2fwd -c 1 -n 1 -w :04:00.1 -- -T 0 -p 1

---
FAILURE
---

I tried several DPDK versions (1.7.1, 2.0.0, 2.2.0, 16.07). All fail in 
eth_ixgbevf_dev_init.
Usually the error code is -100, but in some cases also I saw -15.

Please advise
Thanks,
Eli


-
This email and any files transmitted and/or attachments with it are 
confidential and proprietary information of
Toga Networks Ltd., and intended solely for the use of the individual or entity 
to whom they are addressed.
If you have received this email in error please notify the system manager. This 
message contains confidential
information of Toga Networks Ltd., and is intended only for the individual 
named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail 
from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing 
or taking any action in reliance on
the contents of this information is strictly prohibited.




[dpdk-users] SRIOV with DPDK-PF: PMD: eth_ixgbevf_dev_init(): VF Initialization Failure

2016-11-10 Thread Eli Britstein
Hi all,



I want to use both PF and VF bound to igb_uio.

However, when doing so, VF init fails:



EAL: PCI device :04:10.1 on NUMA socket 0

EAL:   probe driver: 8086:10ed rte_ixgbevf_pmd

PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -100

EAL: Error - exiting with code: 1

  Cause: Requested device :04:10.1 cannot be used



The sequence I use it this:



Initial state:

- 04:00.1 is bound to Linux driver (ixgbe)

- no VFs configured



Step 1: configure a VF

echo 1 > /sys/bus/pci/devices/:04:00.1/sriov_numvfs



Step 2: set VF's MAC address

ip link set dev enp4s0f1 vf 0 mac 00:bb:dd:04:00:00



Step 3: bind the VF to igb_uio



Step 4: execute L2FWD

./dpdk/examples/l2fwd/build/l2fwd -c 1 -n 1 -w :04:00.1 -- -T 0 -p 1 Works 
as expected



Step 5: bind the PF to igb_uio



Step 6: execute L2FWD again

./dpdk/examples/l2fwd/build/l2fwd -c 1 -n 1 -w :04:00.1 -- -T 0 -p 1



---

FAILURE

---



I tried several DPDK versions (1.7.1, 2.0.0, 2.2.0, 16.07). All fail in 
eth_ixgbevf_dev_init.

Usually the error code is -100, but in some cases also I saw -15.



Please advise

Thanks,

Eli



-
This email and any files transmitted and/or attachments with it are 
confidential and proprietary information of
Toga Networks Ltd., and intended solely for the use of the individual or entity 
to whom they are addressed.
If you have received this email in error please notify the system manager. This 
message contains confidential
information of Toga Networks Ltd., and is intended only for the individual 
named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail 
from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing 
or taking any action in reliance on
the contents of this information is strictly prohibited.




[dpdk-users] issues with running ip_pipeline sample application

2015-11-17 Thread Eli Britstein
I also encountered the same issue.
It seems the NIC doesn't report it's up fast enough for that code. For me it 
sometimes worked and sometimes didn't.
I just pushed a sleep command before checking it's up (before calling to 
app_ports_check_link, in init.c).
-
This email and any files transmitted and/or attachments with it are 
confidential and proprietary information of
Toga Networks Ltd., and intended solely for the use of the individual or entity 
to whom they are addressed.
If you have received this email in error please notify the system manager. This 
message contains confidential
information of Toga Networks Ltd., and is intended only for the individual 
named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail 
from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing 
or taking any action in reliance on
the contents of this information is strictly prohibited.