[dpdk-dev] [PATCH 1/1] fix the number of operations in libcrypto test

2016-10-10 Thread Marcin Kerlin
This patch reduce the number of total operations from 1M to 10K, because test is taking too long time now. Fixes: ffbe3be0d4b5 ("app/test: add libcrypto") Signed-off-by: Marcin Kerlin --- app/test/test_cryptodev_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[dpdk-dev] [PATCH v5 2/2] app/testpmd: improve handling of multiprocess

2016-09-30 Thread Marcin Kerlin
. This allows to have a up-to-date list of devices data and run again secondary application with the same name. Signed-off-by: Marcin Kerlin --- app/test-pmd/testpmd.c | 37 +++-- app/test-pmd/testpmd.h | 1 + 2 files changed, 36 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH v5 1/2] librte_ether: add protection against overwrite device data

2016-09-30 Thread Marcin Kerlin
: Marcin Kerlin --- lib/librte_ether/rte_ethdev.c | 89 +++--- lib/librte_ether/rte_ethdev.h | 12 + lib/librte_ether/rte_ether_version.map | 6 +++ 3 files changed, 100 insertions(+), 7 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib

[dpdk-dev] [PATCH v5 0/2] app/testpmd: improve multiprocess support

2016-09-30 Thread Marcin Kerlin
should be protected against attempting to write from two different processes. Tomasz Kulasek sent announce ABI change in librte_ether on 21 July 2016. I would like to join to this breaking ABI, if it is possible. v2: * fix syntax error in version script v3: * changed scope of function * improved

[dpdk-dev] [PATCH v4 2/2] app/testpmd: improve handling of multiprocess

2016-09-27 Thread Marcin Kerlin
. This allows to have a up-to-date list of devices data and run again secondary application with the same name. Signed-off-by: Marcin Kerlin --- app/test-pmd/testpmd.c | 36 ++-- app/test-pmd/testpmd.h | 1 + 2 files changed, 35 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH v4 1/2] librte_ether: add protection against overwrite device data

2016-09-27 Thread Marcin Kerlin
: Marcin Kerlin --- lib/librte_ether/rte_ethdev.c | 90 +++--- lib/librte_ether/rte_ethdev.h | 24 + lib/librte_ether/rte_ether_version.map | 6 +++ 3 files changed, 112 insertions(+), 8 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib

[dpdk-dev] [PATCH v4 0/2] app/testpmd: improve multiprocess support

2016-09-27 Thread Marcin Kerlin
should be protected against attempting to write from two different processes. Tomasz Kulasek sent announce ABI change in librte_ether on 21 July 2016. I would like to join to this breaking ABI, if it is possible. v2: * fix syntax error in version script v3: * changed scope of function * improv

[dpdk-dev] [PATCH v4 0/2] app/testpmd: improve multiprocess support

2016-09-27 Thread Marcin Kerlin
should be protected against attempting to write from two different processes. Tomasz Kulasek sent announce ABI change in librte_ether on 21 July 2016. I would like to join to this breaking ABI, if it is possible. v2: * fix syntax error in version script v3: * changed scope of function * improv

[dpdk-dev] [PATCH v3 2/2] app/testpmd: improve handling of multiprocess

2016-09-26 Thread Marcin Kerlin
. This allows to have a up-to-date list of devices data and run again secondary application with the same name. Signed-off-by: Marcin Kerlin --- app/test-pmd/testpmd.c | 36 ++-- app/test-pmd/testpmd.h | 1 + 2 files changed, 35 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH v3 1/2] librte_ether: ensure not overwrite device data in mp app

2016-09-26 Thread Marcin Kerlin
Added prevention not overwrite device data in array rte_eth_dev_data[]. Secondary process appends in the first free place rather than at the beginning. This behavior prevents overwriting devices data of primary process by secondary process. Signed-off-by: Marcin Kerlin --- lib/librte_ether

[dpdk-dev] [PATCH v3 0/2] app/testpmd: improve multiprocess support

2016-09-26 Thread Marcin Kerlin
should be protected against attempting to write from two different processes. Tomasz Kulasek sent announce ABI change in librte_ether on 21 July 2016. I would like to join to this breaking ABI, if it is possible. v2: * fix syntax error in version script v3: * changed scope of function * imp

[dpdk-dev] [PATCH v2 2/2] app/testpmd: improve handling of multiprocess

2016-09-20 Thread Marcin Kerlin
. This allows to have a up-to-date list of devices data and run again secondary application with the same name. Signed-off-by: Marcin Kerlin --- app/test-pmd/testpmd.c | 36 ++-- app/test-pmd/testpmd.h | 1 + 2 files changed, 35 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH v2 1/2] librte_ether: ensure not overwrite device data in mp app

2016-09-20 Thread Marcin Kerlin
Added prevention not overwrite device data in array rte_eth_dev_data[]. Secondary process appends in the first free place rather than at the beginning. This behavior prevents overwriting devices of primary process by secondary process. Signed-off-by: Marcin Kerlin --- lib/librte_ether

[dpdk-dev] [PATCH v2 0/2] app/testpmd: improve multiprocess support

2016-09-20 Thread Marcin Kerlin
, if it is possible. v2: * fix syntax error in version script Marcin Kerlin (2): librte_ether: ensure not overwrite device data in mp app app/testpmd: improve handling of multiprocess app/test-pmd/testpmd.c | 36 +- app/test-pmd/testpmd.h | 1

[dpdk-dev] [PATCH v2 0/2] app/testpmd: improve multiprocess support

2016-09-20 Thread Marcin Kerlin
, if it is possible. v2: * fix syntax error in version script Marcin Kerlin (2): librte_ether: ensure not overwrite device data in mp app app/testpmd: improve handling of multiprocess app/test-pmd/testpmd.c | 36 +- app/test-pmd/testpmd.h | 1

[dpdk-dev] [PATCH 2/2] app/testpmd: improve handling of multiprocess

2016-09-02 Thread Marcin Kerlin
. This allows to have a up-to-date list of devices data and run again secondary application with the same name. Signed-off-by: Marcin Kerlin --- app/test-pmd/testpmd.c | 36 ++-- app/test-pmd/testpmd.h | 1 + 2 files changed, 35 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH 1/2] librte_ether: ensure not overwrite device data in mp app

2016-09-02 Thread Marcin Kerlin
Added prevention not overwrite device data in array rte_eth_dev_data[]. Secondary process appends in the first free place rather than at the beginning. This behavior prevents overwriting devices of primary process by secondary process. Signed-off-by: Marcin Kerlin --- lib/librte_ether

[dpdk-dev] [PATCH 0/2] app/testpmd: improve multiprocess support

2016-09-02 Thread Marcin Kerlin
, if it is possible. Marcin Kerlin (2): librte_ether: ensure not overwrite device data in mp app app/testpmd: improve handling of multiprocess app/test-pmd/testpmd.c | 36 +- app/test-pmd/testpmd.h | 1 + lib/librte_ether/rte_ethdev.c | 90

[dpdk-dev] [PATCH 2/2] app/testpmd: fix handling of multiprocess

2016-07-29 Thread Marcin Kerlin
processes. This allows to have a up-to-date list of devices and run again secondary application with the same name. Signed-off-by: Marcin Kerlin --- app/test-pmd/testpmd.c | 30 -- app/test-pmd/testpmd.h | 1 + 2 files changed, 29 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH 1/2] lib/librte_ether: ensure not overwrite device data

2016-07-29 Thread Marcin Kerlin
rte_eth_dev_data[] and rte_eth_devices[] are shifted relative to each other and it required the addition new functions to search separately data. Signed-off-by: Marcin Kerlin --- lib/librte_ether/rte_ethdev.c | 87 ++ lib/librte_ether/rte_ethdev.h

[dpdk-dev] [PATCH 0/2] add ensure consistent device data in multiprocess mode

2016-07-29 Thread Marcin Kerlin
app. 2)Changes in application testpmd allow secondary process to attach the mempool created by primary process rather than create new and in the case of quit or force quit to free devices of this process from shared array rte_eth_dev_data[]. Marcin Kerlin (2): lib/librte_ether: ensure not

[dpdk-dev] [PATCH v5 1/1] eal: fix resource leak of mapped memory

2016-06-16 Thread Marcin Kerlin
3303 Fixes: af75078fece3 ("first public release") Signed-off-by: Marcin Kerlin Acked-by: Sergio Gonzalez Monroy --- v5: -shift the history of changes v4: -removed keyword const from pointer and dependent on that casting (void *) v3: -removed redundant casting -removed update error message

[dpdk-dev] [PATCH v4 1/1] eal: fix resource leak of mapped memory

2016-06-15 Thread Marcin Kerlin
ointer and dependent on that casting (void *) v3: 1)removed redundant casting 2)removed update error message v2: 1)unmapping also previous addresses Coverity issue: 13295, 13296, 13303 Fixes: af75078fece3 ("first public release") Signed-off-by: Marcin Kerlin --- lib/librte_eal/linuxapp/e

[dpdk-dev] [PATCH 1/1] eal: fix typo in error message

2016-06-15 Thread Marcin Kerlin
Minor typo fix to error message Fixes: 148f963fb532 ("xen: core library changes") Signed-off-by: Marcin Kerlin --- lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_ea

[dpdk-dev] [PATCH v3 1/1] eal: fix resource leak of mapped memory

2016-06-15 Thread Marcin Kerlin
ved update error message V2: 1)unmapping also previous addresses Coverity issue: 13295, 13296, 13303 Fixes: af75078fece3 ("first public release") Signed-off-by: Marcin Kerlin --- lib/librte_eal/linuxapp/eal/eal_memory.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(

[dpdk-dev] [PATCH 1/1] vhost: fix null pointer dereference

2016-06-15 Thread Marcin Kerlin
Return value of function get_device() is not checking before dereference. Fix this problem by adding checking condition. Coverity issue: 119262 Fixes: 77d20126b4c2 ("vhost-user: handle message to enable vring") Signed-off-by: Marcin Kerlin --- lib/librte_vhost/vhost_user/virtio-net-

[dpdk-dev] [PATCH v2 1/1] eal: fix resource leak of mapped memory

2016-06-14 Thread Marcin Kerlin
3303 Fixes: af75078fece3 ("first public release") Signed-off-by: Marcin Kerlin --- lib/librte_eal/linuxapp/eal/eal_memory.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c index 79d

[dpdk-dev] [PATCH 1/1] ip_pipeline: fix null pointer dereference

2016-06-13 Thread Marcin Kerlin
Return value of function app_pipeline_type_find is not checking before dereference. Fix this problem by adding checking condition. Coverity issue: 127196 Fixes: b4aee0fb9c6d ("examples/ip_pipeline: reconfigure thread binding dynamically") Signed-off-by: Marcin Kerlin --- examples/i

[dpdk-dev] [PATCH 1/1] lib/librte_cmdline: fix added checking return value

2016-05-16 Thread Marcin Kerlin
Unchecked return value: value returned from a function rdline_init is not checked, fix added checking return value and in the case of failure frees memory and return null pointer. Fixes: af75078fece3 ("first public release") Coverity ID 13204 Signed-off-by: Marcin Kerlin

[dpdk-dev] [PATCH 1/1] lib/librte_eal: fix resource leak

2016-04-19 Thread Marcin Kerlin
ublic release") Signed-off-by: Marcin Kerlin --- lib/librte_eal/linuxapp/eal/eal_memory.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c index 5b9132c..6320aa0 100644

[dpdk-dev] [PATCH 1/1] examples/distributor: fix unchecked return value

2016-04-19 Thread Marcin Kerlin
Fix issue reported by Coverity. Coverity ID 13207: Value returned from a function is not checked for errors before being used. Fixes: 07db4a975094 ("examples/distributor: new sample app") Signed-off-by: Marcin Kerlin --- examples/distributor/main.c | 17 + 1 file c

[dpdk-dev] [PATCH] examples/ip_pipeline: fix out-of-bounds write

2016-04-14 Thread Marcin Kerlin
CID 124567: In the function app_init_eal(struct app params * app) number of entries into array exceeds the size of the array if the conditions are fulfilled. Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Marcin Kerlin --- examples/ip_pipe

[dpdk-dev] [PATCH v2 1/1] examples/ip_pipeline: fix wrong size of argument

2016-04-08 Thread Marcin Kerlin
v2: added fixline CID 120150: Wrong size of the allocated memory. Passing argument as size of pointer (8UL) instead of size of structure app_pipeline_firewall_rule. Fixes: 67ebdbef0c31 ("examples/ip_pipeline: add bulk update of firewall rules") Signed-off-by: Marcin Kerlin ---

[dpdk-dev] [examples/ip_pipeline: fix wrong size of argument 1/1]

2016-04-08 Thread Marcin Kerlin
CID 120150: Wrong size of the allocated memory. Passing argument as size of pointer (8UL) instead of size of structure app_pipeline_firewall_rule. Signed-off-by: Marcin Kerlin --- examples/ip_pipeline/pipeline/pipeline_firewall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[dpdk-dev] [PATCH v3 1/1] jobstats: added function abort for job

2016-02-12 Thread Marcin Kerlin
ved redundant field v3: * added an example of using Signed-off-by: Marcin Kerlin --- examples/l2fwd-jobstats/main.c | 9 - lib/librte_jobstats/rte_jobstats.c | 20 lib/librte_jobstats/rte_jobstats.h | 14 ++

[dpdk-dev] [PATCH v2 1/1] jobstats: added function abort for job

2016-01-29 Thread Marcin Kerlin
receiving n>0 packets. v2: * removed redundant field Signed-off-by: Marcin Kerlin --- lib/librte_jobstats/rte_jobstats.c | 20 lib/librte_jobstats/rte_jobstats.h | 14 ++ lib/librte_jobstats/rte_jobstats_version.map | 7 +++ 3 files chan

[dpdk-dev] [PATCH V1 1/1] jobstats: added function abort for job

2016-01-26 Thread Marcin Kerlin
receiving n>0 packets. Signed-off-by: Marcin Kerlin --- lib/librte_jobstats/rte_jobstats.c | 22 ++ lib/librte_jobstats/rte_jobstats.h | 17 + lib/librte_jobstats/rte_jobstats_version.map | 7 +++ 3 files changed, 46 insertions(+) d

[dpdk-dev] [PATCH v3 5/5] doc: modify release notes and deprecation notice for table and pipeline

2015-10-13 Thread Marcin Kerlin
The LIBABIVER number is incremented for table and pipeline libraries. The release notes is updated and the deprecation announce is removed. Signed-off-by: Maciej Gajdzica Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 3 --- doc/guides/rel_notes/release_2_2.rst

[dpdk-dev] [PATCH v3 4/5] ip_pipline: added cli commands for bulk add/delete to firewall pipeline

2015-10-13 Thread Marcin Kerlin
Added two new cli commands to firewall pipeline. Commands bulk add and bulk delete takes as argument a file with rules to add/delete. The file is parsed, and then rules are passed to backend functions which add/delete records from pipeline tables. Signed-off-by: Maciej Gajdzica Acked-by: Cristian

[dpdk-dev] [PATCH v3 3/5] test_table: added check for bulk add/delete to acl table unit test

2015-10-13 Thread Marcin Kerlin
Added to acl table unit test check for bulk add and bulk delete. Signed-off-by: Maciej Gajdzica Acked-by: Cristian Dumitrescu --- app/test/test_table_acl.c | 166 ++ 1 file changed, 166 insertions(+) diff --git a/app/test/test_table_acl.c b/app/test/

[dpdk-dev] [PATCH v3 2/5] pipeline: added bulk add/delete functions for table

2015-10-13 Thread Marcin Kerlin
Added functions for adding/deleting multiple records to table owned by pipeline. Signed-off-by: Maciej Gajdzica Signed-off-by: Marcin Kerlin Acked-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_pipeline.c | 106 + lib/librte_pipeline/rte_pipeline.h

[dpdk-dev] [PATCH v3 1/5] table: added bulk add/delete functions for table

2015-10-13 Thread Marcin Kerlin
New functions prototypes for bulk add/delete added to table API. New functions allows adding/deleting multiple records with single function call. For now those functions are implemented only for ACL table. For other tables these function pointers are set to NULL. Signed-off-by: Maciej Gajdzica Ac

[dpdk-dev] [PATCH v3 0/5] pipeline: add bulk add/delete functions for table

2015-10-13 Thread Marcin Kerlin
This patch adds bulk add/delete functions for tables used by pipelines. It allows for adding/deleting many rules to pipeline tables in one function call. It is particulary useful for firewall pipeline which is using ACL table. After every add or delete, table is rebuild which leads to very long tim