[dpdk-dev] [PATCH v1] eal: fix negative value incorrectly being used defect

2015-12-11 Thread Cunming Liang
be negative. 928bytes_read = read(fd, , bytes_read); Fixes: c9f3ec1a0f3f ("eal/linux: add Rx interrupt control function") Signed-off-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff -

[dpdk-dev] [PATCH 2/2] igb: fix vfio ioctl SET_IRQS error

2015-11-13 Thread Cunming Liang
The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting. Fixes: fe685de2b1b6 ("igb: fix VF start with PF stopped") Reported-by: Yong Liu Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_et

[dpdk-dev] [PATCH 1/2] ixgbe: fix vfio ioctl SET_IRQS error

2015-11-13 Thread Cunming Liang
The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting. Fixes: 7ab8500037f6 ("ixgbe: fix VF start with PF stopped") Reported-by: Yong Liu Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_et

[dpdk-dev] [PATCH v4 13/13] i40evf: add rx interrupt support

2015-11-04 Thread Cunming Liang
queues. v3 changes: - macro change according to EAL - rebase on patch http://dpdk.org/dev/patchwork/patch/7790 v2 changes: - turn on intr only when rxq flag is set - rework base on patch http://dpdk.org/dev/patchwork/patch/7504/ Signed-off-by: Cunming Liang --- drivers/net/i40e

[dpdk-dev] [PATCH v4 12/13] i40e: add rx interrupt support

2015-11-04 Thread Cunming Liang
change v2 change: - add write flush - always set DIS_AUTOMASK_ Signed-off-by: Cunming Liang --- doc/guides/rel_notes/release_2_2.rst | 1 + drivers/net/i40e/i40e_ethdev.c | 346 ++- drivers/net/i40e/i40e_ethdev.h | 5 + drivers/net/i40e/i40e_pf.c

[dpdk-dev] [PATCH v4 11/13] igb: fix rx intr compatible issue with PF mbox

2015-11-04 Thread Cunming Liang
, mbox has to occupy the only one. It adds condition check on 'dev_start', rxq interrupt is not allowed when PF running in IOV mode via UIO. v4 change: - remove redundancy condition check v3 change: - add doc update follow on the code change Signed-off-by: Cunming Liang --- doc/guides

[dpdk-dev] [PATCH v4 10/13] ixgbevf: cleanup unnecessary interrupt handler

2015-11-04 Thread Cunming Liang
As ixgbe vf doesn't support lsc, the patch removes those unused code. In addition, it does some tiny cleanup. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 62 +--- 1 file changed, 1 insertion(+), 61 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v4 09/13] ixgbe: fix unnecessary intr_vec free in dev_close

2015-11-04 Thread Cunming Liang
The intr_vec is free in dev_stop. It's not necessary to check in dev_close. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index c322168..948a84f

[dpdk-dev] [PATCH v4 08/13] ixgbe: fix rx intr compatible issue with PF mbox

2015-11-04 Thread Cunming Liang
, mbox has to occupy the only one. It adds condition check on 'dev_start', rxq interrupt is not allowed when PF running in IOV mode via UIO. v4 change: - remove redundancy condition check v3 change: - add doc update follow on the code change Signed-off-by: Cunming Liang --- doc/guides

[dpdk-dev] [PATCH v4 07/13] eal: add intr api to report multi-vector capability

2015-11-04 Thread Cunming Liang
: - add new api dummy in bsdapp Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/eal_interrupts.c| 7 +++ lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 10 ++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +++ lib

[dpdk-dev] [PATCH v4 06/13] igb: fix efd_enable with zero number

2015-11-04 Thread Cunming Liang
Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_ethdev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 1332974..76d2acc 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000

[dpdk-dev] [PATCH v4 05/13] ixgbe: fix efd_enable with zero number

2015-11-04 Thread Cunming Liang
Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 153ba98..f1a738c 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b

[dpdk-dev] [PATCH v4 04/13] eal/linux: not allow to enable zero intr efd

2015-11-04 Thread Cunming Liang
The patch adds condition check to avoid enable nothing. In disable state, both max_intr and nb_efd are zero. Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 3 ++- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 8 +++- lib

[dpdk-dev] [PATCH v4 03/13] igb: reserve intr vector zero for misc cause

2015-11-04 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. v3 change: - macro renaming according to the EAL change Signed-off-by: Cunming Liang --- drivers/net/e1000/e1000_ethdev.h | 3 +++ drivers/net/e1000

[dpdk-dev] [PATCH v4 02/13] ixgbe: reserve intr vector zero for misc cause

2015-11-04 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. v3 changes: - macro renaming according to the EAL change Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 22 ++ drivers

[dpdk-dev] [PATCH v4 01/13] eal: vfio map misc intr to vector zero

2015-11-04 Thread Cunming Liang
: - rename MISC_VEC_ID to RTE_INTR_VEC_ZERO_OFFSET - rename RX_VEC_START to RTE_INTR_VEC_RXTX_OFFSET - add macro definition in bsd header file Signed-off-by: Cunming Liang --- .../bsdapp/eal/include/exec-env/rte_interrupts.h | 3 +++ lib/librte_eal/linuxapp/eal/eal_interrupts.c

[dpdk-dev] [PATCH v4 00/13] interrupt mode for i40e

2015-11-04 Thread Cunming Liang
compatible issue with mbox in ixgbe/igb IOV-PF 4. add rx interrupt support in i40e PF and VF Cunming Liang (13): eal: vfio map misc intr to vector zero ixgbe: reserve intr vector zero for misc cause igb: reserve intr vector zero for misc cause eal/linux: not allow to enable zero intr efd ixgbe

[dpdk-dev] [PATCH v3 13/13] i40evf: add rx interrupt support

2015-11-04 Thread Cunming Liang
queues. v3 changes: - macro change according to EAL - rebase on patch http://dpdk.org/dev/patchwork/patch/7790 v2 changes: - turn on intr only when rxq flag is set - rework base on patch http://dpdk.org/dev/patchwork/patch/7504/ Signed-off-by: Cunming Liang --- drivers/net/i40e

[dpdk-dev] [PATCH v3 12/13] i40e: add rx interrupt support

2015-11-04 Thread Cunming Liang
- always set DIS_AUTOMASK_ i40e: pf macro Signed-off-by: Cunming Liang --- doc/guides/rel_notes/release_2_2.rst | 1 + drivers/net/i40e/i40e_ethdev.c | 347 ++- drivers/net/i40e/i40e_ethdev.h | 5 + drivers/net/i40e/i40e_pf.c | 2 + 4 files

[dpdk-dev] [PATCH v3 11/13] igb: fix rx intr compatible issue with PF mbox

2015-11-04 Thread Cunming Liang
, mbox has to occupy the only one. It adds condition check on 'dev_start', rxq interrupt is not allowed when PF running in IOV mode via UIO. v3 change: - add doc update follow on the code change Signed-off-by: Cunming Liang --- doc/guides/rel_notes/release_2_2.rst | 2 ++ drivers/net/e1000

[dpdk-dev] [PATCH v3 10/13] ixgbevf: cleanup unnecessary interrupt handler

2015-11-04 Thread Cunming Liang
As ixgbe vf doesn't support lsc, the patch removes those unused code. In addition, it does some tiny cleanup. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 62 +--- 1 file changed, 1 insertion(+), 61 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v3 09/13] ixgbe: fix unnecessary intr_vec free in dev_close

2015-11-04 Thread Cunming Liang
The intr_vec is free in dev_stop. It's not necessary to check in dev_close. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 6b075f6..d5556cc

[dpdk-dev] [PATCH v3 08/13] ixgbe: fix rx intr compatible issue with PF mbox

2015-11-04 Thread Cunming Liang
, mbox has to occupy the only one. It adds condition check on 'dev_start', rxq interrupt is not allowed when PF running in IOV mode via UIO. v3 change: - add doc update follow on the code change Signed-off-by: Cunming Liang --- doc/guides/rel_notes/release_2_2.rst | 2 ++ drivers/net/ixgbe

[dpdk-dev] [PATCH v3 07/13] eal: add intr api to report multi-vector capability

2015-11-04 Thread Cunming Liang
: - add new api dummy in bsdapp Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/eal_interrupts.c| 7 +++ lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 10 ++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +++ lib

[dpdk-dev] [PATCH v3 06/13] igb: fix efd_enable with zero number

2015-11-04 Thread Cunming Liang
Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_ethdev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 1332974..76d2acc 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000

[dpdk-dev] [PATCH v3 05/13] ixgbe: fix efd_enable with zero number

2015-11-04 Thread Cunming Liang
Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 153ba98..f1a738c 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b

[dpdk-dev] [PATCH v3 04/13] eal/linux: not allow to enable zero intr efd

2015-11-04 Thread Cunming Liang
The patch adds condition check to avoid enable nothing. In disable state, both max_intr and nb_efd are zero. Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 3 ++- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 8 +++- lib

[dpdk-dev] [PATCH v3 03/13] igb: reserve intr vector zero for misc cause

2015-11-04 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. v3 change: - macro renaming according to the EAL change Signed-off-by: Cunming Liang --- drivers/net/e1000/e1000_ethdev.h | 3 +++ drivers/net/e1000

[dpdk-dev] [PATCH v3 02/13] ixgbe: reserve intr vector zero for misc cause

2015-11-04 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. v3 changes: - macro renaming according to the EAL change Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 22 ++ drivers

[dpdk-dev] [PATCH v3 01/13] eal: vfio map misc intr to vector zero

2015-11-04 Thread Cunming Liang
: - rename MISC_VEC_ID to RTE_INTR_VEC_ZERO_OFFSET - rename RX_VEC_START to RTE_INTR_VEC_RXTX_OFFSET - add macro definition in bsd header file Signed-off-by: Cunming Liang --- .../bsdapp/eal/include/exec-env/rte_interrupts.h | 3 +++ lib/librte_eal/linuxapp/eal/eal_interrupts.c

[dpdk-dev] [PATCH v3 00/13] interrupt mode for i40e

2015-11-04 Thread Cunming Liang
support in i40e PF and VF Cunming Liang (13): eal: vfio map misc intr to vector zero ixgbe: reserve intr vector zero for misc cause igb: reserve intr vector zero for misc cause eal/linux: not allow to enable zero intr efd ixgbe: fix efd_enable with zero number igb: fix efd_enable

[dpdk-dev] [PATCH 11/11] doc: release note update for intr mode

2015-10-30 Thread Cunming Liang
Signed-off-by: Cunming Liang --- doc/guides/rel_notes/release_2_2.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index be6f827..01bd4bb 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH v2 10/11] i40evf: add rx interrupt support

2015-10-30 Thread Cunming Liang
which is exclusive with mbox interrupt in single vector competition. On VF side, one single vector is shared for all the rx queues. Signed-off-by: Cunming Liang --- drivers/net/i40e/i40e_ethdev.c| 38 +- drivers/net/i40e/i40e_ethdev.h| 15 drivers/net/i40e/i40e_ethdev_vf.c

[dpdk-dev] [PATCH v2 09/11] i40e: add rx interrupt support

2015-10-30 Thread Cunming Liang
v2 changes: - add write flush - always set DIS_AUTOMASK_* bit The patch enables rx interrupt support on i40e PF non-IOV mode. Per queue rx interrupt works on vfio, however on uio, all rx queues share one interrupt vector. Signed-off-by: Cunming Liang --- drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH v2 07/11] ixgbevf: cleanup unnecessary interrupt handler

2015-10-30 Thread Cunming Liang
As ixgbe vf doesn't support lsc, the patch removes those unused code. In addition, it does some tiny cleanup. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 85 +--- 1 file changed, 10 insertions(+), 75 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v2 06/11] ixgbe: fix rx intr compatible issue with PF mbox

2015-10-30 Thread Cunming Liang
, mbox has to occupy the only one. It adds condition check on 'dev_start', rxq interrupt is not allowed when PF running in IOV mode via UIO. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 45 +++- 1 file changed, 31 insertions(+), 14

[dpdk-dev] [PATCH v2 05/11] eal/linux: add intr api to report multi-vector capability

2015-10-30 Thread Cunming Liang
-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 9 + lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h | 10 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 +++ 3 files changed, 26 insertions(+) diff --git

[dpdk-dev] [PATCH v2 04/11] eal/linux: not allow to enable zero intr efd

2015-10-30 Thread Cunming Liang
The patch adds condition check to avoid enable nothing. In disable state, both max_intr and nb_efd are zero. Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 3 ++- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 8 +++- lib

[dpdk-dev] [PATCH v2 03/11] igb: reserve intr vector zero for misc cause

2015-10-30 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_ethdev.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v2 02/11] ixgbe: reserve intr vector zero for misc cause

2015-10-30 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v2 00/11] interrupt mode for i40e

2015-10-30 Thread Cunming Liang
mapping 2. add api to declare the capability of multiple interrupt vector support 3. fix the rx interrupt compatible issue with mbox in ixgbe/igb IOV-PF 4. add rx interrupt support in i40e PF and VF Cunming Liang (11): eal/linux: vfio map misc intr to vector zero ixgbe: reserve intr vector zero

[dpdk-dev] [PATCH v1 11/11] doc: release note update for intr mode

2015-09-24 Thread Cunming Liang
Signed-off-by: Cunming Liang --- doc/guides/rel_notes/release_2_2.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 682f468..73dba47 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH v1 10/11] i40evf: add rx interrupt support

2015-09-24 Thread Cunming Liang
queues. Signed-off-by: Cunming Liang --- drivers/net/i40e/i40e_ethdev.c| 46 +++-- drivers/net/i40e/i40e_ethdev.h| 15 drivers/net/i40e/i40e_ethdev_vf.c | 141 ++ drivers/net/i40e/i40e_pf.c| 5 -- 4 files changed, 169 insertions

[dpdk-dev] [PATCH v1 09/11] i40e: add rx interrupt support

2015-09-24 Thread Cunming Liang
The patch enables rx interrupt support on i40e PF non-IOV mode. Per queue rx interrupt works on vfio, however on uio, all rx queues share one interrupt vector. Signed-off-by: Cunming Liang --- drivers/net/i40e/i40e_ethdev.c | 319 +++-- drivers/net/i40e

[dpdk-dev] [PATCH v1 08/11] igb: fix rx intr compatible issue with PF mbox

2015-09-24 Thread Cunming Liang
, mbox has to occupy the only one. It adds condition check on 'dev_start', rxq interrupt is not allowed when PF running in IOV mode via UIO. Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_ethdev.c | 44 +- 1 file changed, 31 insertions(+), 13 deletions

[dpdk-dev] [PATCH v1 07/11] ixgbevf: cleanup unnecessary interrupt handler

2015-09-24 Thread Cunming Liang
As ixgbe vf doesn't support lsc, the patch removes those unused code. In addition, it does some tiny cleanup. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 85 +--- 1 file changed, 10 insertions(+), 75 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v1 06/11] ixgbe: fix rx intr compatible issue with PF mbox

2015-09-24 Thread Cunming Liang
, mbox has to occupy the only one. It adds condition check on 'dev_start', rxq interrupt is not allowed when PF running in IOV mode via UIO. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 45 +++- 1 file changed, 31 insertions(+), 14

[dpdk-dev] [PATCH v1 05/11] eal/linux: add intr api to report multi-vector capability

2015-09-24 Thread Cunming Liang
-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 9 + lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h | 10 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 +++ 3 files changed, 26 insertions(+) diff --git

[dpdk-dev] [PATCH v1 04/11] eal/linux: not allow to enable zero intr efd

2015-09-24 Thread Cunming Liang
The patch adds condition check to avoid enable nothing. In disable state, both max_intr and nb_efd are zero. Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 3 ++- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 8 +++- lib

[dpdk-dev] [PATCH v1 03/11] igb: reserve intr vector zero for misc cause

2015-09-24 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_ethdev.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v1 02/11] ixgbe: reserve intr vector zero for misc cause

2015-09-24 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v1 01/11] eal/linux: vfio map misc intr to vector zero

2015-09-24 Thread Cunming Liang
-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 18 -- .../linuxapp/eal/include/exec-env/rte_interrupts.h | 3 +++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp

[dpdk-dev] [PATCH v1 00/11] interrupt mode for i40e

2015-09-24 Thread Cunming Liang
Cunming Liang (11): eal/linux: vfio map misc intr to vector zero ixgbe: reserve intr vector zero for misc cause igb: reserve intr vector zero for misc cause eal/linux: not allow to enable zero intr efd eal/linux: add intr api to report multi-vector capability ixgbe: fix rx intr

[dpdk-dev] [PATCH v1] doc: prog_guide update for RX interrupt event

2015-08-06 Thread Cunming Liang
The patch updates the env_abstraction_layer.rst part in prog_guide. It adds the RX interrupt event declaration and revises the others in interrupt event section. Signed-off-by: Cunming Liang --- doc/guides/prog_guide/env_abstraction_layer.rst | 34 ++--- 1 file changed, 31

[dpdk-dev] [PATCH v3] ixgbe: remove vector pmd burst size restriction

2015-08-04 Thread Cunming Liang
(RTE_IXGBE_RXQ_REARM_THRESH) packets. On transmit side, the max burst size no longer bind with a constant, however it still require to check the cross tx_rs_thresh violation. There's no obvious performance drop found on both recv_pkts_vec and recv_scattered_pkts_vec on burst size 32. Signed-off-by: Cunming

[dpdk-dev] [PATCH v2] ixgbe: remove vector pmd burst size restriction

2015-08-04 Thread Cunming Liang
(RTE_IXGBE_RXQ_REARM_THRESH) packets. On transmit side, the max burst size no longer bind with a constant, however it still require to check the cross tx_rs_thresh violation. There's no obvious performance drop found on both recv_pkts_vec and recv_scattered_pkts_vec on burst size 32. Signed-off-by: Cunming

[dpdk-dev] [PATCH v1] ixgbe: remove vector pmd burst size restriction

2015-07-31 Thread Cunming Liang
receive anything.) On transmit side, the max burst size no longer bind with a constant, however it still require to check the cross tx_rs_thresh violation. There's no obvious performance drop found on both recv_pkts_vec and recv_scattered_pkts_vec on burst size 32. Signed-off-by: Cunming Liang

[dpdk-dev] [PATCH] eal/linux: fix negative value for undetermined numa_node

2015-07-31 Thread Cunming Liang
The patch sets zero as the default value of pci device numa_node if the socket could not be determined. It provides the same default value as FreeBSD which has no NUMA support, and makes the return value of rte_eth_dev_socket_id() be consistent with the API description. Signed-off-by: Cunming

[dpdk-dev] [PATCH v3] doc: announce abi change for interrupt mode

2015-07-30 Thread Cunming Liang
The patch announces the planned ABI changes for interrupt mode. Signed-off-by: Cunming Liang --- v3 change: - reword for CONFIG_RTE_NEXT_ABI v2 change: - rebase to recent master doc/guides/rel_notes/deprecation.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides

[dpdk-dev] [PATCH v2] doc: announce abi change for interrupt mode

2015-07-30 Thread Cunming Liang
The patch announces the planned ABI changes for interrupt mode on v2.2. Signed-off-by: Cunming Liang --- v2 change: - rebase to recent master doc/guides/rel_notes/deprecation.rst | 8 1 file changed, 8 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides

[dpdk-dev] [PATCH v15 13/13] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

2015-07-20 Thread Cunming Liang
it receives an interrupt notification caused by the incoming packets. The sample keeps running in polling mode if the binding PMD hasn't supported the rx interrupt yet. Now only ixgbe(pf/vf) and igb support it. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v14 changes - per-patch basis

[dpdk-dev] [PATCH v15 12/13] igb: enable rx queue interrupts for PF

2015-07-20 Thread Cunming Liang
The patch does below for igb PF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v14 changes - per-patch basis ABI compatibility rework

[dpdk-dev] [PATCH v15 11/13] ixgbe: enable rx queue interrupts for both PF and VF

2015-07-20 Thread Cunming Liang
The patch does below things for ixgbe PF and VF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Yong Liu Signed-off-by: Cunming Liang --- v14 changes

[dpdk-dev] [PATCH v15 10/13] ethdev: add rx intr enable, disable and ctl functions

2015-07-20 Thread Cunming Liang
The patch adds two dev_ops functions to enable and disable rx queue interrupts. In addtion, it adds rte_eth_dev_rx_intr_ctl/rx_intr_q to support per port or per queue rx intr event set. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v15 changes - remove ifdef RTE_NEXT_ABI from

[dpdk-dev] [PATCH v15 09/13] eal/bsd: fix inappropriate linuxapp referred in bsd

2015-07-20 Thread Cunming Liang
Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h b/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h index

[dpdk-dev] [PATCH v15 08/13] eal/bsd: dummy for new intr definition

2015-07-20 Thread Cunming Liang
To make bsd compiling happy with new intr changes. Signed-off-by: Cunming Liang --- v15 changes - remove ifdef RTE_NEXT_ABI from header file v14 changes - per-patch basis ABI compatibility rework v13 changes - version map cleanup for v2.1 v12 changes - fix unused variables compiling

[dpdk-dev] [PATCH v15 07/13] eal/linux: fix lsc read error in uio_pci_generic

2015-07-20 Thread Cunming Liang
b_uio") Reported-by: Yong Liu Signed-off-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 1cea4bf..3f87875 100644 --- a/lib/librte_ea

[dpdk-dev] [PATCH v15 06/13] eal/linux: standalone intr event fd create support

2015-07-20 Thread Cunming Liang
The patch exposes intr event fd create and release for PMD. The device driver can assign the number of event associated with interrupt vector. It also provides misc functions to check 1) allows other slowpath intr(e.g. lsc); 2) intr event on fastpath is enabled or not. Signed-off-by: Cunming

[dpdk-dev] [PATCH v15 05/13] eal/linux: map eventfd to VFIO MSI-X intr vector

2015-07-20 Thread Cunming Liang
The patch maps each of the eventfd to the interrupt vector of VFIO MSI-X. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v14 changes - per-patch basis ABI compatibility rework - reword commit comments v8 changes - move eventfd creation out of the setup_interrupts to a standalone

[dpdk-dev] [PATCH v15 04/13] eal/linux: fix comments typo on vfio msi

2015-07-20 Thread Cunming Liang
Signed-off-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index ffccb0e..5acc3b7 100644 --- a/lib/librte_eal

[dpdk-dev] [PATCH v15 03/13] eal/linux: add API to set rx interrupt event monitor

2015-07-20 Thread Cunming Liang
The patch adds 'rte_intr_rx_ctl' to add or delete interrupt vector events monitor on specified epoll instance. Signed-off-by: Cunming Liang --- v15 changes - remove ifdef RTE_NEXT_ABI from header file v14 changes - per-patch basis ABI compatibility rework - remove unnecessary 'local

[dpdk-dev] [PATCH v15 02/13] eal/linux: add rte_epoll_wait/ctl support

2015-07-20 Thread Cunming Liang
. The epoll event support to carry a raw user data and to register a callback which is executed during wakeup. Signed-off-by: Cunming Liang --- v14 changes - per-patch basis ABI compatibility rework - remove unnecessary 'local: *' from version map v13 changes - version map cleanup for v2.1 v11

[dpdk-dev] [PATCH v15 01/13] eal/linux: add interrupt vectors support in intr_handle

2015-07-20 Thread Cunming Liang
Signed-off-by: Cunming Liang --- v15 changes - remove unnecessary RTE_NEXT_ABI comment v14 changes - per-patch basis ABI compatibility rework v7 changes: - add eptrs[], it's used to store the register rte_epoll_event instances. - add vec_en, to log the vector capability status. v6 changes

[dpdk-dev] [PATCH v15 00/13] Interrupt mode PMD

2015-07-20 Thread Cunming Liang
turn in on if you want to support both LSC and rx queue interrupts on a PF. Cunming Liang (13): eal/linux: add interrupt vectors support in intr_handle eal/linux: add rte_epoll_wait/ctl support eal/linux: add API to set rx interrupt event monitor eal/linux: fix comments typo on vfio msi eal/linux:

[dpdk-dev] [PATCH v14 13/13] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

2015-07-17 Thread Cunming Liang
it receives an interrupt notification caused by the incoming packets. The sample keeps running in polling mode if the binding PMD hasn't supported the rx interrupt yet. Now only ixgbe(pf/vf) and igb support it. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v14 changes - per-patch basis

[dpdk-dev] [PATCH v14 12/13] igb: enable rx queue interrupts for PF

2015-07-17 Thread Cunming Liang
The patch does below for igb PF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v14 changes - per-patch basis ABI compatibility rework

[dpdk-dev] [PATCH v14 09/13] eal/bsd: fix inappropriate linuxapp referred in bsd

2015-07-17 Thread Cunming Liang
Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h b/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h index

[dpdk-dev] [PATCH v14 08/13] eal/bsd: dummy for new intr definition

2015-07-17 Thread Cunming Liang
To make bsd compiling happy with new intr changes. Signed-off-by: Cunming Liang --- v14 changes - per-patch basis ABI compatibility rework v13 changes - version map cleanup for v2.1 v12 changes - fix unused variables compiling warning v8 changes - add stub for new function v7 changes

[dpdk-dev] [PATCH v14 07/13] eal/linux: fix lsc read error in uio_pci_generic

2015-07-17 Thread Cunming Liang
b_uio") Reported-by: Yong Liu Signed-off-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 0266d98..69ce974 100644 --- a/lib/librte_ea

[dpdk-dev] [PATCH v14 06/13] eal/linux: standalone intr event fd create support

2015-07-17 Thread Cunming Liang
The patch exposes intr event fd create and release for PMD. The device driver can assign the number of event associated with interrupt vector. It also provides misc functions to check 1) allows other slowpath intr(e.g. lsc); 2) intr event on fastpath is enabled or not. Signed-off-by: Cunming

[dpdk-dev] [PATCH v14 05/13] eal/linux: map eventfd to VFIO MSI-X intr vector

2015-07-17 Thread Cunming Liang
The patch assigns event fds to each vfio msix interrupt vector by ioctl. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v14 changes - per-patch basis ABI compatibility rework - reword commit comments v8 changes - move eventfd creation out of the setup_interrupts to a standalone

[dpdk-dev] [PATCH v14 04/13] eal/linux: fix comments typo on vfio msi

2015-07-17 Thread Cunming Liang
Signed-off-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 4e34abc..cca2efd 100644 --- a/lib/librte_eal

[dpdk-dev] [PATCH v14 03/13] eal/linux: add API to set rx interrupt event monitor

2015-07-17 Thread Cunming Liang
The patch adds 'rte_intr_rx_ctl' to add or delete interrupt vector events monitor on specified epoll instance. Signed-off-by: Cunming Liang --- v14 changes - per-patch basis ABI compatibility rework - remove unnecessary 'local: *' from version map v13 changes - version map cleanup for v2.1

[dpdk-dev] [PATCH v14 02/13] eal/linux: add rte_epoll_wait/ctl support

2015-07-17 Thread Cunming Liang
. The epoll event support to carry a raw user data and to register a callback which is executed during wakeup. Signed-off-by: Cunming Liang --- v14 changes - per-patch basis ABI compatibility rework - remove unnecessary 'local: *' from version map v13 changes - version map cleanup for v2.1 v11

[dpdk-dev] [PATCH v14 00/13] Interrupt mode PMD

2015-07-17 Thread Cunming Liang
ntfd shared by LSC and rx queue interrupt handlers causes a mess. [FIXED] 2) LSC interrupt is not supported by VF driver, so it is by default disabled in L3fwd-power now. Feel free to turn in on if you want to support both LSC and rx queue interrupts on a PF. Cunming Liang (13): eal/linux:

[dpdk-dev] [PATCH v13 14/14] abi: fix v2.1 abi broken issue

2015-06-19 Thread Cunming Liang
rte_intr_conf. Signed-off-by: Cunming Liang --- v13 changes - Use common RTE_NEXT_ABI to replace RTE_EAL_RX_INTR v9 - Acked-by: vincent jardin drivers/net/e1000/igb_ethdev.c | 28 - drivers/net/ixgbe/ixgbe_ethdev.c | 41 - examples/l3fwd-power

[dpdk-dev] [PATCH v13 13/14] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

2015-06-19 Thread Cunming Liang
kernel, so one-shot interrupt is used here to guarantee minimum overhead and DPDK polling thread returns to polling mode immediately once it receives an interrupt notificaiton for incoming packet. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v7 changes - using new APIs - demo

[dpdk-dev] [PATCH v13 12/14] igb: enable rx queue interrupts for PF

2015-06-19 Thread Cunming Liang
The patch does below for igb PF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v9 changes - move queue-vec mapping init from

[dpdk-dev] [PATCH v13 11/14] ixgbe: enable rx queue interrupts for both PF and VF

2015-06-19 Thread Cunming Liang
The patch does below things for ixgbe PF and VF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Yong Liu Signed-off-by: Cunming Liang --- v10 changes

[dpdk-dev] [PATCH v13 10/14] ethdev: add rx intr enable, disable and ctl functions

2015-06-19 Thread Cunming Liang
The patch adds two dev_ops functions to enable and disable rx queue interrupts. In addtion, it adds rte_eth_dev_rx_intr_ctl/rx_intr_q to support per port or per queue rx intr event set. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v13 changes - version map cleanup for v2.1 v9

[dpdk-dev] [PATCH v13 09/14] eal/bsd: fix inappropriate linuxapp referred in bsd

2015-06-19 Thread Cunming Liang
Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h b/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h index

[dpdk-dev] [PATCH v13 08/14] eal/bsd: dummy for new intr definition

2015-06-19 Thread Cunming Liang
To make bsd compiling happy with new intr changes. Signed-off-by: Cunming Liang --- v13 changes - version map cleanup for v2.1 v12 changes - fix unused variables compiling warning v8 changes - add stub for new function v7 changes - remove stub 'linux only' function from source file lib

[dpdk-dev] [PATCH v13 07/14] eal/linux: fix lsc read error in uio_pci_generic

2015-06-19 Thread Cunming Liang
-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 5519e7c..d7a5403 100644 --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c +++ b/lib

[dpdk-dev] [PATCH v13 06/14] eal/linux: standalone intr event fd create support

2015-06-19 Thread Cunming Liang
The patch exposes intr event fd create and release for PMD. The device driver can assign the number of event associated with interrupt vector. It also provides misc functions to check 1) allows other slowpath intr(e.g. lsc); 2) intr event on fastpath is enabled or not. Signed-off-by: Cunming

[dpdk-dev] [PATCH v13 05/14] eal/linux: add interrupt vectors handling on VFIO

2015-06-19 Thread Cunming Liang
This patch does below: - Create VFIO eventfds for each interrupt vector (move to next) - Assign per interrupt vector's eventfd to VFIO by ioctl Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v8 changes - move eventfd creation out of the setup_interrupts to a standalone function

[dpdk-dev] [PATCH v13 04/14] eal/linux: fix comments typo on vfio msi

2015-06-19 Thread Cunming Liang
Signed-off-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index cfe389c..fe1210b 100644 --- a/lib/librte_eal

[dpdk-dev] [PATCH v13 03/14] eal/linux: add API to set rx interrupt event monitor

2015-06-19 Thread Cunming Liang
The patch adds 'rte_intr_rx_ctl' to add or delete interrupt vector events monitor on specified epoll instance. Signed-off-by: Cunming Liang --- v13 changes - version map cleanup for v2.1 v12 changes: - fix awkward line split in using RTE_LOG v10 changes: - add RTE_INTR_HANDLE_UIO_INTX

[dpdk-dev] [PATCH v13 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-06-19 Thread Cunming Liang
. The epoll event support to carry a raw user data and to register a callback which is executed during wakeup. Signed-off-by: Cunming Liang --- v13 changes - version map cleanup for v2.1 v11 changes - cleanup spelling error v9 changes - rework on coding style v8 changes - support delete event

[dpdk-dev] [PATCH v13 01/14] eal/linux: add interrupt vectors support in intr_handle

2015-06-19 Thread Cunming Liang
Signed-off-by: Cunming Liang --- v7 changes: - add eptrs[], it's used to store the register rte_epoll_event instances. - add vec_en, to log the vector capability status. v6 changes: - add mapping table between irq vector number and queue id. v5 changes: - Create this new patch file for changed

[dpdk-dev] [PATCH v13 00/14] Interrupt mode PMD

2015-06-19 Thread Cunming Liang
, so it is by default disabled in L3fwd-power now. Feel free to turn in on if you want to support both LSC and rx queue interrupts on a PF. Cunming Liang (14): eal/linux: add interrupt vectors support in intr_handle eal/linux: add rte_epoll_wait/ctl support eal/linux: add API to set rx interrupt e

  1   2   3   4   >