[dpdk-dev] [PATCH] doc: Add requirements for x32 ABI

2015-02-13 Thread Daniel Mrzyglod
This patch add requirements about compiler and distribution support. Signed-off-by: Daniel Mrzyglod --- doc/guides/linux_gsg/sys_reqs.rst | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/guides/linux_gsg/sys_reqs.rst b/doc/guides/linux_gsg/sys_reqs.rst index

[dpdk-dev] [PATCH v2] doc: Add requirements for x32 ABI

2015-02-16 Thread Daniel Mrzyglod
This patch add requirements about compiler and distribution support. v2: spelling fixes Signed-off-by: Daniel Mrzyglod --- doc/guides/linux_gsg/sys_reqs.rst | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/guides/linux_gsg/sys_reqs.rst b/doc/guides/linux_gsg

[dpdk-dev] [PATCH] cmdline: fix type format from unsigned to size_t for buffer size

2015-02-20 Thread Daniel Mrzyglod
Function match_inst is used to take buffor using sizeof() which is size_t type. This modification also involved changing '%u' to '%zu' in printf function. Signed-off-by: Daniel Mrzyglod --- lib/librte_cmdline/cmdline_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [PATCH] lib: fix RTE_MBUF_METADATA macros

2015-06-05 Thread Daniel Mrzyglod
. This change has no ABI impact, as the previous code that uses aligned accesses continues to run without any issues. Signed-off-by: Daniel Mrzyglod --- lib/librte_pipeline/rte_pipeline.c | 8 lib/librte_port/rte_port.h | 26 +- lib/librte_table

[dpdk-dev] [PATCH] cfgfile: Fix for Reading Files on nfs filesystem.

2015-06-24 Thread Daniel Mrzyglod
The problem occure when we have config files on NFS filesystem. Solution with minimal change to library is to add buffer for I/O operations. Without buffering there is 3-10% of faulty Reading from NFS. The problem seems to be only NFS filesystem. Signed-off-by: Daniel Mrzyglod --- lib

[dpdk-dev] [PATCH] cfgfile: fix unitialised buffer and improve reading from nfs filesystem.

2015-06-26 Thread Daniel Mrzyglod
with NFS. Signed-off-by: Daniel Mrzyglod --- lib/librte_cfgfile/rte_cfgfile.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_cfgfile/rte_cfgfile.c b/lib/librte_cfgfile/rte_cfgfile.c index b81c273..88fcb46 100644 --- a/lib/librte_cfgfile/rte_cfgfile.c +++ b/lib/librte_cfgfile

[dpdk-dev] [PATCH v3] cfgfile: fix unitialised buffer

2015-06-29 Thread Daniel Mrzyglod
: -Simplify the initialization of buffer. Changes in v2: -Found the real nature of problem. Only buffer was not initilized. Changes in v1: -Add additional separate IO buffer and initialize both buffers. Signed-off-by: Daniel Mrzyglod --- lib/librte_cfgfile/rte_cfgfile.c | 2 +- 1 file changed, 1

[dpdk-dev] [PATCH] af_packet: fix memory allocation check

2014-12-18 Thread Daniel Mrzyglod
In rte_eth_af_packet.c we are we are missing NULL pointer checks after calls to alocate memory for queues. Add checking NULL pointer and error handling. Signed-off-by: Daniel Mrzyglod --- lib/librte_pmd_af_packet/rte_eth_af_packet.c | 4 1 file changed, 4 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH] test: fix missing NULL pointer checks

2014-12-18 Thread Daniel Mrzyglod
In test_sched, we are missing NULL pointer checks after calls to create the mempool and to allocate an mbuf. Add in these checks using VERIFY macros. Signed-off-by: Daniel Mrzyglod --- app/test/test_sched.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_sched.c b/app/test

[dpdk-dev] [PATCH] af_packet: fix memory allocation check

2014-12-18 Thread Daniel Mrzyglod
In rte_eth_af_packet.c we are we are missing NULL pointer checks after calls to alocate memory for queues. Add checking NULL pointer and error handling. Signed-off-by: Daniel Mrzyglod --- lib/librte_pmd_af_packet/rte_eth_af_packet.c | 4 1 file changed, 4 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH] af_packet: fix possible memory leak

2014-12-19 Thread Daniel Mrzyglod
In rte_pmd_init_internals, we are mapping memory but not released if error occure it could produce memoryleak. Add unmmap function to release memory. Signed-off-by: Daniel Mrzyglod --- lib/librte_pmd_af_packet/rte_eth_af_packet.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH] Added Spinlock to l3fwd-vf example to prevent race conditioning

2014-07-08 Thread Daniel Mrzyglod
Signed-off-by: Daniel Mrzyglod --- examples/l3fwd-vf/main.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd-vf/main.c b/examples/l3fwd-vf/main.c index 2ca5c21..57852d0 100644 --- a/examples/l3fwd-vf/main.c +++ b/examples/l3fwd-vf/main.c @@ -54,6 +54,7

[dpdk-dev] [PATCH] ADD mode 5(tlb) to link bonding pmd

2014-09-17 Thread Daniel Mrzyglod
This patch set adds support of mode 5 to link bonding pmd This patchset depend on Declan Doherty patch set: http://dpdk.org/ml/archives/dev/2014-September/005069.html Signed-off-by: Daniel Mrzyglod --- lib/librte_pmd_bond/rte_eth_bond.h | 23 lib/librte_pmd_bond

[dpdk-dev] [PATCH v2] ADD mode 5(tlb) to link bonding pmd

2014-09-26 Thread Daniel Mrzyglod
Signed-off-by: Daniel Mrzyglod --- app/test/test_link_bonding.c | 501 +++- app/test/virtual_pmd.c |6 +- app/test/virtual_pmd.h |7 + lib/librte_pmd_bond/rte_eth_bond.h | 23 ++ lib/librte_pmd_bond

[dpdk-dev] [PATCH] mk: add support for ICC 15 compiler

2015-01-22 Thread Daniel Mrzyglod
uot; 15527 - loop was not vectorized: function call to fprintf cannot be vectorize Signed-off-by: Daniel Mrzyglod --- mk/toolchain/icc/rte.vars.mk | 7 +++ 1 file changed, 7 insertions(+) diff --git a/mk/toolchain/icc/rte.vars.mk b/mk/toolchain/icc/rte.vars.mk index 5503fb0..e39d710 10064

[dpdk-dev] [PATCH v2] test: fix missing NULL pointer checks

2015-01-27 Thread Daniel Mrzyglod
In test_sched, we are missing NULL pointer checks after calls to create the mempool and to allocate an mbuf. Add in these checks using TEST_ASSERT_NOT_NULL macros. Signed-off-by: Daniel Mrzyglod --- app/test/test_sched.c | 23 --- 1 file changed, 12 insertions(+), 11

[dpdk-dev] [PATCH v3] test: fix missing NULL pointer checks

2015-01-27 Thread Daniel Mrzyglod
track when the failure occured. v3 changes: - remove VERIFY macro - fix spelling error. - change unproper comment v2 changes: - Replace all VERIFY macros instances by proper TEST_ASSERT* macros. - fix description v1 changes: - first iteration of patch using VERIFY macro. Signed-off-by: Daniel Mrzyglod

[dpdk-dev] [PATCH v4] test: fix missing NULL pointer checks

2015-01-30 Thread Daniel Mrzyglod
iption v1 changes: - first iteration of patch using VERIFY macro. Signed-off-by: Daniel Mrzyglod --- app/test/test_sched.c | 120 ++ 1 file changed, 83 insertions(+), 37 deletions(-) diff --git a/app/test/test_sched.c b/app/test/test_sched.c ind

[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] examples/ip_pipeline: fix build error for gcc 4.8

2016-06-09 Thread Daniel Mrzyglod
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(+), 2 deletions(-)

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

2016-06-21 Thread Daniel Mrzyglod
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 | 8 1 file

[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 0/6] add sample ptp slave application

2015-10-30 Thread Daniel Mrzyglod
dev: - 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 (4): ethdev: add additional ieee1588 support functions ixgbe: add additional ieee1588 support functi

[dpdk-dev] [PATCH v2 1/6] ethdev: add additional ieee1588 support functions

2015-10-30 Thread Daniel Mrzyglod
-by: 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 | 9 + 4 files changed, 112 insertions

[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 v3 1/7] ethdev: add additional ieee1588 support functions

2015-11-03 Thread Daniel Mrzyglod
-by: 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 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 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 4/7] igb: add additional ieee1588 support functions

2015-11-03 Thread Daniel Mrzyglod
From: Pablo de Lara <pablo.de.lara.gua...@intel.com> 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

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

2015-11-03 Thread Daniel Mrzyglod
From: Pablo de Lara <pablo.de.lara.gua...@intel.com> 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

[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 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 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 v4 1/7] ethdev: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
-by: 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 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 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 4/7] igb: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
From: Pablo de Lara <pablo.de.lara.gua...@intel.com> 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

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

2015-11-04 Thread Daniel Mrzyglod
From: Pablo de Lara <pablo.de.lara.gua...@intel.com> 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

[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 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 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 v5 1/7] ethdev: add additional ieee1588 support functions

2015-11-05 Thread Daniel Mrzyglod
-by: 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 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 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 4/7] igb: add additional ieee1588 support functions

2015-11-05 Thread Daniel Mrzyglod
From: Pablo de Lara <pablo.de.lara.gua...@intel.com> 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

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

2015-11-05 Thread Daniel Mrzyglod
From: Pablo de Lara <pablo.de.lara.gua...@intel.com> 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

[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 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] 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 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 gcc 4.4.7 and strict aliasing

[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/bond/main.c

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

2015-10-02 Thread Daniel Mrzyglod
the implementation NIC speed independent. * Check for linkup/down. Daniel Mrzyglod (3): ethdev: add additional ieee1588 support functions ixgbe: add additional ieee1588 support functions example: PTP client slave minimal implementation MAINTAINERS| 3 + drivers

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

2015-10-02 Thread Daniel Mrzyglod
-by: Daniel Mrzyglod --- lib/librte_ether/rte_ethdev.c | 36 +++ lib/librte_ether/rte_ethdev.h | 64 ++ lib/librte_ether/rte_ether_version.map | 9 + 3 files changed, 109 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib

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

2015-10-02 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 --- drivers/net/ixgbe/ixgbe_ethdev.c | 250 +-- drivers/net/ixgbe/ixgbe_ethdev.h | 24 2

[dpdk-dev] [PATCH 3/3] example: PTP client slave minimal implementation

2015-10-02 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 + examples/Makefile | 1 + examples/ptpclient/Makefile| 59 + examples/ptpclient/ptpclient.c | 525

[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 +++-- 1 file

[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 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 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] 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] examples/vm_power_manager: buffer not null terminated

2016-04-12 Thread Daniel Mrzyglod
annel 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..b926

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

2016-04-14 Thread Daniel Mrzyglod
-off-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/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] 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 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] 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] 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 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] 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] 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] 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] 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 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] x32 ABI support, first iteration

2014-11-13 Thread Daniel Mrzyglod
Signed-off-by: Konstantin Ananyev Signed-off-by: Daniel Mrzyglod --- config/defconfig_x86_x32-native-linuxapp-gcc | 46 mk/arch/x86_x32/rte.vars.mk | 63 2 files changed, 109 insertions(+) create mode 100644 config

[dpdk-dev] [PATCH v3 0/2] ADD mode 5(tlb) to link bonding pmd

2014-11-26 Thread Daniel Mrzyglod
This mode provides an adaptive transmit load balancing. It dynamically changes the transmitting slave, according to the computed load. Statistics are collected in 100ms intervals and scheduled every 10ms. Daniel Mrzyglod (2): This patch add support of mode 5 to link bonding pmd Unit tests

[dpdk-dev] [PATCH v4 0/2] ADD mode 5(tlb) to link bonding pmd

2014-11-27 Thread Daniel Mrzyglod
in virtualpmd driver. change internals->slaves[i].last_obytes to have proper values. Update codebase to Declan's patches. v1 change: Add support for mode 5 (Transmit load balancing) into pmd driver Daniel Mrzyglod (2): This patch add support of mode 5 to link bonding pmd Unit tests for Mod

[dpdk-dev] [PATCH v4 1/2] This patch add support of mode 5 to link bonding pmd

2014-11-27 Thread Daniel Mrzyglod
-off-by: Daniel Mrzyglod --- lib/librte_pmd_bond/rte_eth_bond.h | 6 ++ lib/librte_pmd_bond/rte_eth_bond_args.c| 1 + lib/librte_pmd_bond/rte_eth_bond_pmd.c | 160 - lib/librte_pmd_bond/rte_eth_bond_private.h | 2 +- 4 files changed, 166 insertions

[dpdk-dev] [PATCH v4 0/2] ADD mode 5(tlb) to link bonding pmd

2014-11-27 Thread Daniel Mrzyglod
in virtualpmd driver. change internals->slaves[i].last_obytes to have proper values. Update codebase to Declan's patches. v1 change: Add support for mode 5 (Transmit load balancing) into pmd driver Daniel Mrzyglod (2): This patch add support of mode 5 to link bonding pmd Unit tests for Mod

[dpdk-dev] [PATCH v4 2/2] Unit tests for Mode 5 of Bonding Transmit Load balancig.

2014-11-27 Thread Daniel Mrzyglod
This Patch add unit tests for mode 5 - tlb - to the oders link bonding unit tests. Signed-off-by: Daniel Mrzyglod --- app/test/test_link_bonding.c | 499 ++- app/test/virtual_pmd.c | 6 +- 2 files changed, 502 insertions(+), 3 deletions(-) diff

[dpdk-dev] [PATCH v4 2/2] Unit tests for Mode 5 of Bonding Transmit Load balancig.

2014-11-27 Thread Daniel Mrzyglod
This Patch add unit tests for mode 5 - tlb - to the oders link bonding unit tests. Signed-off-by: Daniel Mrzyglod --- app/test/test_link_bonding.c | 499 ++- app/test/virtual_pmd.c | 6 +- 2 files changed, 502 insertions(+), 3 deletions(-) diff

[dpdk-dev] [PATCH v2] Modify tools/setup.sh to be compatible with fedora 21

2014-10-09 Thread Daniel Mrzyglod
script was expecting /lib/modules/$(uname -r)/kernel/drivers/uio/uio.ko but in fedora 21 there are Compressed kernel modules - xz (LZMA) Signed-off-by: Daniel Mrzyglod --- tools/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/setup.sh b/tools/setup.sh index

[dpdk-dev] [PATCH v3] Modify tools/setup.sh to be compatible with fedora 21

2014-10-10 Thread Daniel Mrzyglod
script was expecting /lib/modules/$(uname -r)/kernel/drivers/uio/uio.ko but in fedora 21 there are Compressed kernel modules - xz (LZMA) V3 patch: Remove sudo V2 patch: Use modinfo instead ls V1 patch: use ls instead checking if specific file exist Signed-off-by: Daniel Mrzyglod --- tools

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

2016-03-22 Thread Daniel Mrzyglod
ependencies") 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 +++ b/a

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

2016-03-22 Thread Daniel Mrzyglod
ependencies") 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..707930f

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

2016-03-22 Thread Daniel Mrzyglod
ple 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 v3] mk: fix eal shared library dependencies -lrt

2016-03-22 Thread Daniel Mrzyglod
ple 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 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 1/2] ena: icc fix compilation errors

2016-03-29 Thread Daniel Mrzyglod
(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/ena_eth_com.c | 10 +

[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] 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 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/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] 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] 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 v2] examples/vm_power_manager: buffer not null terminated

2016-05-10 Thread Daniel Mrzyglod
annel 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] vhost: fix buffer not null terminated

2016-05-10 Thread Daniel Mrzyglod
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/lib/li

[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 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] 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

  1   2   >