[dpdk-dev] ixgbe vector mode not working.

2015-03-05 Thread Thomas Monjalon
2015-02-28 03:33, Liang, Cunming: > Hi Stephen, > > The root cause is about the rx descriptor number. > As we use below code to quick process the rx_tail wrap, it require rxd value > is a 2^n. > "rxq->rx_tail = (uint16_t)(rxq->rx_tail & (rxq->nb_rx_desc - 1));" > We should add more checking on th

[dpdk-dev] ixgbe vector mode not working.

2015-02-28 Thread Liang, Cunming
Hi Stephen, The root cause is about the rx descriptor number. As we use below code to quick process the rx_tail wrap, it require rxd value is a 2^n. "rxq->rx_tail = (uint16_t)(rxq->rx_tail & (rxq->nb_rx_desc - 1));" We should add more checking on the input rxd, if checking fail, then tend to use

[dpdk-dev] ixgbe vector mode not working.

2015-02-25 Thread Stephen Hemminger
On Wed, 25 Feb 2015 08:49:48 + "Liang, Cunming" wrote: > Hi Stephen, > > Thanks for the info, with rxd=4000, I can reproduce it. > On that time, it runs out of mbuf. > I'll follow up this issue. The first time I ran it, the code was configure rx/tx conf which was leftover from older version

[dpdk-dev] ixgbe vector mode not working.

2015-02-25 Thread Thomas Monjalon
2015-02-24 23:36, Stephen Hemminger: > On Wed, 25 Feb 2015 04:55:09 + > "Liang, Cunming" wrote: > > > Hi Stephen, > > > > I tried on the latest mater branch with testpmd. > > 2 rxq and 2 txq as below, vector pmd on both rx and tx. I can't reproduced > > it. > > I checked your log, on tx sid

[dpdk-dev] ixgbe vector mode not working.

2015-02-25 Thread Liang, Cunming
Hi Stephen, Thanks for the info, with rxd=4000, I can reproduce it. On that time, it runs out of mbuf. I'll follow up this issue. > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, February 25, 2015 3:37 PM > To: Liang, Cunming > Cc: N

[dpdk-dev] ixgbe vector mode not working.

2015-02-25 Thread Liang, Cunming
Hi Stephen, I tried on the latest mater branch with testpmd. 2 rxq and 2 txq as below, vector pmd on both rx and tx. I can't reproduced it. I checked your log, on tx side, it looks the tx vector haven't enabled. (it shows vpmd on rx, spmd on tx). Would you help to share the below params in your a

[dpdk-dev] ixgbe vector mode not working.

2015-02-24 Thread Stephen Hemminger
On Wed, 25 Feb 2015 04:55:09 + "Liang, Cunming" wrote: > Hi Stephen, > > I tried on the latest mater branch with testpmd. > 2 rxq and 2 txq as below, vector pmd on both rx and tx. I can't reproduced it. > I checked your log, on tx side, it looks the tx vector haven't enabled. (it > shows vp

[dpdk-dev] ixgbe vector mode not working.

2015-02-24 Thread Stephen Hemminger
The ixgbe driver (from 1.8 or 2.0) works fine in normal (non-vectored) mode. But when vector mode is enabled, it gets a few packets through then hangs. We use 2 Rx queues and 1 Tx queue per interface. Devices: 01:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Conn