[dpdk-dev] [PATCH v2] test/pmd_perf: fix for segmentation fault

2017-10-27 Thread Daniel Mrzyglod
face. Fixes: 002ade70e933 ("app/test: measure cycles per packet in Rx/Tx") Cc: cunming.li...@intel.com Cc: sta...@dpdk.org Signed-off-by: Daniel Mrzyglod --- test/test/test_pmd_perf.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test/test/test_

[dpdk-dev] [PATCH] net/bonding: fix setting default aggregator mode to stable

2017-10-20 Thread Daniel Mrzyglod
This patch change default aggregator mode to stable when using rte_eth_bond_create() Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes") Signed-off-by: Daniel Mrzyglod --- drivers/net/bonding/rte_eth_bond_pmd.c | 21 - 1 file changed, 20 insert

[dpdk-dev] [PATCH v3] eal: fix resource leak

2017-10-11 Thread Daniel Mrzyglod
Memory allocated in strdup is not free. Coverity issue: 143257 Fixes: d8a2bc71dfc2 ("log: remove app path from syslog id") Cc: tho...@monjalon.net Cc: sta...@dpdk.org Signed-off-by: Daniel Mrzyglod --- v3: * remove strdup because it's basically striped argv[0] v2: * Fix due

[dpdk-dev] [PATCH v3] net/virtio: fix of untrusted scalar value

2017-09-22 Thread Daniel Mrzyglod
. Coverity issue: 139601 Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer") Cc: jianfeng@intel.com Cc: sta...@dpdk.org Signed-off-by: Daniel Mrzyglod --- v3: * there were wrong v2 email adress for stable dpdk mailinglist * fix compilation errors v2: * Add Cc for stable

[dpdk-dev] [PATCH v2] eal: fix resource leak

2017-09-22 Thread Daniel Mrzyglod
Memory allocated in strdup is not free. Coverity issue: 143257 Fixes: d8a2bc71dfc2 ("log: remove app path from syslog id") Cc: tho...@monjalon.net Signed-off-by: Daniel Mrzyglod --- v2: * Fix due to compilation errors lib/librte_eal/linuxapp/eal/eal.c | 18 +- 1 fi

[dpdk-dev] [PATCH v2] net/virtio: fix of untrusted scalar value

2017-09-20 Thread Daniel Mrzyglod
. Coverity issue: 139601 Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer") Cc: jianfeng@intel.com Cc: stable@sta...@dpdk.org Signed-off-by: Daniel Mrzyglod --- v2: * Add Cc for stable in gitlog massage * Add Coverity line * v1 was acked by Acked-by: Jianfeng Tan d

[dpdk-dev] [PATCH] net/virtio: fix of untrusted scalar value

2017-09-20 Thread Daniel Mrzyglod
: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer") Cc: jianfeng@intel.com Signed-off-by: Daniel Mrzyglod --- drivers/net/virtio/virtio_user/vhost_user.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/virtio/virtio_user/vhost_user.c b/drivers/

[dpdk-dev] [PATCH] eal: fix resource leak

2017-09-19 Thread Daniel Mrzyglod
Memory allocated in strdup is not free. Coverity issue: 143257 Fixes: d8a2bc71dfc2 ("log: remove app path from syslog id") Cc: tho...@monjalon.net Signed-off-by: Daniel Mrzyglod --- lib/librte_eal/linuxapp/eal/eal.c | 16 1 file changed, 16 insertions(+) diff -

[dpdk-dev] [PATCH] app/testpmd: wrong usage of fseek & ftell to determine filesize

2017-08-18 Thread Daniel Mrzyglod
rity issue: 143454 Fixes: a92a5a2cbbff ("app/testpmd: add command for loading DDP") Signed-off-by: Daniel Mrzyglod --- app/test-pmd/config.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/app/test-pmd/config.c b/app/tes

[dpdk-dev] [PATCH] net/i40e: fix return code not checked

2017-08-10 Thread Daniel Mrzyglod
Calling i40e_vsi_delete_mac without checking return value (as is done elsewhere 5 out of 6 times) Coverity issue: 140735 Fixes: 43c89d5a4fde ("net/i40e: set VF MAC from PF") Signed-off-by: Daniel Mrzyglod --- drivers/net/i40e/rte_pmd_i40e.c | 4 +++- 1 file changed, 3 insertions(+),

[dpdk-dev] [PATCH] doc: add testpmd bonding mode 4 aggregators mode

2017-07-26 Thread Daniel Mrzyglod
Add testpmd commands for setting aggregators mode in mode 4 (IEEE802.3AD). Signed-off-by: Daniel Mrzyglod --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 1 file changed, 8 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug

[dpdk-dev] [PATCH] test/bonding: fix namespace of the rss tests

2017-07-26 Thread Daniel Mrzyglod
drivers are looking by name of the device so change namespace to proper one Fixes: 43b630244e7e ("app/test: add dynamic bonding RSS configuration") Signed-off-by: Daniel Mrzyglod --- test/test/test_link_bonding_rssconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[dpdk-dev] [PATCH] app/testpmd: fix argument cannot be negative

2017-07-25 Thread Daniel Mrzyglod
Coverity issue: 143454 Fixes: a92a5a2cbbff ("app/testpmd: add command for loading DDP") Signed-off-by: Daniel Mrzyglod --- app/test-pmd/config.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index ee6644d10.

[dpdk-dev] [PATCH] doc: fix testpmd literal block representation

2017-07-20 Thread Daniel Mrzyglod
There were mising :: so file was parsed in wrong way Fixes: c735b831b0c1 ("app/testpmd: add cmd for dedicated LACP Rx/Tx queues") Signed-off-by: Daniel Mrzyglod --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[dpdk-dev] [PATCH v2 3/3] test/bonding: add test case for agg selection in mode4

2017-07-19 Thread Daniel Mrzyglod
Signed-off-by: Daniel Mrzyglod --- test/test/test_link_bonding_mode4.c | 83 +++-- 1 file changed, 79 insertions(+), 4 deletions(-) diff --git a/test/test/test_link_bonding_mode4.c b/test/test/test_link_bonding_mode4.c index 8b64bbf71..8e9e23db5 100644 --- a

[dpdk-dev] [PATCH v2 2/3] testpmd: add cmndlines to support different aggregation modes

2017-07-19 Thread Daniel Mrzyglod
This patch add support for different aggregator modes in similar manner that is provided in linux kernel. testpmd> set bonding agg_mode testpmd> show bonding config Signed-off-by: Daniel Mrzyglod --- app/test-pmd/cmdline.c | 94 +-

[dpdk-dev] [PATCH v2 1/3] drivers/bonding: add other agg selection modes

2017-07-19 Thread Daniel Mrzyglod
bandwidth count - takes aggregator with biggest number of slaves Signed-off-by: Daniel Mrzyglod --- drivers/net/bonding/rte_eth_bond_8023ad.c | 193 -- drivers/net/bonding/rte_eth_bond_8023ad.h | 32 drivers/net/bonding/rte_eth_bond_8023ad_private.h | 1

[dpdk-dev] [PATCH v2 0/3] Bonding add additional aggregators mode for 802.3AD

2017-07-19 Thread Daniel Mrzyglod
biggest number of slaves V2: -fix eal argument parsing -add cmdline help in testpmd -add unit test -fix checkpatch warnings -update device name in unit tests Daniel Mrzyglod (3): drivers/bonding: add other agg selection modes testpmd: add cmndlines to support different aggregation modes

[dpdk-dev] [PATCH] test/bonding: fix namespace bonding mode4 unit tests

2017-07-05 Thread Daniel Mrzyglod
ring network driver is limited to 32 characters the name of device was extened to net_ring_unit_test_mode4_slave_0 which is 33 Fixes: 5e41ab250dfa ("app/test: unit tests for bonding mode 4") Signed-off-by: Daniel Mrzyglod --- test/test/test_link_bonding_mode4.c | 8 1 file

[dpdk-dev] [PATCH 2/2] app/testpmd: add support for different aggregation mode in IEEE802.3ad bonding

2017-05-26 Thread Daniel Mrzyglod
This patch add support for different aggregator modes in similar manner that is provided in linux kernel. testpmd> set bonding agg_mode testpmd> show bonding config Signed-off-by: Daniel Mrzyglod --- app/test-pmd/cmdline.c | 90 +-

[dpdk-dev] [PATCH 0/2] Bonding add additional aggregators mode for 802.3AD

2017-05-26 Thread Daniel Mrzyglod
biggest number of slaves Daniel Mrzyglod (2): drivers/bonding: add other agg selection modes for mode4 app/testpmd: add support for different aggregation mode in IEEE802.3ad bonding app/test-pmd/cmdline.c| 90 +- drivers/net/bonding

[dpdk-dev] [PATCH 1/2] drivers/bonding: add other agg selection modes for mode4

2017-05-26 Thread Daniel Mrzyglod
bandwidth count - takes aggregator with biggest number of slaves Signed-off-by: Daniel Mrzyglod --- drivers/net/bonding/rte_eth_bond_8023ad.c | 191 -- drivers/net/bonding/rte_eth_bond_8023ad.h | 32 drivers/net/bonding/rte_eth_bond_8023ad_private.h | 1

[dpdk-dev] [PATCH v3] app/crypto-perf: fix avoid wrong optype for AEAD algorithms

2017-03-08 Thread Daniel Mrzyglod
When somebody use bad --optype with aead alghorithms segmentation fault could happen. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Daniel Mrzyglod --- Changes for v3: - fix headline of this patch - add ccm alghorithm Changes for v

[dpdk-dev] [PATCH v2] app/crypto-perf: fix for segfault when bad optype is used with gcm alghorithms

2017-02-16 Thread Daniel Mrzyglod
When somebody use bad --optype with aead alghorithms segmentation fault could happen. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Daniel Mrzyglod --- Changes for v2: - fix checkpatch error related with whitespace - fix spelling

[dpdk-dev] [PATCH] app/crypto-perf: fix for segfault when bad optype is used with gcm alghorithms

2017-02-16 Thread Daniel Mrzyglod
When somebody use bad --optype with aead alghorithms segmentation fault could happen. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Daniel Mrzyglod --- How to reproduce: AESNI_GCM: ./build/app/dpdk-test-crypto-perf -c 0

[dpdk-dev] [PATCH v3] app/test-crypto-perf: fix compilation under FreeBSD

2017-02-07 Thread Daniel Mrzyglod
This patch fixes error: implicit declaration of function 'getline' Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Daniel Mrzyglod --- v3: * remove gcc from commit subject because it's common for all compillers v2: * re

[dpdk-dev] [PATCH v2] app/test-crypto-perf: fix gcc compilation under FreeBSD

2017-02-02 Thread Daniel Mrzyglod
This patch fixes error: implicit declaration of function 'getline' Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Daniel Mrzyglod --- v2: * rewrite patch messege * add fixline --- app/test-crypto-perf/cperf_test_vector_parsi

[dpdk-dev] [PATCH] app/test-crypto-perf: fix gcc compilation under FreeBSD

2017-02-01 Thread Daniel Mrzyglod
this fix error: implicit declaration of function 'getline' Signed-off-by: Daniel Mrzyglod --- app/test-crypto-perf/cperf_test_vector_parsing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-crypto-perf/cperf_test_vector_parsing.c b/app/test-c

[dpdk-dev] [PATCH] doc: fix openssl formating text

2017-01-10 Thread Daniel Mrzyglod
The code section was lacking indentation to be be correctly formatted. Signed-off-by: Daniel Mrzyglod --- doc/guides/cryptodevs/openssl.rst | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/guides/cryptodevs/openssl.rst b/doc/guides/cryptodevs

[dpdk-dev] [PATCH] doc: fix openssl formating text in documentation

2017-01-10 Thread Daniel Mrzyglod
the code section was lacking indendation to be be corectly formatted. Signed-off-by: Daniel Mrzyglod --- doc/guides/cryptodevs/openssl.rst | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/guides/cryptodevs/openssl.rst b/doc/guides/cryptodevs

[dpdk-dev] [PATCH v2] examples/exception_path: fix shift operation in lcore setup

2016-08-09 Thread Daniel Mrzyglod
: ea977ff1cb0b ("examples/exception_path: fix shift operation in lcore setup") Signed-off-by: Daniel Mrzyglod --- examples/exception_path/main.c | 74 ++ 1 file changed, 61 insertions(+), 13 deletions(-) diff --git a/examples/exception_path/main.c

[dpdk-dev] [PATCH] examples/exception_path: fix shift operation in lcore setup

2016-08-03 Thread Daniel Mrzyglod
tch forget to fix values also for input_cores_mask Signed-off-by: Daniel Mrzyglod --- examples/exception_path/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c index e5eedcc..88e7708 100644 --- a/examples/exce

[dpdk-dev] [PATCH v4] eal/linuxapp: fix resource leak

2016-07-06 Thread Daniel Mrzyglod
Current code does not munmap 'hugepage' mapping (hugepage info file) on function exit, leaking resources. Coverity issue: 97920 Fixes: b6a468ad41d5 ("memory: add --socket-mem option") Signed-off-by: Daniel Mrzyglod --- lib/librte_eal/linuxapp/eal/eal_memory.c | 9 +++-

[dpdk-dev] [PATCH v3] eal/linuxapp: fix resource leak

2016-06-22 Thread Daniel Mrzyglod
This patch fix all cases to do proper handle all munmap if pointer of hugepage is not NULL which prohibits resource leak. Coverity issue: 97920 Fixes: b6a468ad41d5 ("memory: add --socket-mem option") Signed-off-by: Daniel Mrzyglod --- lib/librte_eal/linuxapp/eal/eal_memory.c | 6

[dpdk-dev] [PATCH v2] examples/ip_pipeline: fix build error for gcc 4.8

2016-06-21 Thread Daniel Mrzyglod
ninitialized in this function [-Werror=maybe-uninitialized] struct app_pktq_out_params *pktq_out = Fixes: 760064838ec0 ("examples/ip_pipeline: link routing output ports to devices") Signed-off-by: Daniel Mrzyglod Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h |

[dpdk-dev] [PATCH] examples/ip_pipeline: fix build error for gcc 4.8

2016-06-09 Thread Daniel Mrzyglod
ninitialized in this function [-Werror=maybe-uninitialized] struct app_pktq_out_params *pktq_out = Fixes: 760064838ec0 ("examples/ip_pipeline: link routing output ports to devices") Signed-off-by: Daniel Mrzyglod --- examples/ip_pipeline/app.h |4 ++-- 1 file changed, 2 insertions(

[dpdk-dev] [PATCH] ixgbe: fix unused value

2016-06-02 Thread Daniel Mrzyglod
ed Rx") Coverity ID 13335 Signed-off-by: Daniel Mrzyglod --- drivers/net/ixgbe/ixgbe_rxtx_vec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec.c b/drivers/net/ixgbe/ixgbe_rxtx_vec.c index e97ea82..61c7aad 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx_vec.c +++

[dpdk-dev] [PATCH] i40e: fix unchecked return value

2016-05-24 Thread Daniel Mrzyglod
Calling i40e_switch_rx_queue without checking return value. Fixed by add warning log information if return failed. Fixes: 71d35259ff67 ("i40e: tear down flow director") Coverity ID 13198 Signed-off-by: Daniel Mrzyglod --- drivers/net/i40e/i40e_fdir.c | 5 - 1 file changed, 4

[dpdk-dev] [PATCH v2] eal/linuxapp: fix resource leak

2016-05-12 Thread Daniel Mrzyglod
: Leak of memory or pointers to system resources Fixes: b6a468ad41d5 ("memory: add --socket-mem option") Signed-off-by: Daniel Mrzyglod --- lib/librte_eal/linuxapp/eal/eal_memory.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_m

[dpdk-dev] [PATCH] eal/linuxapp: fix resource leak

2016-05-11 Thread Daniel Mrzyglod
: Leak of memory or pointers to system resources Fixes: b6a468ad41d5 ("memory: add --socket-mem option") Signed-off-by: Daniel Mrzyglod --- lib/librte_eal/linuxapp/eal/eal_memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_m

[dpdk-dev] [PATCH] vhost: fix buffer not null terminated

2016-05-10 Thread Daniel Mrzyglod
size Fixes: 54292e9520e0 ("vhost: support ifname for vhost-user") Signed-off-by: Daniel Mrzyglod --- lib/librte_vhost/virtio-net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index d870ad9..f4695af 100644 --- a/l

[dpdk-dev] [PATCH v2] examples/vm_power_manager: buffer not null terminated

2016-05-10 Thread Daniel Mrzyglod
r: channel manager and monitor in host") Signed-off-by: Daniel Mrzyglod --- examples/vm_power_manager/channel_manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/vm_power_manager/channel_manager.c b/examples/vm_power_manager/channel_manager.c index 22c2ddd..e068ae2 100644

[dpdk-dev] [PATCH] sched: fix useless call

2016-05-10 Thread Daniel Mrzyglod
sched: initial import") Signed-off-by: Daniel Mrzyglod --- lib/librte_sched/rte_sched.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index 1609ea8..9b962a6 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/r

[dpdk-dev] [PATCH] examples/kni: unchecked return value

2016-05-09 Thread Daniel Mrzyglod
;) Signed-off-by: Daniel Mrzyglod --- examples/kni/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index a5297f2..dcecd09 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c @@ -831,7 +831,8 @@ kni_free_kni(uint8

[dpdk-dev] [PATCH] examples/ip_pipline: fix memory initialization in firewall bulk functions

2016-05-06 Thread Daniel Mrzyglod
bulk functions expect that all memory is set with zeros Fixes: 67ebdbef0c31 ("examples/ip_pipeline: add bulk update of firewall rules") Signed-off-by: Daniel Mrzyglod --- examples/ip_pipeline/pipeline/pipeline_firewall_be.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

[dpdk-dev] [PATCH] eal/linux: fix undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)

2016-04-27 Thread Daniel Mrzyglod
Fix issue reported by clang scan-build there is a chance that nr_hugepages will be 0 if conditions for loop for (i = 0; i < (int) internal_config.num_hugepage_sizes; i++) will be unmeet. Fixes: b6a468ad41d5 ("memory: add --socket-mem option") Signed-off-by: Daniel Mrzyglod --- l

[dpdk-dev] [PATCH] lpm6: fix assigned value is garbage or undefined

2016-04-27 Thread Daniel Mrzyglod
Fix issue reported by clang scan-build Value of pointer tbl_next was uninitialized. When function lookup_step() take else branch it may provide garbage into tbl = tbl_next; Fixes: 5c510e13a9cb ("lpm: add IPv6 support") Signed-off-by: Daniel Mrzyglod --- lib/librte_lpm/rte_lpm6.c |

[dpdk-dev] [PATCH] app/test_acl: fix division by float zero

2016-04-22 Thread Daniel Mrzyglod
which may be zero has undefined behavior. Fixes: 26c057ab6c45 ("acl: new test-acl application") Signed-off-by: Daniel Mrzyglod --- app/test-acl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-acl/main.c b/app/test-acl/main.c index 0b0c093..d366

[dpdk-dev] [PATCH v2] eal: fix unchecked return value from library

2016-04-22 Thread Daniel Mrzyglod
used. This value may indicate an error condition. Fixes: 2f4adfad0a69 ("vfio: add multiprocess support") v2: Changed ERR to WARNING because it has no real impact on the application usability Signed-off-by: Daniel Mrzyglod Acked-by: Anatoly Burakov --- lib/librte_eal/li

[dpdk-dev] [PATCH] eal: fix unchecked return value from library

2016-04-21 Thread Daniel Mrzyglod
used. This value may indicate an error condition. Fixes: 2f4adfad0a69 ("vfio: add multiprocess support") Signed-off-by: Daniel Mrzyglod --- lib/librte_eal/linuxapp/eal/eal_pci_vfio_mp_sync.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/li

[dpdk-dev] [PATCH] power: fix argument cannot be negative

2016-04-20 Thread Daniel Mrzyglod
taken from header. The negative argument will be interpreted as a very large unsigned value. In send_msg: Negative value used as argument to a function expecting a positive value (for example, size of buffer or allocation) Fixes: 445c6528b55f ("power: common interface for guest and host"

[dpdk-dev] [PATCH v2] i40e: dereference before null check

2016-04-18 Thread Daniel Mrzyglod
: add vlan stripping and insertion to VF") Signed-off-by: Daniel Mrzyglod --- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 2bce69b..2d75b96 100644 --- a/driver

[dpdk-dev] [PATCH] i40e: dereference before null check

2016-04-18 Thread Daniel Mrzyglod
: add vlan stripping and insertion to VF") Signed-off-by: Daniel Mrzyglod --- drivers/net/i40e/i40e_ethdev_vf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 2bce69b..0d69322 100644 --- a/d

[dpdk-dev] [PATCH] examples/exception_path: bad shift operation in setup_port_lcore_affinities

2016-04-15 Thread Daniel Mrzyglod
CID: #30688 The operaton may have an undefined behavior or yield to an unexpected result. In setup_port_lcore_affinities: A bit shift operation has a shift amount which is too large or has a negative value. Fixes: af75078fece3 ("first public release") Signed-off-by: Danie

[dpdk-dev] [PATCH] cmdline: fix unchecked return value

2016-04-14 Thread Daniel Mrzyglod
f-by: Daniel Mrzyglod --- lib/librte_cmdline/cmdline_rdline.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/librte_cmdline/cmdline_rdline.c b/lib/librte_cmdline/cmdline_rdline.c index 1ef2258..e75a556 100644 --- a/lib/librte_cmdline/cmdline_rdline.c +++ b

[dpdk-dev] [PATCH] examples/vm_power_manager: buffer not null terminated

2016-04-12 Thread Daniel Mrzyglod
r: channel manager and monitor in host") Signed-off-by: Daniel Mrzyglod --- examples/vm_power_manager/channel_manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/vm_power_manager/channel_manager.c b/examples/vm_power_manager/channel_manager.c index 22c2ddd.

[dpdk-dev] [PATCH] eal: fix resource leak

2016-04-11 Thread Daniel Mrzyglod
CID 13289 (#1-2 of 2): Resource leak (RESOURCE_LEAK): The system resource will not be reclaimed and reused, reducing the future availability of the resource. In pci_vfio_get_group_fd: Leak of memory or pointers to system resources Fixes: ff0b67d1c868 ("vfio: DMA mapping") Signed-off-

[dpdk-dev] [PATCH v2] examples: fix build errors for icc

2016-04-04 Thread Daniel Mrzyglod
secgw: add IPsec sample application") Fixes: 8cc72f2814dd ("examples/vmdq_dcb: support X710") Signed-off-by: Daniel Mrzyglod --- examples/ipsec-secgw/Makefile | 4 examples/vmdq_dcb/Makefile| 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/ip

[dpdk-dev] [PATCH 2/2] examples: fix build errors for icc

2016-04-04 Thread Daniel Mrzyglod
ation") Fixes: 8cc72f2814dd ("examples/vmdq_dcb: support X710") Signed-off-by: Daniel Mrzyglod --- examples/ipsec-secgw/Makefile | 4 examples/vmdq_dcb/Makefile| 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/Makefile b/examples/

[dpdk-dev] [PATCH 1/2] examples/l2fwd-crypto: fix for icc

2016-04-04 Thread Daniel Mrzyglod
Fix for compilation errors for icc: error #188: enumerated type mixed with another type Fixes: 00c58901f1b3 ("examples/l2fwd-crypto: use key-value list of supported algorithms") Signed-off-by: Daniel Mrzyglod --- examples/l2fwd-crypto/main.c | 4 ++-- 1 file changed, 2 insert

[dpdk-dev] [PATCH 0/2] fixes for icc build errors

2016-04-04 Thread Daniel Mrzyglod
This series of patches is to solve errors for Intel C Compiler Daniel Mrzyglod (2): examples/l2fwd-crypto: fix for icc examples: fix build errors for icc examples/ipsec-secgw/Makefile | 4 examples/l2fwd-crypto/main.c | 4 ++-- examples/vmdq_dcb/Makefile| 4 +++- 3 files changed

[dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix missed headers for FreeBSD

2016-03-31 Thread Daniel Mrzyglod
IPsec sample application") Signed-off-by: Daniel Mrzyglod --- examples/ipsec-secgw/esp.c | 3 ++- examples/ipsec-secgw/ipsec-secgw.c | 2 ++ examples/ipsec-secgw/ipsec.c | 2 +- examples/ipsec-secgw/ipsec.h | 2 -- examples/ipsec-secgw/rt.c | 1 + examples/ipsec-

[dpdk-dev] [PATCH] examples/ipsec-secgw: Fix Missed Headers For FreeBSD

2016-03-31 Thread Daniel Mrzyglod
There were misssed typedef for u_char - There were missed network definitions - Failure #13: http://dpdk.org/ml/archives/test-report/2016-March/001896.html Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application") Signed-off-by: Daniel Mrzyglod --- examples/i

[dpdk-dev] [PATCH 2/2] ena: Fix Compilation for freebsd

2016-03-29 Thread Daniel Mrzyglod
: error: #error "Invalid platform" #error "Invalid platform" ^ compilation terminated due to -Wfatal-errors. Signed-off-by: Daniel Mrzyglod --- drivers/net/ena/base/ena_plat.h | 2 ++ drivers/net/ena/base/ena_plat_dpdk.h | 3 +++ 2 files changed, 5 insertions(+) diff

[dpdk-dev] [PATCH 1/2] ena: icc fix compilation errors

2016-03-29 Thread Daniel Mrzyglod
a/base/ena_eth_com.c(241): error #188: enumerated type mixed with another type ena_rx_ctx->l4_proto = ^ Signed-off-by: Daniel Mrzyglod --- drivers/net/ena/base/ena_com.c | 18 +- drivers/net/ena/base/ena_com.h | 8 drivers/net/ena/base/

[dpdk-dev] [PATCH 0/2] Fix multiple build errors for Amazon ENA driver

2016-03-29 Thread Daniel Mrzyglod
First patch cover multiple error for ICC. a. mixed enum with other types b. variable is used uninitialized Patches for FreeBSD: a. Target was not setup b. ETIME is not avaliable in FreeBSD Daniel Mrzyglod (2): ena: icc fix compilation errors ena: Fix

[dpdk-dev] [PATCH v3] mk: fix eal shared library dependencies -lrt

2016-03-22 Thread Daniel Mrzyglod
example v1: Initial revision Fixes: 4758404a3084 ("mk: fix eal shared library dependencies") Signed-off-by: Daniel Mrzyglod --- app/test/Makefile| 1 + examples/ptpclient/Makefile | 1 + lib/librte_eal/linuxapp/eal/Makefile | 1 + 3 files changed, 3 insertions

[dpdk-dev] [PATCH v2] mk: fix eal shared library dependencies -lrt

2016-03-22 Thread Daniel Mrzyglod
example v1: Initial revision Fixes: 4758404a3084 ("mk: fix eal shared library dependencies") Signed-off-by: Daniel Mrzyglod --- app/test/Makefile| 1 + examples/ptpclient/Makefile | 1 + lib/librte_eal/linuxapp/eal/Makefile | 1 + 3 files changed, 3 insertions

[dpdk-dev] [PATCH v2] mk: fix eal shared library dependencies -lrt

2016-03-22 Thread Daniel Mrzyglod
ary dependencies") Signed-off-by: Daniel Mrzyglod --- app/test/Makefile| 1 + examples/ptpclient/Makefile | 1 + lib/librte_eal/linuxapp/eal/Makefile | 1 + 3 files changed, 3 insertions(+) diff --git a/app/test/Makefile b/app/test/Makefile index 00e4df2..707

[dpdk-dev] [PATCH] mk: fix eal shared library dependencies -lrt

2016-03-22 Thread Daniel Mrzyglod
ary dependencies") Signed-off-by: Daniel Mrzyglod --- app/test/Makefile| 1 + lib/librte_eal/linuxapp/eal/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/app/test/Makefile b/app/test/Makefile index 00e4df2..707930f 100644 --- a/app/test/Makefile ++

[dpdk-dev] [PATCH] examples/bond: add header to support freebsd compilation

2015-11-25 Thread Daniel Mrzyglod
definition of 'AF_INET' enum was missing - is available in Signed-off-by: Daniel Mrzyglod --- examples/bond/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/bond/main.c b/examples/bond/main.c index 4622283..53bd044 100644 --- a/examples/bond/main.c +++ b/examples/b

[dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-24 Thread Daniel Mrzyglod
This fix is for IPv6 checksum offload error on RHEL65. Any optimalisation above -O0 provide error in IPv6 checksum flag "-fstrict-aliasing" is default for optimalisation above -O0. Fixes: 2b039d5f20a3 ("net: fix build with gcc 4.4.7 and strict aliasing") Signed-off-by: Danie

[dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-24 Thread Daniel Mrzyglod
;, dst="90:e2:ba:4a:33:5d")/IPv6(src="::1")/TCP(chksum=0xf)/("X"*46) Step 4 : Recieved packets: RESULTS: IPv6/TCP': ['0xd41'] or other unexpected. EXPECTED RESULTS: IPv6/TCP': ['0x9f5e'] Daniel Mrzyglod (1): net: fix build with gc

[dpdk-dev] [PATCH] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-24 Thread Daniel Mrzyglod
This is fix for GCC 4.4.7. flag "-fstrict-aliasing" is default for optimalisation above -O0. Fixes: 2b039d5f20a3 ("net: fix build with gcc 4.4.7 and strict aliasing") Signed-off-by: Daniel Mrzyglod --- lib/librte_net/rte_ip.h | 3 ++- 1 file changed, 2 insertions(+), 1 del

[dpdk-dev] [PATCH v5 7/7] doc: add a PTPCLIENT sample guide

2015-11-05 Thread Daniel Mrzyglod
It includes: - Add the ptpclient picture with svg format. - Add the ptpclient.rst file - Change the index.rst file for the above pictures index. Signed-off-by: Daniel Mrzyglod --- doc/guides/sample_app_ug/img/ptpclient.svg | 520 + doc/guides/sample_app_ug

[dpdk-dev] [PATCH v5 6/7] example: PTP client slave minimal implementation

2015-11-05 Thread Daniel Mrzyglod
Add a sample application that acts as a PTP slave using the DPDK ieee1588 functions. Signed-off-by: Daniel Mrzyglod --- MAINTAINERS | 3 + doc/guides/rel_notes/release_2_2.rst | 5 + examples/Makefile| 1 + examples/ptpclient/Makefile

[dpdk-dev] [PATCH v5 5/7] i40e: add additional ieee1588 support functions

2015-11-05 Thread Daniel Mrzyglod
From: Pablo de Lara Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Pablo de Lara Signed-off-by: Daniel Mrzyglod --- drivers/net/i40e/i40e_ethdev.c | 196

[dpdk-dev] [PATCH v5 4/7] igb: add additional ieee1588 support functions

2015-11-05 Thread Daniel Mrzyglod
From: Pablo de Lara Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Pablo de Lara Signed-off-by: Daniel Mrzyglod --- drivers/net/e1000/e1000_ethdev.h | 3 + drivers/net/e1000/igb_ethdev.c

[dpdk-dev] [PATCH v5 3/7] ixgbe: add additional ieee1588 support functions

2015-11-05 Thread Daniel Mrzyglod
Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Daniel Mrzyglod Signed-off-by: Pablo de Lara --- drivers/net/ixgbe/ixgbe_ethdev.c | 272 +-- drivers/net

[dpdk-dev] [PATCH v5 2/7] net: Add common PTP structures and functions

2015-11-05 Thread Daniel Mrzyglod
This patch add common functions and structures used for PTP processing. Signed-off-by: Daniel Mrzyglod --- lib/librte_net/Makefile | 2 +- lib/librte_net/rte_ptp.h | 105 +++ 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 lib

[dpdk-dev] [PATCH v5 1/7] ethdev: add additional ieee1588 support functions

2015-11-05 Thread Daniel Mrzyglod
: Daniel Mrzyglod --- doc/guides/rel_notes/release_2_2.rst | 3 ++ lib/librte_ether/rte_ethdev.c | 36 +++ lib/librte_ether/rte_ethdev.h | 65 +- lib/librte_ether/rte_ether_version.map | 3 ++ 4 files changed, 106 insertions(+), 1

[dpdk-dev] [PATCH v5 0/7] add sample ptp slave application

2015-11-05 Thread Daniel Mrzyglod
Doc: - add documentation for ptpclient sample: - add kernel adjustment option - add portmask option to provide portmask to aplication Daniel Mrzyglod (5): ethdev: add additional ieee1588 support functions net: Add common PTP structures and functions ixgbe: add additional ieee1588 support functio

[dpdk-dev] [PATCH v4 7/7] doc: add a PTPCLIENT sample guide

2015-11-04 Thread Daniel Mrzyglod
It includes: - Add the ptpclient picture with svg format. - Add the ptpclient.rst file - Change the index.rst file for the above pictures index. Signed-off-by: Daniel Mrzyglod --- doc/guides/sample_app_ug/img/ptpclient.svg | 520 + doc/guides/sample_app_ug

[dpdk-dev] [PATCH v4 6/7] example: PTP client slave minimal implementation

2015-11-04 Thread Daniel Mrzyglod
Add a sample application that acts as a PTP slave using the DPDK ieee1588 functions. Signed-off-by: Daniel Mrzyglod --- MAINTAINERS | 3 + doc/guides/rel_notes/release_2_2.rst | 5 + examples/Makefile| 1 + examples/ptpclient/Makefile

[dpdk-dev] [PATCH v4 5/7] i40e: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
From: Pablo de Lara Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Pablo de Lara Signed-off-by: Daniel Mrzyglod --- drivers/net/i40e/i40e_ethdev.c | 192

[dpdk-dev] [PATCH v4 4/7] igb: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
From: Pablo de Lara Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Pablo de Lara Signed-off-by: Daniel Mrzyglod --- drivers/net/e1000/e1000_ethdev.h | 3 + drivers/net/e1000/igb_ethdev.c

[dpdk-dev] [PATCH v4 3/7] ixgbe: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Daniel Mrzyglod Signed-off-by: Pablo de Lara --- drivers/net/ixgbe/ixgbe_ethdev.c | 272 +-- drivers/net

[dpdk-dev] [PATCH v4 2/7] net: Add common PTP structures and functions

2015-11-04 Thread Daniel Mrzyglod
This patch add common functions and structures used for PTP processing. Signed-off-by: Daniel Mrzyglod --- lib/librte_net/Makefile | 2 +- lib/librte_net/rte_ptp.h | 105 +++ 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 lib

[dpdk-dev] [PATCH v4 1/7] ethdev: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
: Daniel Mrzyglod --- doc/guides/rel_notes/release_2_2.rst | 3 ++ lib/librte_ether/rte_ethdev.c | 36 +++ lib/librte_ether/rte_ethdev.h | 65 +- lib/librte_ether/rte_ether_version.map | 3 ++ 4 files changed, 106 insertions(+), 1

[dpdk-dev] [PATCH v4 0/7] add sample ptp slave application

2015-11-04 Thread Daniel Mrzyglod
e: - add kernel adjustment option - add portmask option to provide portmask to aplication Daniel Mrzyglod (5): ethdev: add additional ieee1588 support functions net: Add common PTP structures and functions ixgbe: add additional ieee1588 support functions example: PTP client slav

[dpdk-dev] [PATCH v3 7/7] doc: add a PTPCLIENT sample guide

2015-11-03 Thread Daniel Mrzyglod
It includes: - Add the ptpclient picture with svg format. - Add the ptpclient.rst file - Change the index.rst file for the above pictures index. Signed-off-by: Daniel Mrzyglod --- doc/guides/sample_app_ug/img/ptpclient.svg | 520 + doc/guides/sample_app_ug

[dpdk-dev] [PATCH v3 6/7] example: PTP client slave minimal implementation

2015-11-03 Thread Daniel Mrzyglod
Add a sample application that acts as a PTP slave using the DPDK ieee1588 functions. Signed-off-by: Daniel Mrzyglod --- MAINTAINERS | 3 + doc/guides/rel_notes/release_2_2.rst | 5 + examples/Makefile| 1 + examples/ptpclient/Makefile

[dpdk-dev] [PATCH v3 5/7] i40e: add additional ieee1588 support functions

2015-11-03 Thread Daniel Mrzyglod
From: Pablo de Lara Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Pablo de Lara Signed-off-by: Daniel Mrzyglod --- drivers/net/i40e/i40e_ethdev.c | 192

[dpdk-dev] [PATCH v3 4/7] igb: add additional ieee1588 support functions

2015-11-03 Thread Daniel Mrzyglod
From: Pablo de Lara Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Pablo de Lara Signed-off-by: Daniel Mrzyglod --- drivers/net/e1000/e1000_ethdev.h | 3 + drivers/net/e1000/igb_ethdev.c

[dpdk-dev] [PATCH v3 3/7] ixgbe: add additional ieee1588 support functions

2015-11-03 Thread Daniel Mrzyglod
Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Daniel Mrzyglod Signed-off-by: Pablo de Lara --- drivers/net/ixgbe/ixgbe_ethdev.c | 272 +-- drivers/net

[dpdk-dev] [PATCH v3 2/7] net: Add common PTP structures and functions

2015-11-03 Thread Daniel Mrzyglod
This patch add common functions and structures used for PTP processing. Signed-off-by: Daniel Mrzyglod --- lib/librte_net/Makefile | 2 +- lib/librte_net/rte_ptp.h | 105 +++ 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 lib

[dpdk-dev] [PATCH v3 1/7] ethdev: add additional ieee1588 support functions

2015-11-03 Thread Daniel Mrzyglod
: Daniel Mrzyglod --- doc/guides/rel_notes/release_2_2.rst | 3 ++ lib/librte_ether/rte_ethdev.c | 36 +++ lib/librte_ether/rte_ethdev.h | 64 ++ lib/librte_ether/rte_ether_version.map | 3 ++ 4 files changed, 106 insertions(+) diff

[dpdk-dev] [PATCH v3 0/7] add sample ptp slave application

2015-11-03 Thread Daniel Mrzyglod
>V2: PMDs: - add support for e1000 - add support for ixgbe - add support for i40 ethdev: - change function names to more proper. Doc: - add documentation for ptpclient sample: - add kernel adjustment option - add portmask option to provide portmask to aplication Daniel Mrzyglod (5):

[dpdk-dev] [PATCH v2 6/6] doc: add a PTPCLIENT sample guide

2015-10-30 Thread Daniel Mrzyglod
It includes: - Add the ptpclient picture with svg format. - Add the ptpclient.rst file - Change the index.rst file for the above pictures index. Signed-off-by: Daniel Mrzyglod --- doc/guides/sample_app_ug/img/ptpclient.svg | 520 + doc/guides/sample_app_ug

[dpdk-dev] [PATCH v2 5/6] example: PTP client slave minimal implementation

2015-10-30 Thread Daniel Mrzyglod
Add a sample application that acts as a PTP slave using the DPDK ieee1588 functions. Signed-off-by: Daniel Mrzyglod --- MAINTAINERS | 3 + doc/guides/rel_notes/release_2_2.rst | 5 + examples/Makefile| 1 + examples/ptpclient/Makefile

  1   2   >