[dpdk-dev] [PATCH] eal: fix c++ compilation issue with rte_delay_us()

2016-10-03 Thread Konstantin Ananyev
rte_delay_us 0092 t _GLOBAL__sub_I_rte_delay_us B rte_delay_us Signed-off-by: Konstantin Ananyev --- lib/librte_eal/common/include/generic/rte_cycles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/generic/rte_cycles.h b/lib/l

[dpdk-dev] [PATCH] ixgbe: fix missed packet types.

2016-06-15 Thread Konstantin Ananyev
ixgbe PMD RX function(s) miss pacjet types that are: - correctly recognised by the underlying HW. - marked as supported by ixgbe_dev_supported_ptypes_get(). Fixes: 9586ebd358d5 ("ixgbe: replace some offload flags with packet type") Signed-off-by: Konstantin Ananyev --- drivers

[dpdk-dev] [PATCH] l3fwd: fix incorrect size for destination port values

2016-03-31 Thread Konstantin Ananyev
be 16-bit. That is not correct and can cause l3fwd invalid behaviour or even process crash/hang on some input packet patterns. For the fix, I choose the simplest approach and restored dest_port as 16-bit value, plus necessary conversions from 32 to 16 bit values after lpm_lookupx4. Signed-off-by: Konstant

[dpdk-dev] [PATCH] ixgbe: fix vector RX can't always set packet_type properly

2016-03-22 Thread Konstantin Ananyev
). Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 +--- drivers/net/ixgbe/ixgbe_rxtx_vec.c | 34 +++--- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethd

[dpdk-dev] [PATCH v2] ACL: fix build for native-icc target on haswell fails

2015-11-20 Thread Konstantin Ananyev
eady enabled. If yes, then no need to add '-msse4.1' Similar change for avx2 compilation option. Fixes: 074f54ad03ee ("acl: fix build and runtime for default target") Reported-by: Declan Doherty Reported-by: Sergio Gonzalez Monroy Signed-off-by: Konstantin Ananyev ---

[dpdk-dev] [PATCH] ACL: fix build for native-icc target on haswell fails

2015-11-17 Thread Konstantin Ananyev
eady enabled. If yes, then no need to add '-msse4.1' Similar change for avx2 compilation option. Fixes: 074f54ad03ee ("acl: fix build and runtime for default target") Reported-by: Declan Doherty Reported-by: Sergio Gonzalez Monroy Signed-off-by: Konstantin Ananyev ---

[dpdk-dev] [PATCHv7 2/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-10 Thread Konstantin Ananyev
restrictions. With that fix slight slowdown for the full-featured ixgbe TX path might be observed (from our testing - up to 4%). ixgbe simple TX path is unaffected by that patch. Reported-by: Vlad Zolotarov Signed-off-by: Konstantin Ananyev --- app/test/test_pmd_perf.c | 8 ---

[dpdk-dev] [PATCHv7 1/2] testpmd: add ability to split outgoing packets

2015-11-10 Thread Konstantin Ananyev
ment is controlled by 'set txpkts' command. Split policy is controlled by 'set txsplit' command. Possible values are: on | off | rand. Tha allows to increase test coverage for TX PMD codepaths. Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 57 +- app/

[dpdk-dev] [PATCHv7 0/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-10 Thread Konstantin Ananyev
First patch contains changes in testpmd that allow to reproduce the issue. Second patch is the actual fix. Konstantin Ananyev (2): testpmd: add ability to split outgoing packets ixgbe: fix TX hang when RS distance exceeds HW limit app/test-pmd/cmdline.c | 57

[dpdk-dev] [PATCHv6 2/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-09 Thread Konstantin Ananyev
es significant slowdown on the TX path: up to 25%). v6 changes: - fix pmd_perf_autotest - fix error description - update RN Reported-by: Vlad Zolotarov Signed-off-by: Konstantin Ananyev --- app/test/test_pmd_perf.c | 8 doc/guides/rel_notes/release_2_2.rst | 7

[dpdk-dev] [PATCHv6 1/2] testpmd: add ability to split outgoing packets

2015-11-09 Thread Konstantin Ananyev
ment is controlled by 'set txpkts' command. Split policy is controlled by 'set txsplit' command. Possible values are: on | off | rand. Tha allows to increase test coverage for TX PMD codepaths. v6 changes: - fix typos - testpmd guide: fix invalid command description Signed-off-by: Konstantin Ana

[dpdk-dev] [PATCHv6 0/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-09 Thread Konstantin Ananyev
First patch contains changes in testpmd that allow to reproduce the issue. Second patch is the actual fix. Konstantin Ananyev (2): testpmd: add ability to split outgoing packets ixgbe: fix TX hang when RS distance exceeds HW limit app/test-pmd/cmdline.c | 57

[dpdk-dev] [PATCHv5 2/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-09 Thread Konstantin Ananyev
- up to 4%). ixgbe simple TX path is unaffected by that patch. Reported-by: Vlad Zolotarov Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/d

[dpdk-dev] [PATCHv5 1/2] testpmd: add ability to split outgoing packets

2015-11-09 Thread Konstantin Ananyev
ment is controlled by 'set txpkts' command. Split policy is controlled by 'set txsplit' command. Possible values are: on | off | rand. Tha allows to increase test coverage for TX PMD codepaths. Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 57 +- app/

[dpdk-dev] [PATCHv5 0/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-09 Thread Konstantin Ananyev
First patch contains changes in testpmd that allows to reproduce the issue. Second patch is the actual fix. Konstantin Ananyev (2): testpmd: add ability to split outgoing packets ixgbe: fix TX hang when RS distance exceeds HW limit app/test-pmd/cmdline.c | 57

[dpdk-dev] [PATCH] app/testpmd: add 'show (rxq|txq)' command description into UG and cmdline help

2015-11-02 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 3 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 10 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0afdc96..ae9be81 100644 --- a/app/test-pmd

[dpdk-dev] [PATCHv7 9/9] doc: release notes update for queue_info_get() and (rx|tx)_desc_limit

2015-10-27 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- doc/guides/rel_notes/release_2_2.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index de6916e..aff6306 100644 --- a/doc/guides/rel_notes/release_2_2.rst

[dpdk-dev] [PATCHv7 8/9] testpmd: add new command to display RX/TX queue information

2015-10-27 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 +++ app/test-pmd/config.c | 77 ++ app/test-pmd/testpmd.h | 2 ++ 3 files changed, 127 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test

[dpdk-dev] [PATCHv7 7/9] vmxnet3: add HW specific desc_lim data into dev_info

2015-10-27 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index a70be5c..3745b7d 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b

[dpdk-dev] [PATCHv7 4/9] e1000: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-27 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 36 drivers/net/e1000/em_ethdev.c| 14 drivers/net/e1000/em_rxtx.c | 71 +++- drivers/net/e1000/igb_ethdev.c | 22 + drivers/net/e1000

[dpdk-dev] [PATCHv7 3/9] ixgbe: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-27 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 23 ++ drivers/net/ixgbe/ixgbe_ethdev.h | 6 drivers/net/ixgbe/ixgbe_rxtx.c | 68 +--- drivers/net/ixgbe/ixgbe_rxtx.h | 21 + 4 files changed, 93

[dpdk-dev] [PATCHv7 2/9] i40e: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-27 Thread Konstantin Ananyev
This patch assumes that the patch: i40e: fix wrong alignment for the number of HW descriptors already applied. Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c| 14 ++ drivers/net/i40e/i40e_ethdev.h| 5 + drivers/net/i40e/i40e_ethdev_vf.c | 12

[dpdk-dev] [PATCHv7 0/9] ethdev: add new API to retrieve RX/TX queue information

2015-10-27 Thread Konstantin Ananyev
into rte_eth_dev_info v6 chages: - respin to comply with latest dpdk.org - update release_notes, section "New Features" v7 changes: - update release notes, sections: "API Changes", "ABI Changes" Konstantin Ananyev (9): ethdev: add new API to retrieve RX/TX queue i

[dpdk-dev] [PATCHv6 9/9] doc: release notes update for queue_info_get()

2015-10-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- doc/guides/rel_notes/release_2_2.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 4f75cff..33ea399 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc

[dpdk-dev] [PATCHv6 8/9] testpmd: add new command to display RX/TX queue information

2015-10-22 Thread Konstantin Ananyev
From: "Ananyev, Konstantin" <konstantin.anan...@intel.com> Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 +++ app/test-pmd/config.c | 77 ++ app/test-pmd/testpmd.h | 2 ++ 3 fi

[dpdk-dev] [PATCHv6 7/9] vmxnet3: add HW specific desc_lim data into dev_info

2015-10-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index a70be5c..3745b7d 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b

[dpdk-dev] [PATCHv6 6/9] cxgbe: add HW specific desc_lim data into dev_info

2015-10-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/cxgbe/cxgbe_ethdev.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c index a8e057b..920e071 100644 --- a/drivers/net/cxgbe/cxgbe_ethdev.c +++ b/drivers/net/cxgbe

[dpdk-dev] [PATCHv6 5/9] fm10k: add HW specific desc_lim data into dev_info

2015-10-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/fm10k/fm10k_ethdev.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index a69c990..9588dab 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k

[dpdk-dev] [PATCHv6 4/9] e1000: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 36 drivers/net/e1000/em_ethdev.c| 14 drivers/net/e1000/em_rxtx.c | 71 +++- drivers/net/e1000/igb_ethdev.c | 22 + drivers/net/e1000

[dpdk-dev] [PATCHv6 3/9] ixgbe: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 23 ++ drivers/net/ixgbe/ixgbe_ethdev.h | 6 drivers/net/ixgbe/ixgbe_rxtx.c | 68 +--- drivers/net/ixgbe/ixgbe_rxtx.h | 21 + 4 files changed, 93

[dpdk-dev] [PATCHv6 2/9] i40e: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-22 Thread Konstantin Ananyev
This patch assumes that the patch: i40e: fix wrong alignment for the number of HW descriptors already applied. Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c| 14 ++ drivers/net/i40e/i40e_ethdev.h| 5 + drivers/net/i40e/i40e_ethdev_vf.c | 12

[dpdk-dev] [PATCHv6 1/9] ethdev: add new API to retrieve RX/TX queue information

2015-10-22 Thread Konstantin Ananyev
rte_eth_dev_info. Signed-off-by: Konstantin Ananyev --- lib/librte_ether/rte_ethdev.c | 68 +++ lib/librte_ether/rte_ethdev.h | 85 +- lib/librte_ether/rte_ether_version.map | 8 3 files changed, 159 insertions(+), 2 de

[dpdk-dev] [PATCHv6 0/9] ethdev: add new API to retrieve RX/TX queue information

2015-10-22 Thread Konstantin Ananyev
into rte_eth_dev_info v6 chages: - respin to comply with latest dpdk.org - update release_notes Konstantin Ananyev (9): ethdev: add new API to retrieve RX/TX queue information i40e: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim ixgbe: add support for eth_(rxq|txq)_info_get

[dpdk-dev] [PATCHv5 8/8] testpmd: add new command to display RX/TX queue information

2015-10-01 Thread Konstantin Ananyev
From: "Ananyev, Konstantin" <konstantin.anan...@intel.com> Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 +++ app/test-pmd/config.c | 77 ++ app/test-pmd/testpmd.h | 2 ++ 3 fi

[dpdk-dev] [PATCHv5 7/8] vmxnet3: add HW specific desc_lim data into dev_info

2015-10-01 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index a70be5c..3745b7d 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b

[dpdk-dev] [PATCHv5 5/8] fm10k: add HW specific desc_lim data into dev_info

2015-10-01 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/fm10k/fm10k_ethdev.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index a69c990..9588dab 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k

[dpdk-dev] [PATCHv5 4/8] e1000: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-01 Thread Konstantin Ananyev
From: "Ananyev, Konstantin" <konstantin.anan...@intel.com> Signed-off-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 36 drivers/net/e1000/em_ethdev.c| 14 drivers/net/e1000/em_rxtx.c | 71 +++--

[dpdk-dev] [PATCHv5 3/8] ixgbe: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-01 Thread Konstantin Ananyev
From: "Ananyev, Konstantin" <konstantin.anan...@intel.com> Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 23 ++ drivers/net/ixgbe/ixgbe_ethdev.h | 6 drivers/net/ixgbe/ixgbe_rxtx.c | 68 +--- d

[dpdk-dev] [PATCHv5 2/8] i40e: add support for eth_(rxq|txq)_info_get and (rx|tx)_desc_lim

2015-10-01 Thread Konstantin Ananyev
From: "Ananyev, Konstantin" <konstantin.anan...@intel.com> This patch assumes that the patch: i40e: fix wrong alignment for the number of HW descriptors already applied. Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c| 14 ++ drivers/net/i4

[dpdk-dev] [PATCHv5 1/8] ethdev: add new API to retrieve RX/TX queue information

2015-10-01 Thread Konstantin Ananyev
ace. v5 changes: - adressed previous code-review comments - rte_ether_version.map: move new functions into DPDK_2.2 sub-space. - added new fields into rte_eth_dev_info Signed-off-by: Konstantin Ananyev --- lib/librte_ether/rte_ethdev.c | 68 +++ lib/librte_et

[dpdk-dev] [PATCHv5 0/8] ethdev: add new API to retrieve RX/TX queue information

2015-10-01 Thread Konstantin Ananyev
queue information i40e: add support for eth_(rxq|txq)_info_get ixgbe: add support for eth_(rxq|txq)_info_get e1000: add support for eth_(rxq|txq)_info_get testpmd: add new command to display RX/TX queue information Konstantin Ananyev (3): fm10k: add HW specific desc_lim data into dev_info

[dpdk-dev] [PATCH] i40e: fix wrong alignment for the number of HW descriptors

2015-09-30 Thread Konstantin Ananyev
. So make sure that for both RX and TX queues number of HW descriptors is a multiple of 32. Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_rxtx.c | 26 +- drivers/net/i40e/i40e_rxtx.h | 6 ++ 2 files changed, 19 insertions(+), 13 deletions(-) diff --git

[dpdk-dev] [PATCH v4] ixgbe_pmd: enforce RS bit on every EOP descriptor for devices newer than 82598

2015-09-11 Thread Konstantin Ananyev
0 descriptors). With that approach I also see a slight performance drop but it is much less then with your approach: with the same conditions it can do 14.2 Mpps over 1 port. Thanks Konstantin Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.c | 25 +++--

[dpdk-dev] [PATCH] ixgbe: fix RX is not working properly when buffer address is not word aligned

2015-08-03 Thread Konstantin Ananyev
+ RTE_PKTMBUF_HEADROOM. As ixgbe PMD doesn't support split header feature anyway, the issue can be fixied just by always setting HBA in the RXD to zero. Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.c | 8 drivers/net/ixgbe/ixgbe_rxtx_vec.c | 6 ++ 2 files changed, 10

[dpdk-dev] [PATCHv2 2/2] ixgbe: fix vector scatter RX could produce wrong nb_segs value

2015-07-28 Thread Konstantin Ananyev
Fixes: cf4b4708a88a (ixgbe: improve slow-path perf with vector scattered Rx) v2: changes: - updated commit message with 'Fixes'. Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx_vec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec.c b

[dpdk-dev] [PATCHv2 1/2] ixgbe: fix scalar scatter RX doesn't take into account CRC length

2015-07-28 Thread Konstantin Ananyev
cases (HW CRC strip on/off). That patch restores missed functionality. Fixes: 9d8a92628f21 ("ixgbe: remove simple scalar scattered Rx method") v2 changes: - updated commit message with 'Fixes'. Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.c | 19 +

[dpdk-dev] [PATCHv2 0/2] ixgbe: Two fixes for RX scatter functions.

2015-07-28 Thread Konstantin Ananyev
Konstantin Ananyev (2): ixgbe: fix scalar scatter RX doesn't take into account CRC length ixgbe: fix vector scatter RX could produce wrong nb_segs value drivers/net/ixgbe/ixgbe_rxtx.c | 19 +++ drivers/net/ixgbe/ixgbe_rxtx_vec.c | 2 ++ 2 files changed, 21 insertions

[dpdk-dev] [PATCH 2/2] ixgbe: fix vector scatter RX could produce wrong nb_segs value

2015-07-28 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx_vec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec.c b/drivers/net/ixgbe/ixgbe_rxtx_vec.c index 6c1647e..1c16dec 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx_vec.c +++ b/drivers/net/ixgbe

[dpdk-dev] [PATCH 1/2] ixgbe: fix scalar scatter RX doesn't take into account CRC length

2015-07-28 Thread Konstantin Ananyev
cases (HW CRC strip on/off). That patch restores missed functionality. Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index a0c8847..a1b25aa

[dpdk-dev] [PATCH 0/2] ixgbe: Two fixes for RX scatter functions.

2015-07-28 Thread Konstantin Ananyev
Konstantin Ananyev (2): ixgbe: fix scalar scatter RX doesn't take into account CRC length ixgbe: fix vector scatter RX could produce wrong nb_segs value drivers/net/ixgbe/ixgbe_rxtx.c | 19 +++ drivers/net/ixgbe/ixgbe_rxtx_vec.c | 2 ++ 2 files changed, 21 insertions

[dpdk-dev] [PATCH] ixgbe: fix RX queue vector fields are not reset properly

2015-07-27 Thread Konstantin Ananyev
As Steve pointed out, "ixgbe: fix release queue mbufs" is not complete. As at queue stop we don't reset vector related rx queue fields to their initial values. Reported-by: Cunming Liang Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.c | 5 + 1 file

[dpdk-dev] [PATCH] rte_ethdev.h: fix make sure that all functions has C linkage type.

2015-07-24 Thread Konstantin Ananyev
Move #ifdef __cplusplus to the end of the file. Signed-off-by: Konstantin Ananyev --- lib/librte_ether/rte_ethdev.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index c901a2c..9b50858 100644 --- a/lib

[dpdk-dev] [PATCHv2 5/5] ixgbe: remove awkward typecasts from ixgbe SSE PMD

2015-07-24 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.h | 5 - drivers/net/ixgbe/ixgbe_rxtx_vec.c | 22 ++ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.h b/drivers/net/ixgbe/ixgbe_rxtx.h index befdc3a..1557

[dpdk-dev] [PATCHv2 4/5] ixgbe: rename tx queue release function for consistency

2015-07-24 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx_vec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec.c b/drivers/net/ixgbe/ixgbe_rxtx_vec.c index c01da7b..d3da31d 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx_vec.c +++ b/d

[dpdk-dev] [PATCHv2 3/5] ixgbe: fix bug on release of mbufs from queue

2015-07-24 Thread Konstantin Ananyev
Fixes: c95584dc2b18 ("ixgbe: new vectorized functions for Rx/Tx") v2 chages: - Make sure that rx_using_sse is reset to zero if scalar RX function was chosen. - fix checkpatch.pl errors. Signed-off-by: Bruce Richardson Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.

[dpdk-dev] [PATCHv2 2/5] ixgbe: fix comments on rx_queue fields

2015-07-24 Thread Konstantin Ananyev
The two fields for vector RX rearming in the rx queue structure were incorrectly labelled. Switching the comments on each around makes things clearer. Signed-off-by: Bruce Richardson Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_rxtx.h | 4 ++-- 1 file changed, 2 insertions

[dpdk-dev] [PATCHv2 1/5] Revert "ixgbe: check mbuf refcnt when clearing a ring"

2015-07-24 Thread Konstantin Ananyev
This reverts commit b35d0d80f0a809939549ddde99c1a76b7e38bff3. The bug fix was incorrect as it did not take account of the fact that the mbufs that were previously freed may have since be re-allocated. Signed-off-by: Bruce Richardson Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe

[dpdk-dev] [PATCHv2 0/5] ixgbe: fix mbuf release on RX and TX

2015-07-24 Thread Konstantin Ananyev
iginal fix, and applies a better fix for the issue, as well as performing other cleanups in the code in question, to try and avoid future issues. v2 chages: - Make sure that rx_using_sse is reset to zero if scalar RX function was chosen. - fix checkpatch.pl errors. - fix remaining wrong typecast.

[dpdk-dev] [PATCHv4 5/5] testpmd: add new command to display RX/TX queue information

2015-07-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 app/test-pmd/config.c | 67 ++ app/test-pmd/testpmd.h | 2 ++ 3 files changed, 117 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app

[dpdk-dev] [PATCHv4 4/5] e1000: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 12 drivers/net/e1000/em_ethdev.c| 2 ++ drivers/net/e1000/em_rxtx.c | 38 ++ drivers/net/e1000/igb_ethdev.c | 4 drivers/net/e1000/igb_rxtx.c | 36

[dpdk-dev] [PATCHv4 3/5] ixgbe: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 drivers/net/ixgbe/ixgbe_ethdev.h | 6 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 42 3 files changed, 52 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b

[dpdk-dev] [PATCHv4 2/5] i40e: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c | 2 ++ drivers/net/i40e/i40e_ethdev.h | 5 + drivers/net/i40e/i40e_rxtx.c | 42 ++ 3 files changed, 49 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net

[dpdk-dev] [PATCHv4 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-22 Thread Konstantin Ananyev
into DPDK_2.1 sub-space. Signed-off-by: Konstantin Ananyev --- lib/librte_ether/rte_ethdev.c | 54 + lib/librte_ether/rte_ethdev.h | 87 +++--- lib/librte_ether/rte_ether_version.map | 2 + 3 files changed, 137 insertions(+), 6

[dpdk-dev] [PATCHv4 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-22 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Right now supported for: ixgbe, i40e, e1000 PMDs. Konstantin Ananyev (5): ethdev: add new API to retrieve RX/TX queue information i40e: add support for eth_(rxq|txq)_info_get ixgbe: add support for eth_(rxq|txq)_info_get

[dpdk-dev] [PATCHv3 5/5] testpmd: add new command to display RX/TX queue information

2015-07-20 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 app/test-pmd/config.c | 67 ++ app/test-pmd/testpmd.h | 2 ++ 3 files changed, 117 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app

[dpdk-dev] [PATCHv3 3/5] ixgbe: add support for eth_(rxq|txq)_info_get

2015-07-20 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 drivers/net/ixgbe/ixgbe_ethdev.h | 6 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 42 3 files changed, 52 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b

[dpdk-dev] [PATCHv3 2/5] i40e: add support for eth_(rxq|txq)_info_get

2015-07-20 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c | 2 ++ drivers/net/i40e/i40e_ethdev.h | 5 + drivers/net/i40e/i40e_rxtx.c | 42 ++ 3 files changed, 49 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net

[dpdk-dev] [PATCHv3 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-20 Thread Konstantin Ananyev
could be added later without ABI breakage. v2 changes: - Add formal check for the qinfo input parameter. - As suggested rename 'rx_qinfo/tx_qinfo' to 'rxq_info/txq_info' v3 changes: - Updated rte_ether_version.map - Merged with latest changes Signed-off-by: Konstantin Ananyev --- lib

[dpdk-dev] [PATCHv3 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-20 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Right now supported for: ixgbe, i40e, e1000 PMDs. Konstantin Ananyev (5): ethdev: add new API to retrieve RX/TX queue information i40e: add support for eth_(rxq|txq)_info_get ixgbe: add support for eth_(rxq|txq)_info_get

[dpdk-dev] [PATCHv2 5/5] testpmd: add new command to display RX/TX queue information

2015-06-18 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 app/test-pmd/config.c | 67 ++ app/test-pmd/testpmd.h | 2 ++ 3 files changed, 117 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app

[dpdk-dev] [PATCHv2 4/5] e1000: add support for eth_(rxq|txq)_info_get

2015-06-18 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 12 drivers/net/e1000/em_ethdev.c| 2 ++ drivers/net/e1000/em_rxtx.c | 38 ++ drivers/net/e1000/igb_ethdev.c | 4 drivers/net/e1000/igb_rxtx.c | 36

[dpdk-dev] [PATCHv2 3/5] ixgbe: add support for eth_(rxq|txq)_info_get

2015-06-18 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 drivers/net/ixgbe/ixgbe_ethdev.h | 6 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 42 3 files changed, 52 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b

[dpdk-dev] [PATCHv2 2/5] i40e: add support for eth_(rxq|txq)_info_get

2015-06-18 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c | 2 ++ drivers/net/i40e/i40e_ethdev.h | 5 + drivers/net/i40e/i40e_rxtx.c | 42 ++ 3 files changed, 49 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net

[dpdk-dev] [PATCHv2 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Konstantin Ananyev
could be added later without ABI breakage. v2 changes: - Add formal check for the qinfo input parameter. - As suggested rename 'rx_qinfo/tx_qinfo' to 'rxq_info/txq_info' Signed-off-by: Konstantin Ananyev --- lib/librte_ether/rte_ethdev.c | 54 ++ lib/librte_ether

[dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-18 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Right now supported for: ixgbe, i40e, e1000 PMDs. Konstantin Ananyev (5): ethdev: add new API to retrieve RX/TX queue information i40e: add support for eth_(rxq|txq)_info_get ixgbe: add support for eth_(rxq|txq)_info_get

[dpdk-dev] [PATCH 5/5] testpmd: add new command to display RX/TX queue information

2015-06-17 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 app/test-pmd/config.c | 67 ++ app/test-pmd/testpmd.h | 2 ++ 3 files changed, 117 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app

[dpdk-dev] [PATCH 4/5] e1000: add support for eth_(rx|tx)_qinfo_get

2015-06-17 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 12 drivers/net/e1000/em_ethdev.c| 2 ++ drivers/net/e1000/em_rxtx.c | 38 ++ drivers/net/e1000/igb_ethdev.c | 4 drivers/net/e1000/igb_rxtx.c | 36

[dpdk-dev] [PATCH 3/5] ixgbe: add support for eth_(rx|tx)_qinfo_get

2015-06-17 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 drivers/net/ixgbe/ixgbe_ethdev.h | 6 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 42 3 files changed, 52 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b

[dpdk-dev] [PATCH 2/5] i40e: add support for eth_(rx|tx)_qinfo_get

2015-06-17 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c | 2 ++ drivers/net/i40e/i40e_ethdev.h | 5 + drivers/net/i40e/i40e_rxtx.c | 42 ++ 3 files changed, 49 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net

[dpdk-dev] [PATCH 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-17 Thread Konstantin Ananyev
be added later without ABI breakage. Signed-off-by: Konstantin Ananyev --- lib/librte_ether/rte_ethdev.c | 48 +++ lib/librte_ether/rte_ethdev.h | 77 ++- 2 files changed, 124 insertions(+), 1 deletion(-) diff --git a/lib

[dpdk-dev] [PATCH 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-17 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Right now supported for: ixgbe, i40e, e1000 PMDs. Konstantin Ananyev (5): ethdev: add new API to retrieve RX/TX queue information i40e: add support for eth_(rx|tx)_qinfo_get ixgbe: add support for eth_(rx|tx)_qinfo_get

[dpdk-dev] [PATCHv2 8/8] acl: add new test-cases into UT

2015-06-08 Thread Konstantin Ananyev
Add several new test cases for ACL to cover different build configurations. Signed-off-by: Konstantin Ananyev --- app/test/test_acl.c | 431 +++- 1 file changed, 423 insertions(+), 8 deletions(-) diff --git a/app/test/test_acl.c b/app/test

[dpdk-dev] [PATCHv2 7/8] acl: fix ambiguity between ACL rules in UT.

2015-06-08 Thread Konstantin Ananyev
Some test rules had equal priority for the same category. That can cause an ambiguity in build trie and test results. Specify different priority value for each rule from the same category. Signed-off-by: Konstantin Ananyev --- app/test/test_acl.h | 52

[dpdk-dev] [PATCHv2 5/8] acl: code dedup - introduce a new macro

2015-06-08 Thread Konstantin Ananyev
Introduce new RTE_ACL_MASKLEN_TO_BITMASK macro, that will be used in several places inside librte_acl and it's UT. Simplify and cleanup build_trie() code a bit. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 16 +++- lib/librte_acl/rte_acl.h | 3 +++ 2 files

[dpdk-dev] [PATCHv2 4/8] acl: fix avoid unneeded trie splitting for subset of rules.

2015-06-08 Thread Konstantin Ananyev
When rebuilding a trie for limited rule-set, don't try to split the rule-set even further. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c

[dpdk-dev] [PATCHv2 3/8] acl: add function to check build input parameters

2015-06-08 Thread Konstantin Ananyev
Move check for build confg parameter into a separate function. Simplify acl_calc_wildness() function. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 107 --- 1 file changed, 54 insertions(+), 53 deletions(-) diff --git a/lib

[dpdk-dev] [PATCHv2 2/8] acl: code cleanup - use global EAL macro, instead of creating a local copy

2015-06-08 Thread Konstantin Ananyev
use global RTE_LEN2MASK macro, instead of LEN2MASK. Signed-off-by: Konstantin Ananyev --- app/test-acl/main.c| 3 ++- lib/librte_acl/acl_bld.c | 3 ++- lib/librte_acl/rte_acl.c | 3 ++- lib/librte_acl/rte_acl.h | 2 +- lib/librte_acl/rte_acl_osdep.h | 2 -- 5 files

[dpdk-dev] [PATCHv2 1/8] acl: fix invalid rule wildness calculation for bitmask field type

2015-06-08 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c index 3801843..aee6ed5 100644 --- a/lib/librte_acl/acl_bld.c +++ b/lib/librte_acl/acl_bld.c @@ -1362,6

[dpdk-dev] [PATCHv2 0/8] acl: various fixes and cleanups

2015-06-08 Thread Konstantin Ananyev
Several fixes and code cleanups for the librte_acl. New test-cases for acl UT. Konstantin Ananyev (8): acl: fix invalid rule wildness calculation for bitmask field type acl: code cleanup - use global EAL macro, instead of creating a local copy acl: add function to check build input

[dpdk-dev] [PATCH 8/8] ACL: add new test-cases into UT

2015-06-04 Thread Konstantin Ananyev
Add several new test cases for ACL to cover different build configurations. Signed-off-by: Konstantin Ananyev --- app/test/test_acl.c | 431 +++- 1 file changed, 423 insertions(+), 8 deletions(-) diff --git a/app/test/test_acl.c b/app/test

[dpdk-dev] [PATCH 7/8] ACL: fix remove ambiguity between rules at UT

2015-06-04 Thread Konstantin Ananyev
Some test rules had equal priorityi for the same category. That can causes an ambiguity in build trie and test results. Specify different priority value for each rule from the same category. Signed-off-by: Konstantin Ananyev --- app/test/test_acl.h | 52

[dpdk-dev] [PATCH 6/8] ACL: cleanup remove unused code from acl_bld.c

2015-06-04 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 310 --- 1 file changed, 310 deletions(-) diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c index e144503..83669ac 100644 --- a/lib/librte_acl/acl_bld.c +++ b/lib

[dpdk-dev] [PATCH 5/8] ACL: introduce RTE_ACL_MASKLEN_TO_BITMASK macro

2015-06-04 Thread Konstantin Ananyev
Introduce new RTE_ACL_MASKLEN_TO_BITMASK macro, that will be used in several places inside librte_acl and it's UT. Simplify iand cleanup build_trie() code a bit. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 16 +++- lib/librte_acl/rte_acl.h | 3 +++ 2 files

[dpdk-dev] [PATCH 4/8] ACL: fix rebuilding a trie for subset of rules

2015-06-04 Thread Konstantin Ananyev
When rebuilding a trie for limited rule-set, don't try to split the rule-set even further. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c

[dpdk-dev] [PATCH 3/8] ACL: add function to check rte_acl_build() input parameters

2015-06-04 Thread Konstantin Ananyev
Move check for build parameters into a separate function. Simplify acl_calc_wildness() function. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 107 --- 1 file changed, 54 insertions(+), 53 deletions(-) diff --git a/lib/librte_acl

[dpdk-dev] [PATCH 2/8] ACL: code cleanup - use global RTE_LEN2MASK macro

2015-06-04 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-acl/main.c| 3 ++- lib/librte_acl/acl_bld.c | 3 ++- lib/librte_acl/rte_acl.c | 3 ++- lib/librte_acl/rte_acl.h | 2 +- lib/librte_acl/rte_acl_osdep.h | 2 -- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git

[dpdk-dev] [PATCH 1/8] ACL: fix invalid rule wildness calculation for RTE_ACL_FIELD_TYPE_BITMASK

2015-06-04 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c index db23b7b..e2db9bf 100644 --- a/lib/librte_acl/acl_bld.c +++ b/lib/librte_acl/acl_bld.c @@ -1362,6

[dpdk-dev] [PATCH 0/8] ACL: various fixes and cleanups

2015-06-04 Thread Konstantin Ananyev
This patch-set is based on: [PATCHv2 0/3] ACL: Fix bug in acl_merge_trie() and add a new test-case for it to the UT. Konstantin Ananyev (8): ACL: fix invalid rule wildness calculation for RTE_ACL_FIELD_TYPE_BITMASK ACL: code cleanup - use global RTE_LEN2MASK macro ACL: add function to check

[dpdk-dev] [PATCHv2 3/3] ACL: remove subtree_id calculations at build stage

2015-06-03 Thread Konstantin Ananyev
v2: - reorder code a bit to avoid gcc 5.1 warnings. As now subtree_id is not used acl_merge_trie() any more, there is no point to calculate and maintain that information. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl.h | 7 --- lib/librte_acl/acl_bld.c | 121

[dpdk-dev] [PATCHv2 2/3] ACL: add new test case for ranges build

2015-06-03 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test/test_acl.c | 147 ++-- 1 file changed, 143 insertions(+), 4 deletions(-) diff --git a/app/test/test_acl.c b/app/test/test_acl.c index 7119ad3..6a032f9 100644 --- a/app/test/test_acl.c +++ b/app/test

  1   2   3   >