[dpdk-dev] [PATCH 4/4] vmxnet3: Updated comments.

2014-06-30 Thread Maciej Gajdzica
Signed-off-by: Maciej Gajdzica --- lib/librte_eal/common/include/rte_pci_dev_ids.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/librte_eal/common/include/rte_pci_dev_ids.h b/lib/librte_eal/common/include/rte_pci_dev_ids.h index 9c1ee04..b0737a5 100644 --- a

[dpdk-dev] [PATCH 0/4] VMXNET3 support for FreeBSD.

2014-06-30 Thread Maciej Gajdzica
Enabled VMXNET3 compilation for FreeBSD in the makefiles. Fixed some minor issues to make it run. Maciej Gajdzica (4): vmxnet3: Removed unused include that broke VMXNET3 driver compilation under FreeBSD. vmxnet3: Added makefile entries to compile VMXNET3 driver under FreeBSD

[dpdk-dev] [PATCH 1/4] vmxnet3: Removed unused include that broke VMXNET3 driver compilation under FreeBSD.

2014-06-30 Thread Maciej Gajdzica
From: Maciej Gajdzica Signed-off-by: Maciej Gajdzica --- lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c index cb711dc..69e01c1 100644 --- a/lib/librte_pmd_vmxnet3

[dpdk-dev] [PATCH 3/4] vmxnet3: Added macro adding VMXNET3 to the list of recognized PCI devices.

2014-06-30 Thread Maciej Gajdzica
Signed-off-by: Maciej Gajdzica --- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c index 3fe6f1c..00c9a8d 100644 --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c +++ b/lib

[dpdk-dev] [PATCH 2/4] vmxnet3: Added makefile entries to compile VMXNET3 driver under FreeBSD.

2014-06-30 Thread Maciej Gajdzica
Signed-off-by: Maciej Gajdzica --- config/common_bsdapp | 10 ++ 1 file changed, 10 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 578d510..87edada 100644 --- a/config/common_bsdapp +++ b/config/common_bsdapp @@ -177,6 +177,16

[dpdk-dev] [PATCH v2 3/3] vmxnet3: Added macro adding VMXNET3 to the list of recognized PCI devices.

2014-07-03 Thread Maciej Gajdzica
Signed-off-by: Maciej Gajdzica --- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c index 3fe6f1c..00c9a8d 100644 --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c +++ b/lib

[dpdk-dev] [PATCH v2 2/3] vmxnet3: Added makefile entries to compile VMXNET3 driver under FreeBSD.

2014-07-03 Thread Maciej Gajdzica
Signed-off-by: Maciej Gajdzica --- config/common_bsdapp | 10 ++ 1 file changed, 10 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 578d510..87edada 100644 --- a/config/common_bsdapp +++ b/config/common_bsdapp @@ -177,6 +177,16

[dpdk-dev] [PATCH v2 1/3] vmxnet3: Removed unused include that broke VMXNET3 driver compilation under FreeBSD.

2014-07-03 Thread Maciej Gajdzica
Signed-off-by: Maciej Gajdzica --- lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c index cb711dc..69e01c1 100644 --- a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c +++ b/lib

[dpdk-dev] [PATCH v2 0/3] VMXNET3 support for FreeBSD.

2014-07-03 Thread Maciej Gajdzica
Enabled VMXNET3 compilation for FreeBSD in the makefiles. Fixed some minor issues to make it run. v2: Removed patch with comments update. Maciej Gajdzica (3): vmxnet3: Removed unused include that broke VMXNET3 driver compilation under FreeBSD. vmxnet3: Added makefile entries to compile

[dpdk-dev] [PATCH v3 0/4] port: add ethdev_writer and ring_writer nodrop ports

2015-05-21 Thread Maciej Gajdzica
When nodrop writer port fails to send data, it retries until reach maximum number of retries. Also added new tx_bulk implementation for ring writer port. Changes in v2: - added missing signoffs Changes in v3: - removed second implementation of tx_bulk functions Maciej Gajdzica

[dpdk-dev] [PATCH 1/1] test_table: added ACL table test to the list

2015-08-12 Thread Maciej Gajdzica
test_table_ACL wasn't invoked when running table_autotest. Added this test to table_tests array to make it run with other table tests. Signed-off-by: Maciej Gajdzica --- app/test/test_table_tables.c |3 +++ app/test/test_table_tables.h |2 +- 2 files changed, 4 insertions(+), 1 del

[dpdk-dev] [PATCH 1/1] test_table: fixed failing unit tests checking offset

2015-08-12 Thread Maciej Gajdzica
In commit: 1129992baa61d72c5 checking for offset alignment was removed. Unit tests wasn't updated to reflect that change. This patch changes checks with unaligned offsets to make tests pass. Signed-off-by: Maciej Gajdzica --- app/test/test_table_tables.c | 10 +- 1 file chang

[dpdk-dev] [PATCH 1/1] table_test: renamed test_table_ACL to lowercase

2015-08-13 Thread Maciej Gajdzica
Renamed function name to comply with coding standard. Signed-off-by: Maciej Gajdzica --- app/test/test_table.c |2 +- app/test/test_table_acl.c |2 +- app/test/test_table_acl.h |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test/test_table.c b/app/test

[dpdk-dev] [PATCH v4 00/11] ip_pipeline: ip_pipeline application enhancements

2015-07-03 Thread Maciej Gajdzica
new implementation of passthrough pipeline Maciej Gajdzica (6): ip_pipeline: modified init to match new params struct ip_pipeline: moved pipelines to separate folder ip_pipeline: added application thread ip_pipeline: moved config files to separate folder ip_pipeline: added new

[dpdk-dev] [PATCH v4 01/11] ip_pipeline: add parsing for config files with new syntax

2015-07-03 Thread Maciej Gajdzica
From: Pawel Wodkowski New syntax of config files is needed for ip_pipeline example enhancements. Some old files are temporarily disabled in the Makefile. It is part of a bigger change. Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile | 17 +- examples/ip_pipeline/app

[dpdk-dev] [PATCH v4 02/11] ip_pipeline: added config checks

2015-07-03 Thread Maciej Gajdzica
From: Jasvinder Singh After loading configuration from a file, data integrity is checked. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/config_check.c | 396 +++ examples/ip_pipeline/main.c |2

[dpdk-dev] [PATCH v4 03/11] ip_pipeline: modified init to match new params struct

2015-07-03 Thread Maciej Gajdzica
After changes in config parser, app params struct is changed and requires modifications in initialization procedures. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/init.c | 1632 ++--- examples/ip_pipeline

[dpdk-dev] [PATCH v4 04/11] ip_pipeline: moved pipelines to separate folder

2015-07-03 Thread Maciej Gajdzica
Moved pipelines to separate folder, removed not needed pipelines and modified Makefile to match that change. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |9 +- examples/ip_pipeline/pipeline/pipeline_firewall.c | 313 + .../pipeline

[dpdk-dev] [PATCH v4 05/11] ip_pipeline: added master pipeline

2015-07-03 Thread Maciej Gajdzica
From: Jasvinder Singh Master pipeline is responsible for command line handling and communicationg with all other pipelines via message queues. Removed cmdline.c file, as its functionality will be split over multiple pipeline files. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefi

[dpdk-dev] [PATCH v4 06/11] ip_pipeline: added application thread

2015-07-03 Thread Maciej Gajdzica
Application thread runs pipelines on assigned cores. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/main.c |6 +++ examples/ip_pipeline/thread.c | 110 + 3 files changed, 117 insertions(+) create

[dpdk-dev] [PATCH v4 07/11] ip_pipeline: moved config files to separate folder

2015-07-03 Thread Maciej Gajdzica
Created new folder for config(.cfg) and script(.sh) files. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/config/ip_pipeline.cfg |9 +++ examples/ip_pipeline/config/ip_pipeline.sh |5 ++ examples/ip_pipeline/config/tm_profile.cfg | 105 +++ examples

[dpdk-dev] [PATCH v4 08/11] ip_pipeline: added new implementation of passthrough pipeline

2015-07-03 Thread Maciej Gajdzica
From: Jasvinder Singh Passthrough pipeline implementation is split to two files. pipeline_passthrough.c file handles front-end functions (cli commands parsing) pipeline_passthrough_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Jasvinder Singh --- exampl

[dpdk-dev] [PATCH v4 09/11] ip_pipeline: added new implementation of firewall pipeline

2015-07-03 Thread Maciej Gajdzica
From: Daniel Mrzyglod Firewall pipeline implementation is split to two files. pipeline_firewall.c file handles front-end functions (cli commands parsing) pipeline_firewall_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Daniel Mrzyglod --- examples/ip_pip

[dpdk-dev] [PATCH v4 10/11] ip_pipeline: added new implementation of routing pipeline

2015-07-03 Thread Maciej Gajdzica
Routing pipeline implementation is split to two files. pipeline_routing.c file handles front-end functions (cli commands parsing) pipeline_routing_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile

[dpdk-dev] [PATCH v4 11/11] ip_pipeline: added new implementation of flow classification pipeline

2015-07-03 Thread Maciej Gajdzica
Flow classification pipeline implementation is split to two files. pipeline_flow_classification.c file handles front-end functions (cli commands parsing) pipeline_flow_classification_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Maciej Gajdzica

[dpdk-dev] [PATCH v5 00/11] ip_pipeline: ip_pipeline application enhancements

2015-07-06 Thread Maciej Gajdzica
ip_pipeline: added master pipeline ip_pipeline: added new implementation of passthrough pipeline Maciej Gajdzica (6): ip_pipeline: modified init to match new params struct ip_pipeline: moved pipelines to separate folder ip_pipeline: added application thread ip_pipeline: moved config files

[dpdk-dev] [PATCH v5 01/11] ip_pipeline: add parsing for config files with new syntax

2015-07-06 Thread Maciej Gajdzica
From: Pawel Wodkowski New syntax of config files is needed for ip_pipeline example enhancements. Some old files are temporarily disabled in the Makefile. It is part of a bigger change. Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile | 17 +- examples/ip_pipeline/app

[dpdk-dev] [PATCH v5 02/11] ip_pipeline: added config checks

2015-07-06 Thread Maciej Gajdzica
From: Jasvinder Singh After loading configuration from a file, data integrity is checked. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/config_check.c | 397 +++ examples/ip_pipeline/main.c |2

[dpdk-dev] [PATCH v5 03/11] ip_pipeline: modified init to match new params struct

2015-07-06 Thread Maciej Gajdzica
After changes in config parser, app params struct is changed and requires modifications in initialization procedures. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/init.c | 1599 ++--- examples/ip_pipeline

[dpdk-dev] [PATCH v5 04/11] ip_pipeline: moved pipelines to separate folder

2015-07-06 Thread Maciej Gajdzica
Moved pipelines to separate folder, removed not needed pipelines and modified Makefile to match that change. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |9 +- examples/ip_pipeline/pipeline/pipeline_firewall.c | 313 + .../pipeline

[dpdk-dev] [PATCH v5 05/11] ip_pipeline: added master pipeline

2015-07-06 Thread Maciej Gajdzica
From: Jasvinder Singh Master pipeline is responsible for command line handling and communicationg with all other pipelines via message queues. Removed cmdline.c file, as its functionality will be split over multiple pipeline files. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefi

[dpdk-dev] [PATCH v5 06/11] ip_pipeline: added application thread

2015-07-06 Thread Maciej Gajdzica
Application thread runs pipelines on assigned cores. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/main.c |6 +++ examples/ip_pipeline/thread.c | 110 + 3 files changed, 117 insertions(+) create

[dpdk-dev] [PATCH v5 07/11] ip_pipeline: moved config files to separate folder

2015-07-06 Thread Maciej Gajdzica
Created new folder for config(.cfg) and script(.sh) files. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/config/ip_pipeline.cfg |9 +++ examples/ip_pipeline/config/ip_pipeline.sh |5 ++ examples/ip_pipeline/config/tm_profile.cfg | 105 +++ examples

[dpdk-dev] [PATCH v5 08/11] ip_pipeline: added new implementation of passthrough pipeline

2015-07-06 Thread Maciej Gajdzica
From: Jasvinder Singh Passthrough pipeline implementation is split to two files. pipeline_passthrough.c file handles front-end functions (cli commands parsing) pipeline_passthrough_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Jasvinder Singh --- exampl

[dpdk-dev] [PATCH v5 09/11] ip_pipeline: added new implementation of firewall pipeline

2015-07-06 Thread Maciej Gajdzica
From: Daniel Mrzyglod Firewall pipeline implementation is split to two files. pipeline_firewall.c file handles front-end functions (cli commands parsing) pipeline_firewall_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Daniel Mrzyglod --- examples/ip_pip

[dpdk-dev] [PATCH v5 10/11] ip_pipeline: added new implementation of routing pipeline

2015-07-06 Thread Maciej Gajdzica
Routing pipeline implementation is split to two files. pipeline_routing.c file handles front-end functions (cli commands parsing) pipeline_routing_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile

[dpdk-dev] [PATCH v5 11/11] ip_pipeline: added new implementation of flow classification pipeline

2015-07-06 Thread Maciej Gajdzica
Flow classification pipeline implementation is split to two files. pipeline_flow_classification.c file handles front-end functions (cli commands parsing) pipeline_flow_classification_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Maciej Gajdzica

[dpdk-dev] [PATCH v6 00/11] ip_pipeline: ip_pipeline application enhancements

2015-07-07 Thread Maciej Gajdzica
firewall pipeline Jasvinder Singh (3): ip_pipeline: added config checks ip_pipeline: added master pipeline ip_pipeline: added new implementation of passthrough pipeline Maciej Gajdzica (6): ip_pipeline: modified init to match new params struct ip_pipeline: moved pipelines to

[dpdk-dev] [PATCH v6 01/11] ip_pipeline: add parsing for config files with new syntax

2015-07-07 Thread Maciej Gajdzica
From: Pawel Wodkowski New syntax of config files is needed for ip_pipeline example enhancements. Some old files are temporarily disabled in the Makefile. It is part of a bigger change. Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile | 17 +- examples/ip_pipeline/app

[dpdk-dev] [PATCH v6 02/11] ip_pipeline: added config checks

2015-07-07 Thread Maciej Gajdzica
From: Jasvinder Singh After loading configuration from a file, data integrity is checked. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/config_check.c | 399 +++ examples/ip_pipeline/main.c |2

[dpdk-dev] [PATCH v6 03/11] ip_pipeline: modified init to match new params struct

2015-07-07 Thread Maciej Gajdzica
After changes in config parser, app params struct is changed and requires modifications in initialization procedures. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/init.c | 1643 ++--- examples/ip_pipeline

[dpdk-dev] [PATCH v6 04/11] ip_pipeline: moved pipelines to separate folder

2015-07-07 Thread Maciej Gajdzica
Moved pipelines to separate folder, removed not needed pipelines and modified Makefile to match that change. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |9 +- examples/ip_pipeline/pipeline/pipeline_firewall.c | 313 + .../pipeline

[dpdk-dev] [PATCH v6 05/11] ip_pipeline: added master pipeline

2015-07-07 Thread Maciej Gajdzica
From: Jasvinder Singh Master pipeline is responsible for command line handling and communicationg with all other pipelines via message queues. Removed cmdline.c file, as its functionality will be split over multiple pipeline files. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefi

[dpdk-dev] [PATCH v6 06/11] ip_pipeline: added application thread

2015-07-07 Thread Maciej Gajdzica
Application thread runs pipelines on assigned cores. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/main.c |6 +++ examples/ip_pipeline/thread.c | 110 + 3 files changed, 117 insertions(+) create

[dpdk-dev] [PATCH v6 07/11] ip_pipeline: moved config files to separate folder

2015-07-07 Thread Maciej Gajdzica
Created new folder for config(.cfg) and script(.sh) files. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/config/ip_pipeline.cfg |9 +++ examples/ip_pipeline/config/ip_pipeline.sh |5 ++ examples/ip_pipeline/config/tm_profile.cfg | 105 +++ examples

[dpdk-dev] [PATCH v6 08/11] ip_pipeline: added new implementation of passthrough pipeline

2015-07-07 Thread Maciej Gajdzica
From: Jasvinder Singh Passthrough pipeline implementation is split to two files. pipeline_passthrough.c file handles front-end functions (cli commands parsing) pipeline_passthrough_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Jasvinder Singh --- exampl

[dpdk-dev] [PATCH v6 09/11] ip_pipeline: added new implementation of firewall pipeline

2015-07-07 Thread Maciej Gajdzica
From: Daniel Mrzyglod Firewall pipeline implementation is split to two files. pipeline_firewall.c file handles front-end functions (cli commands parsing) pipeline_firewall_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Daniel Mrzyglod --- examples/ip_pip

[dpdk-dev] [PATCH v6 10/11] ip_pipeline: added new implementation of routing pipeline

2015-07-07 Thread Maciej Gajdzica
Routing pipeline implementation is split to two files. pipeline_routing.c file handles front-end functions (cli commands parsing) pipeline_routing_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile

[dpdk-dev] [PATCH v6 11/11] ip_pipeline: added new implementation of flow classification pipeline

2015-07-07 Thread Maciej Gajdzica
Flow classification pipeline implementation is split to two files. pipeline_flow_classification.c file handles front-end functions (cli commands parsing) pipeline_flow_classification_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Maciej Gajdzica

[dpdk-dev] [PATCH] bond: changed port_id type to uint8_t to prevent data loss.

2015-02-20 Thread Maciej Gajdzica
In some places port_id is declared as int, which causes data loss when using functions expecting port_id as uint8_t. Issue found with static code analysis tool. Signed-off-by: Maciej Gajdzica --- lib/librte_pmd_bond/rte_eth_bond_pmd.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[dpdk-dev] [PATCH] bond: changed slave_id to uint8_t to prevent data loss

2015-02-20 Thread Maciej Gajdzica
In some places slave_id is declared as uint16_t, which causes data loss when using functions expecting port_id as uint8_t. Issue found with static code analysis tool. Signed-off-by: Maciej Gajdzica --- lib/librte_pmd_bond/rte_eth_bond_8023ad.c |4 ++-- 1 file changed, 2 insertions(+), 2

[dpdk-dev] [PATCH] bond: changed rx and tx queue_id field type to prevent data loss.

2015-02-20 Thread Maciej Gajdzica
Previous type of rx and tx queue_id field was int, which caused possible data loss when calling functions expecting uint16_t as an argument. Issue found with static code analysis tool. Signed-off-by: Maciej Gajdzica --- lib/librte_pmd_bond/rte_eth_bond_pmd.c |3 ++- lib/librte_pmd_bond

[dpdk-dev] [PATCH] virtio: Changed variable types to prevent possible data loss in virtio_ethdev.c, virtio_ethdev.h and virtio_rxtx.c

2015-02-20 Thread Maciej Gajdzica
Changed vtpci_queue_idx type in function virtio_dev_queue_setup from uint8_t to uint16_t to prevent possible data loss. Also changed type of head variable in function virtio_send_command from uint32_t to uint16_t. Issues found with static code analysis tool. Signed-off-by: Maciej Gajdzica

[dpdk-dev] [PATCH] virtio: fixed possible data loss in function virtio_recv_mergeable_pkts

2015-02-20 Thread Maciej Gajdzica
. Signed-off-by: Maciej Gajdzica --- lib/librte_pmd_virtio/virtio_rxtx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_virtio/virtio_rxtx.c b/lib/librte_pmd_virtio/virtio_rxtx.c index 468e978..8fcad9b 100644 --- a/lib/librte_pmd_virtio/virtio_rxtx.c +++ b/lib

[dpdk-dev] [PATCH] enic: changed type of field ig_vlan_strip_en in struct enic to prevent possible data loss

2015-02-20 Thread Maciej Gajdzica
Field ig_vlan_strip_en in struct enic type is int. It is used only by function enic_set_nic_cfg which expects uint_8 as argument. Changed type of the field to prevent possible loss of precision. Issue found with static code analysis tool. Signed-off-by: Maciej Gajdzica --- lib/librte_pmd_enic

[dpdk-dev] [PATCH] enic: Changed ENIC_ALIGN to unisgned long to prevent possible data loss

2015-02-20 Thread Maciej Gajdzica
Define ENIC_ALIGN is used only by function rte_memzone_reserve_aligned, which expects argument of type unsigned. Defined constant is of type unsigned long long. Changed type to unsigned long to prevent possible loss of precision. Issue found with static code analysis tool. Signed-off-by: Maciej

[dpdk-dev] [PATCH] enic: fixed possible data loss in vnic_dev.h

2015-02-20 Thread Maciej Gajdzica
In function writeq is written in two 32-bit long registers with writel function. When trying to write val >> 32, static code analysis tool reports that 64-bit value is passed to function expecting 32-bit value. Added cast to clear this warning. Signed-off-by: Maciej Gajdzica --

[dpdk-dev] [PATCH] enic: Fixed possible data loss in vnic_dev.c

2015-02-20 Thread Maciej Gajdzica
Macro GET_CONFIG passes result of sizeof operation to the function vnic_dev_spec. This function expects parameter of type unsigned int. Changed that parameter type to size_t in function declaration to prevent possible data loss. Issue found with static code analysis tool. Signed-off-by: Maciej

[dpdk-dev] [PATCH v3 00/11] ip_pipeline: ip_pipeline application enhancements

2015-06-29 Thread Maciej Gajdzica
Daniel Mrzyglod (1): ip_pipeline: added new implementation of firewall pipeline Jasvinder Singh (3): ip_pipeline: added config checks ip_pipeline: added master pipeline ip_pipeline: added new implementation of passthrough pipeline Maciej Gajdzica (5): ip_pipeline: modified init to match new

[dpdk-dev] [PATCH v3 01/11] ip_pipeline: add parsing for config files with new syntax

2015-06-29 Thread Maciej Gajdzica
From: Pawel Wodkowski New syntax of config files is needed for ip_pipeline example enhancements. Some old files are temporarily disabled in the Makefile. It is part of a bigger change. Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile | 17 +- examples/ip_pipeline/app

[dpdk-dev] [PATCH v3 02/11] ip_pipeline: added config checks

2015-06-29 Thread Maciej Gajdzica
From: Jasvinder Singh After loading configuration from a file, data integrity is checked. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/config_check.c | 396 +++ examples/ip_pipeline/main.c |2

[dpdk-dev] [PATCH v3 03/11] ip_pipeline: modified init to match new params struct

2015-06-29 Thread Maciej Gajdzica
After changes in config parser, app params struct is changed and requires modifications in initialization procedures. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/init.c | 1632 ++--- examples/ip_pipeline

[dpdk-dev] [PATCH v3 04/11] ip_pipeline: moved pipelines to separate folder

2015-06-29 Thread Maciej Gajdzica
Moved pipelines to separate folder, removed not needed pipelines and modified Makefile to match that change. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |9 +- examples/ip_pipeline/pipeline/pipeline_firewall.c | 313 + .../pipeline

[dpdk-dev] [PATCH v3 05/11] ip_pipeline: added master pipeline

2015-06-29 Thread Maciej Gajdzica
From: Jasvinder Singh Master pipeline is responsible for command line handling and communicationg with all other pipelines via message queues. Removed cmdline.c file, as its functionality will be split over multiple pipeline files. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefi

[dpdk-dev] [PATCH v3 06/11] ip_pipeline: added application thread

2015-06-29 Thread Maciej Gajdzica
Application thread runs pipelines on assigned cores. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/main.c |6 +++ examples/ip_pipeline/thread.c | 107 + 3 files changed, 114 insertions(+) create

[dpdk-dev] [PATCH v3 07/11] ip_pipeline: moved config files to separate folder

2015-06-29 Thread Maciej Gajdzica
Created new folder for config(.cfg) and script(.sh) files. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/config/ip_pipeline.cfg |9 +++ examples/ip_pipeline/config/ip_pipeline.sh |5 ++ examples/ip_pipeline/config/tm_profile.cfg | 105 +++ examples

[dpdk-dev] [PATCH v3 08/11] ip_pipeline: added new implementation of passthrough pipeline

2015-06-29 Thread Maciej Gajdzica
From: Jasvinder Singh Passthrough pipeline implementation is split to two files. pipeline_passthrough.c file handles front-end functions (cli commands parsing) pipeline_passthrough_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Jasvinder Singh --- exampl

[dpdk-dev] [PATCH v3 09/11] ip_pipeline: added new implementation of firewall pipeline

2015-06-29 Thread Maciej Gajdzica
From: Daniel Mrzyglod Firewall pipeline implementation is split to two files. pipeline_firewall.c file handles front-end functions (cli commands parsing) pipeline_firewall_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Daniel Mrzyglod --- examples/ip_pip

[dpdk-dev] [PATCH v3 10/11] ip_pipeline: added new implementation of routing pipeline

2015-06-29 Thread Maciej Gajdzica
From: Pawel Wodkowski Routing pipeline implementation is split to two files. pipeline_routing.c file handles front-end functions (cli commands parsing) pipeline_routing_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Pawel Wodkowski --- examples/ip_pipeli

[dpdk-dev] [PATCH v3 11/11] ip_pipeline: added new implementation of flow classification pipeline

2015-06-29 Thread Maciej Gajdzica
Flow classification pipeline implementation is split to two files. pipeline_flow_classification.c file handles front-end functions (cli commands parsing) pipeline_flow_classification_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Maciej Gajdzica

[dpdk-dev] [PATCH] table: fix a crash during key8 and key32 overload

2015-03-23 Thread Maciej Gajdzica
hash_key8_ext and hash_key32_ext tables allocate cache entries to support table overload cases. The crash can occur when cache entry is free after use. The problem is with computing the index of the free cache entry. The same case for key16 was fixed with earlier patch. Signed-off-by: Maciej

[dpdk-dev] [PATCH] table: fix a crash during key8 and key32 overload

2015-03-23 Thread Maciej Gajdzica
hash_key8_ext and hash_key32_ext tables allocate cache entries to support table overload cases. The crash can occur when cache entry is free after use. The problem is with computing the index of the free cache entry. The same case for key16 was fixed with earlier patch. Signed-off-by: Maciej

[dpdk-dev] [PATCH 0/3] port: added ethdev_writer_nodrop and ring_writer_nodrop ports

2015-03-30 Thread Maciej Gajdzica
When nodrop writer port fails to send data, it retries until reach maximum number of retries. Also added new tx_bulk implementation for ring writer port. Maciej Gajdzica (3): port: added WRITER_APPROACH == 1 implementation to ring port port: added ethdev_writer_nodrop port port: added

[dpdk-dev] [PATCH 1/3] port: added WRITER_APPROACH == 1 implementation to ring port

2015-03-30 Thread Maciej Gajdzica
Added better optimized implementation of tx_bulk for ring writer port based on similar solution in ethdev_writer port. New implementation sends burst without copying data to internal buffer if it is possible. --- lib/librte_port/rte_port_ring.c | 59 +++ 1 fi

[dpdk-dev] [PATCH 2/3] port: added ethdev_writer_nodrop port

2015-03-30 Thread Maciej Gajdzica
When ethdev_writer_nodrop port fails to send data, it tries to resend. Operation is aborted when maximum number of retries is reached. --- lib/librte_port/rte_port_ethdev.c | 230 + lib/librte_port/rte_port_ethdev.h | 19 +++ 2 files changed, 249 insertions(

[dpdk-dev] [PATCH 3/3] port: added ring_writer_nodrop port

2015-03-30 Thread Maciej Gajdzica
When ethdev_writer_nodrop port fails to send data, it tries to resend. Operation is aborted when maximum number of retries is reached. --- lib/librte_port/rte_port_ring.c | 226 +++ lib/librte_port/rte_port_ring.h | 16 +++ 2 files changed, 242 insertions(+)

[dpdk-dev] [PATCH 0/3] port: added frag_ipv6 and ras_ipv6 ports

2015-03-30 Thread Maciej Gajdzica
Added ipv6 versions of ip fragmentation and ip reassembly ports. Maciej Gajdzica (3): port: removed IPV4_MTU_DEFAULT define port: added ipv6 fragmentation port port: added ipv6 reassembly port lib/librte_port/rte_port_frag.c | 67 -- lib/librte_port/rte_port_frag.h

[dpdk-dev] [PATCH 1/3] port: removed IPV4_MTU_DEFAULT define

2015-03-30 Thread Maciej Gajdzica
p->mtu field should be used instead. --- lib/librte_port/rte_port_frag.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/librte_port/rte_port_frag.c b/lib/librte_port/rte_port_frag.c index ff0ab9b..dce33d5 100644 --- a/lib/librte_port/rte_port_frag.c +++ b/lib/librt

[dpdk-dev] [PATCH 2/3] port: added ipv6 fragmentation port

2015-03-30 Thread Maciej Gajdzica
--- lib/librte_port/rte_port_frag.c | 61 +-- lib/librte_port/rte_port_frag.h |9 +- 2 files changed, 54 insertions(+), 16 deletions(-) diff --git a/lib/librte_port/rte_port_frag.c b/lib/librte_port/rte_port_frag.c index dce33d5..c4c05dc 100644 --- a/

[dpdk-dev] [PATCH 3/3] port: added ipv6 reassembly port

2015-03-30 Thread Maciej Gajdzica
--- lib/librte_port/rte_port_ras.c | 142 +--- lib/librte_port/rte_port_ras.h |9 ++- 2 files changed, 112 insertions(+), 39 deletions(-) diff --git a/lib/librte_port/rte_port_ras.c b/lib/librte_port/rte_port_ras.c index b6ab67a..5eb627a 100644 --- a/lib/l

[dpdk-dev] [PATCH 00/13] port: added port statistics

2015-03-30 Thread Maciej Gajdzica
Added statistics for every type of port. By default all port statistics are disabled, user must activate them in config file. This patchset depends on two patchsets: port: added ethdev_writer_nodrop and ring_writer_nodrop ports port: added frag_ipv6 and ras_ipv6 ports Maciej Gajdzica (13

[dpdk-dev] [PATCH 01/13] port: added structures for port stats

2015-03-30 Thread Maciej Gajdzica
--- lib/librte_port/rte_port.h | 60 1 file changed, 55 insertions(+), 5 deletions(-) diff --git a/lib/librte_port/rte_port.h b/lib/librte_port/rte_port.h index d84e5a1..ab433e5 100644 --- a/lib/librte_port/rte_port.h +++ b/lib/librte_port/rte_port.h

[dpdk-dev] [PATCH 02/13] port: added port_ethdev_reader stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_port/rte_port_ethdev.c | 37 - 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index 8ff4dc2..823e

[dpdk-dev] [PATCH 03/13] port: added port_ethdev_writer stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_port/rte_port_ethdev.c | 38 + 3 files changed, 40 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 823e295..d62e6d9 100644 ---

[dpdk-dev] [PATCH 04/13] port: added port_ethdev_writer_nodrop stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_port/rte_port_ethdev.c | 38 + 3 files changed, 40 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index d62e6d9..ed01d2d 100644 ---

[dpdk-dev] [PATCH 05/13] port: added port_frag stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_port/rte_port_frag.c | 36 3 files changed, 38 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index ed01d2d..523b9e9 100644 --- a/confi

[dpdk-dev] [PATCH 06/13] port: added port_ras stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_ras.c | 38 ++ 3 files changed, 40 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 523b9e9..0e73ce6 100644 --- a/config

[dpdk-dev] [PATCH 07/13] port: added port_ring_reader stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_port/rte_port_ring.c | 39 ++- 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index 0e73ce6..b51095c

[dpdk-dev] [PATCH 08/13] port: added port_ring_writer stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_port/rte_port_ring.c | 40 +++ 3 files changed, 42 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index b51095c..94930ed 100644 --- a/co

[dpdk-dev] [PATCH 09/13] port: added port_ring_writer_nodrop stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_port/rte_port_ring.c | 39 +++ 3 files changed, 41 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 94930ed..4a06da6 100644 --- a/co

[dpdk-dev] [PATCH 10/13] port: added port_sched_reader stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_sched.c | 39 +- 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index 4a06da6..4b1a87

[dpdk-dev] [PATCH 11/13] port: added port_sched_writer stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_sched.c | 57 ++ 3 files changed, 54 insertions(+), 5 deletions(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index 4b1a877..f222c

[dpdk-dev] [PATCH 12/13] port: added port_source stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_source_sink.c | 35 3 files changed, 37 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index f222cef..2241169 1

[dpdk-dev] [PATCH 13/13] port: added port_sink stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_source_sink.c | 63 ++-- 3 files changed, 61 insertions(+), 4 deletions(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index 22

[dpdk-dev] [PATCH 00/10] table: added table statistics

2015-03-30 Thread Maciej Gajdzica
Added statistics for every type of table. By default all table statistics are disabled, user must activate them in config file. Maciej Gajdzica (10): table: added structure for storing table stats table: added acl table stats table: added array table stats table: added hash_ext table

[dpdk-dev] [PATCH 01/10] table: added structure for storing table stats

2015-03-30 Thread Maciej Gajdzica
--- lib/librte_table/rte_table.h | 25 + 1 file changed, 25 insertions(+) diff --git a/lib/librte_table/rte_table.h b/lib/librte_table/rte_table.h index d57bc33..9860b7b 100644 --- a/lib/librte_table/rte_table.h +++ b/lib/librte_table/rte_table.h @@ -58,6 +58,12 @@ exter

[dpdk-dev] [PATCH 02/10] table: added acl table stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_table/rte_table_acl.c | 35 +++ 3 files changed, 37 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 4c32f43..20aa745 100644 --- a/con

[dpdk-dev] [PATCH 03/10] table: added array table stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_table/rte_table_array.c | 34 +- 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index 20aa745..1aba

[dpdk-dev] [PATCH 04/10] table: added hash_ext table stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_table/rte_table_hash_ext.c | 44 + 3 files changed, 46 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 1aba0d5..7f35d53 100

[dpdk-dev] [PATCH 05/10] table: added hash_key16 table stats

2015-03-30 Thread Maciej Gajdzica
--- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_table/rte_table_hash_key16.c | 41 +++ 3 files changed, 43 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 7f35d53..2f92f69

  1   2   3   >