[dpdk-dev] [PATCH v2] eal: fix check number of bytes from read function

2016-07-22 Thread Michal Jastrzebski
Signed-off-by: Michal Jastrzebski --- lib/librte_eal/linuxapp/eal/eal_memory.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c index 42a29fa..e20a38c 100644 --- a/lib/

[dpdk-dev] [PATCH] eal: fix check number of bytes from read function

2016-07-20 Thread Michal Jastrzebski
issue: 13212 Fixes: 40b966a211ab ("ivshmem: library changes for mmaping using ivshmem"). Signed-off-by: Michal Jastrzebski --- lib/librte_eal/linuxapp/eal/eal_memory.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memor

[dpdk-dev] [PATCH] lib/table: fix wrong type of nht field

2016-06-20 Thread Michal Jastrzebski
From: Michal Kobylinski Change type of nht field from uint32_t to uint8_t and increase max of next hops. Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Signed-off-by: Michal Kobylinski Acked-by: Cristian Dumitrescu ---

[dpdk-dev] [PATCH] bond: replace rte_panic with errno code return

2016-05-27 Thread Michal Jastrzebski
This patch modifies bond_mode_alb_enable function. When mempool allocation fails errno code is returned instead of rte_panic. This allow to decide on application level if it should quit or retry for mempool allocation. Signed-off-by: Michal Jastrzebski --- drivers/net/bonding/rte_eth_bond_alb.c

[dpdk-dev] [PATCH] app/test: fix bond device name too long

2016-05-27 Thread Michal Jastrzebski
Bond device name was too long (grather than 32 signs) that cause mempool allocation to fail. Fixes: 92073ef961ee ("bond: unit tests") Signed-off-by: Michal Jastrzebski --- app/test/test_link_bonding.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH 6/6] examples/ip_pipeline: modifies flow action pipeline CLI

2016-05-06 Thread Michal Jastrzebski
All commands merged into one: cmd_action_parsed. modified bulk command: action flow bulk File line format: flow meter 0 meter 1 meter 2 meter 3 policer 0policer 1 policer 2policer 3 port at least one meter needs to be provided (can be any meter ID) and at least

[dpdk-dev] [PATCH 5/6] examples/ip_pipeline: modifies flow classifications pipeline CLI

2016-05-06 Thread Michal Jastrzebski
This patch modifies flow classifications pipeline command line interface. All commands are merged into one cmd_fc_parsed. Additionally a classification for ipv6, ipv4 and qinq can be added from configuration file. 1. flow add qinq bulk File line format: qinq port id File line example: qinq 1

[dpdk-dev] [PATCH 4/6] examples/ip_pipeline: modifies firewall pipeline CLI

2016-05-06 Thread Michal Jastrzebski
Each command are merged into one: cmd_firewall_parsed. ADD command format is changed: p firewall add priority ipv4 port and bulk command was modified: 1. firewall add bulk File line format: priority ipv4 port (protomask is a hex value) File line example: priority 0 ipv4

[dpdk-dev] [PATCH 3/6] examples/ip_pipeline: modifies routing commands

2016-05-06 Thread Michal Jastrzebski
several routing commands are merged into two commands: route and arp - these two commands are handled by cli library. Rest of the commands are handled internaly by the pipeline code. Signed-off-by: Piotr Azarewicz --- examples/ip_pipeline/pipeline/pipeline_routing.c | 1774

[dpdk-dev] [PATCH 2/6] examples/ip_pipeline: modifies common pipeline CLI

2016-05-06 Thread Michal Jastrzebski
All commands are merged into one command: cmd_link_parsed. Signed-off-by: Tomasz Kulasek --- examples/ip_pipeline/pipeline/pipeline_common_fe.c | 309 - 1 file changed, 111 insertions(+), 198 deletions(-) diff --git a/examples/ip_pipeline/pipeline/pipeline_common_fe.c

[dpdk-dev] [PATCH 1/6] examples/ip_pipeline: add helper functions for parsing string

2016-05-06 Thread Michal Jastrzebski
Add a couple of additional functions that will allow to parse many types of input parameters, i.e.: bool, 16, 32, 64 bits, hex, etc. Signed-off-by: Piotr Azarewicz --- examples/ip_pipeline/Makefile | 1 + examples/ip_pipeline/config_parse.c | 242 +

[dpdk-dev] [PATCH 0/6] ip_pipeline: CLI rework and improvements

2016-05-06 Thread Michal Jastrzebski
Using the latest librte_cmdline improvements, the CLI implementation of the ip_pipeline application is streamlined and improved, which results in eliminating thousands of lines of code from the application, thus leading to code that is easier to maintain and extend. Michal Jastrzebski (6

[dpdk-dev] [PATCH v3] examples/qos_sched: fix bad bit shift operation

2016-04-21 Thread Michal Jastrzebski
From: Slawomir Mrozowicz Fix issue reported by Coverity. Coverity ID 30690: Bad bit shift operation large_shift: In expression 1ULL << i, left shifting by more than 63 bits has undefined behavior. The shift amount, i, is as much as 127. Fixes: de3cfa2c9823

[dpdk-dev] [PATCH v3] examples/qos_sched: fix copy-paste error

2016-04-21 Thread Michal Jastrzebski
From: Slawomir Mrozowicz Fix issue reported by Coverity. Coverity ID 30699: Copy-paste error; rx_port in pconf->rx_port looks like a copy-paste error. Fixes: de3cfa2c9823 ("sched: initial import") Signed-off-by: Slawomir Mrozowicz --- examples/qos_sched/args.c

[dpdk-dev] [PATCH v3] examples/qos_sched: fix negative loop bound

2016-04-21 Thread Michal Jastrzebski
From: Slawomir Mrozowicz Fix issue reported by Coverity. Coverity ID 30704: Negative loop bound negative_returns: Using unsigned variable n_tokens in a loop exit condition. Fixes: de3cfa2c9823 ("sched: initial import") Signed-off-by: Slawomir Mrozowicz ---

[dpdk-dev] [PATCH v2] examples/qos_sched: fix out-of-bounds read

2016-04-21 Thread Michal Jastrzebski
From: Slawomir Mrozowicz Fix issue reported by Coverity. Coverity ID 30708: Out-of-bounds read overrun-local: Overrunning array tokens of 8 8-byte elements at element index 4294967294 (byte offset 34359738352) using index i (which evaluates to 4294967294). Fixes:

[dpdk-dev] [PATCH v2] examples/qos_meter: fix unchecked return value

2016-04-21 Thread Michal Jastrzebski
From: Slawomir Mrozowicz Fix issue reported by Coverity. Coverity ID 30693: Unchecked return value check_return: Calling rte_meter_srtcm_config without checking return value. Fixes: e6541fdec8b2 ("meter: initial import") Signed-off-by: Slawomir Mrozowicz ---

[dpdk-dev] [PATCH v2] examples/qos_sched: fix negative loop bound

2016-04-21 Thread Michal Jastrzebski
Fix issue reported by Coverity. Date: Thu, 21 Apr 2016 13:47:35 +0200 Message-Id: <1461239256-8104-4-git-send-email-michalx.k.jastrzebski at intel.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1461239256-8104-1-git-send-email-michalx.k.jastrzebski at intel.com> References:

[dpdk-dev] [PATCH v2] examples/qos_sched: fix copy-paste error

2016-04-21 Thread Michal Jastrzebski
Fix issue reported by Coverity. Date: Thu, 21 Apr 2016 13:47:34 +0200 Message-Id: <1461239256-8104-3-git-send-email-michalx.k.jastrzebski at intel.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1461239256-8104-1-git-send-email-michalx.k.jastrzebski at intel.com> References:

[dpdk-dev] [PATCH v2] examples/qos_sched: fix bad bit shift operation

2016-04-21 Thread Michal Jastrzebski
Fix issue reported by Coverity. Date: Thu, 21 Apr 2016 13:47:33 +0200 Message-Id: <1461239256-8104-2-git-send-email-michalx.k.jastrzebski at intel.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1461239256-8104-1-git-send-email-michalx.k.jastrzebski at intel.com> References:

[dpdk-dev] [PATCH] app: fix for lpm in ip_pipeline

2016-03-17 Thread Michal Jastrzebski
From: Michal Kobylinski Updated ip_pipeline app is using new changes from LPM library (Increased number of next hops and added new config structure for LPM IPv4). Fixes: 7164439d017d ("lpm: add a new config structure for IPv4") Signed-off-by: Michal Kobylinski

[dpdk-dev] [PATCH v5 2/2] lpm: added a new rte_lpm_config structure for ipv4

2016-03-09 Thread Michal Jastrzebski
From: Michal Kobylinski This patch has depend on: lpm: extended ipv4 next_hop field (v4). A new rte_lpm_config structure is used so LPM library will allocate exactly the amount of memory which is necessary to hold application?s rules. Signed-off-by: Michal

[dpdk-dev] [PATCH v5 1/2] lpm: extended ipv4 next_hop field

2016-03-09 Thread Michal Jastrzebski
From: Michal Kobylinski This patch extend next_hop field from 8-bits to 24-bits in LPM library for IPv4. Added versioning symbols to functions and updated library and applications that have a dependency on LPM library. Signed-off-by: Michal Kobylinski Acked-by:

[dpdk-dev] [PATCH v5 0/2] Increased number of next hops for LPM IPv4.

2016-03-09 Thread Michal Jastrzebski
From: Michal Kobylinski This patchset extend next_hop field from 8-bits to 24-bits in LPM library for IPv4. As next_hop field is increased now the maximum number of tbl8s is 2^24. A new rte_lpm_config structure is used so LPM library will allocate exactly the

[dpdk-dev] [PATCH v4] lpm: extended ipv4 next_hop field

2016-03-09 Thread Michal Jastrzebski
From: Michal Kobylinski This patch extend next_hop field from 8-bits to 24-bits in LPM library for IPv4. Added versioning symbols to functions and updated library and applications that have a dependency on LPM library. Signed-off-by: Michal Kobylinski Acked-by:

[dpdk-dev] [PATCH v1 0/3] lpm: increase number of next hops for lpm (ipv4)

2015-10-26 Thread Michal Jastrzebski
_t next_hop; }; #endif /** @internal Rule structure. */ struct rte_lpm_rule { uint32_t ip; /**< Rule IP address. */ uint8_t next_hop; /**< Rule next hop. */ }; /** @internal Contains metadata about the rules table. */ error: patch failed: lib/librte_lpm/rte_lpm.h

[dpdk-dev] [PATCH v1 3/3] doc: update release 2.2 after changes in librte_lpm

2015-10-23 Thread Michal Jastrzebski
From: Michal Kobylinski Signed-off-by: Michal Kobylinski --- doc/guides/rel_notes/release_2_2.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index ab1c25f..3c616ab 100644 ---

[dpdk-dev] [PATCH v1 2/3] examples: update of apps using librte_lpm (ipv4)

2015-10-23 Thread Michal Jastrzebski
From: Michal Kobylinski This patch is adapting examples to use new rte_lpm structures. Signed-off-by: Michal Kobylinski --- examples/ip_fragmentation/main.c | 10 +- examples/ip_reassembly/main.c| 9 + examples/l3fwd-power/main.c | 2

[dpdk-dev] [PATCH v1 1/3] lpm: increase number of next hops for lpm (ipv4)

2015-10-23 Thread Michal Jastrzebski
From: Michal Kobylinski Main implementation - changes to lpm library regarding new data types. Additionally this patch implements changes required by test application. ABI versioning requirements are met only for lpm library, for table library it will be sent in

[dpdk-dev] [PATCH v1 0/3] lpm: increase number of next hops for lpm (ipv4)

2015-10-23 Thread Michal Jastrzebski
From: Michal Kobylinski The current DPDK implementation for LPM for IPv4 and IPv6 limits the number of next hops to 256, as the next hop ID is an 8-bit long field. Proposed extension increase number of next hops for IPv4 to 2^24 and also allows 32-bits read/write

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

2015-10-20 Thread Michal Jastrzebski
From: Marcin Kerlin The release notes is updated and the deprecation announce is removed. Signed-off-by: Maciej Gajdzica Signed-off-by: Marcin Kerlin Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 3 ---

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

2015-10-20 Thread Michal Jastrzebski
From: Marcin Kerlin Added two new cli commands to firewall pipeline. Commands bulk add and bulk delete takes as argument a file with rules to add/delete. The file is parsed, and then rules are passed to backend functions which add/delete records from pipeline tables.

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

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

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

2015-10-20 Thread Michal Jastrzebski
From: Marcin Kerlin Added functions for adding/deleting multiple records to table owned by pipeline. The LIBABIVER number is incremented for table and pipeline libraries. Signed-off-by: Maciej Gajdzica Signed-off-by: Marcin Kerlin Acked-by: Cristian Dumitrescu ---

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

2015-10-20 Thread Michal Jastrzebski
From: Marcin Kerlin New functions prototypes for bulk add/delete added to table API. New functions allows adding/deleting multiple records with single function call. For now those functions are implemented only for ACL table. For other tables these function pointers are

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

2015-10-20 Thread Michal Jastrzebski
From: Marcin Kerlin This patch adds bulk add/delete functions for tables used by pipelines. It allows for adding/deleting many rules to pipeline tables in one function call. It is particulary useful for firewall pipeline which is using ACL table. After every add or

[dpdk-dev] [PATCH v2] test: fix test_tlb_tx_burst

2015-08-07 Thread Michal Jastrzebski
to verify that with high load (2 seconds transsmission) all slaves are trasnitting so the traffic is balanced. v2 changes: - improved description - reverted number of packets generated (in v1 it was decreased, but to achieve balancing it has to be high load). Signed-off-by: Michal

[dpdk-dev] [PATCH] test: fix test_tlb_tx_burst

2015-08-05 Thread Michal Jastrzebski
This patch fixes error in tlb_tx_burst function: Distribution is not even. A condition in TEST_ASSERT macro was changed, as the previous one was random. Also the time of generating packets can now be decreased. Signed-off-by: Michal Jastrzebski --- app/test/test_link_bonding.c | 12

[dpdk-dev] [PATCH] doc: fix doxygen warnings for QoS API

2015-06-17 Thread Michal Jastrzebski
This patch fix doxygen warnings when generating documentation for qos_meter and qos_sched Signed-off-by: Michal Jastrzebski --- lib/librte_meter/rte_meter.h | 8 lib/librte_sched/rte_bitmap.h | 10 +- lib/librte_sched/rte_red.h| 44

[dpdk-dev] [PATCH v4 1/1] pipeline: add statistics for librte_pipeline ports and tables

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica This patch adds statistics collection for librte_pipeline. Those statistics ale disabled by default during build time. Signed-off-by: Pawel Wodkowski --- config/common_bsdapp |1 + config/common_linuxapp |1

[dpdk-dev] [PATCH v4 10/10] table: added lpm table stats

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added lpm table statistics. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_lpm.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/lib/librte_table/rte_table_lpm.c

[dpdk-dev] [PATCH v4 09/10] table: added lpm_ipv6 table stats

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added lpm ipv6 table statistics. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_lpm_ipv6.c | 34 + 1 file changed, 34 insertions(+) diff --git a/lib/librte_table/rte_table_lpm_ipv6.c

[dpdk-dev] [PATCH v4 08/10] table: added hash_lru table stats

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash_lru table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_lru.c | 44 + 1 file changed, 44 insertions(+) diff --git a/lib/librte_table/rte_table_hash_lru.c

[dpdk-dev] [PATCH v4 07/10] table: added hash_key8 table stats

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash key8 table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_key8.c | 52 1 file changed, 52 insertions(+) diff --git a/lib/librte_table/rte_table_hash_key8.c

[dpdk-dev] [PATCH v4 06/10] table: added hash_key32 table stats

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash key32 table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_key32.c | 41 +++ 1 file changed, 41 insertions(+) diff --git a/lib/librte_table/rte_table_hash_key32.c

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash key16 table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_key16.c | 41 +++ 1 file changed, 41 insertions(+) diff --git a/lib/librte_table/rte_table_hash_key16.c

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash ext table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_ext.c | 44 + 1 file changed, 44 insertions(+) diff --git a/lib/librte_table/rte_table_hash_ext.c

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for array table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_array.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ACL table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_acl.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/lib/librte_table/rte_table_acl.c

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added common structure for table statistics. Added config option to enable table stats collecting. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_table/rte_table.h

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for every type of table. By default all table statistics are disabled, user must activate them in config file. Changes in v2: - added missing signoffs Changes in v3: - removed new config options to

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for sink port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_source_sink.c | 63 ++-- 1 file changed, 59 insertions(+), 4 deletions(-) diff --git

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for source port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_source_sink.c | 35 1 file changed, 35 insertions(+) diff --git a/lib/librte_port/rte_port_source_sink.c

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for sched writer port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_sched.c | 57 ++ 1 file changed, 52 insertions(+), 5 deletions(-) diff --git

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for sched reader port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_sched.c | 39 +- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ring writer nodrop port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ring.c | 37 + 1 file changed, 37 insertions(+) diff --git a/lib/librte_port/rte_port_ring.c

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for port writer port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ring.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/lib/librte_port/rte_port_ring.c

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ring reader port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ring.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for IPv4 and IPv6 reassembly ports. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ras.c | 38 ++ 1 file changed, 38 insertions(+) diff --git

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ethdev writer port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ethdev.c | 37 + 1 file changed, 37 insertions(+) diff --git a/lib/librte_port/rte_port_ethdev.c

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ethdev reader port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ethdev.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v4 01/13] port: added structures for port stats and config option

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added common data structures for port statistics. Added config option to enable stats collecting. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port.h | 60

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

2015-06-08 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for every type of port. By default all port statistics are disabled, user must activate them in config file. Changes in v2: - added missing signoffs Changes in v3: - removed new config options to

[dpdk-dev] [PATCH] vpmd: rss hash ol_flag for unified packet type

2015-06-07 Thread Michal Jastrzebski
From: Tomasz Kulasek This patch adds management of PKT_RX_FDIR and PKT_RX_RSS_HASH ol_flags in vPMD for unified packet type as well as for 16 bit field packet_type when RTE_UNIFIED_PKT_TYPE is not defined. This patch depends of "unified packet type" patch set, and

[dpdk-dev] [PATCH] qos_sched: example modification to use librte_cfgfile

2015-06-05 Thread Michal Jastrzebski
This is a modification of qos_sched example to use librte_cfgfile for parsing configuration file. Signed-off-by: Michal Jastrzebski --- examples/qos_sched/cfg_file.c | 157 ++--- examples/qos_sched/cfg_file.h | 35 ++--- examples/qos_sched/init.c

[dpdk-dev] [PATCH v2] pipeline: add statistics for librte_pipeline ports and tables

2015-04-30 Thread Michal Jastrzebski
From: Pawel Wodkowski This patch adds statistics collection for librte_pipeline. Those statistics ale disabled by default during build time. Signed-off-by: Pawel Wodkowski --- config/common_bsdapp |1 + config/common_linuxapp |1 +

[dpdk-dev] [PATCH v2 10/10] table: added lpm table stats

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added lpm table statistics. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_table/rte_table_lpm.c | 34 ++ 3 files changed,

[dpdk-dev] [PATCH v2 09/10] table: added lpm_ipv6 table stats

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added lpm ipv6 table statistics. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_table/rte_table_lpm_ipv6.c | 34

[dpdk-dev] [PATCH v2 08/10] table: added hash_lru table stats

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash_lru table. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_table/rte_table_hash_lru.c | 44

[dpdk-dev] [PATCH v2 07/10] table: added hash_key8 table stats

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash key8 table. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_table/rte_table_hash_key8.c | 52

[dpdk-dev] [PATCH v2 06/10] table: added hash_key32 table stats

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash key32 table. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_table/rte_table_hash_key32.c | 41

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash key16 table. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_table/rte_table_hash_key16.c | 41

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for hash ext table. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_table/rte_table_hash_ext.c | 44

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for array table. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_table/rte_table_array.c | 34 +- 3

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ACL table. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_table/rte_table_acl.c | 35 +++ 3 files

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added common structure for table statistics. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table.h | 25 + 1 file changed, 25 insertions(+) diff --git a/lib/librte_table/rte_table.h

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

2015-04-30 Thread Michal Jastrzebski
From: 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:

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for sink port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_source_sink.c | 63

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for source port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_source_sink.c | 35

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for sched writer port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_sched.c | 57 ++

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ring writer nodrop port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_port/rte_port_ring.c | 39

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for port writer port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_port/rte_port_ring.c | 40 +++ 3

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ring reader port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_port/rte_port_ring.c | 39 ++- 3

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for IPv4 and IPv6 reassembly ports. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port_ras.c | 38

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for IPv4 and IPv6 fragmentation ports. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp|1 + config/common_linuxapp |1 + lib/librte_port/rte_port_frag.c | 36

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ethdev writer nodrop port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_port/rte_port_ethdev.c | 38

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ethdev writer port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_port/rte_port_ethdev.c | 38

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for ethdev reader port. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp|1 + lib/librte_port/rte_port_ethdev.c | 37

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added common data structures for port statistics. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port.h | 60 1 file changed, 55 insertions(+), 5 deletions(-) diff --git

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added statistics for every type of port. By default all port statistics are disabled, user must activate them in config file. Maciej Gajdzica (13): port: added structures for port stats port: added port_ethdev_reader stats port: added

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added new port type - IPv6 reassembly port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ras.c | 142 +--- lib/librte_port/rte_port_ras.h |9 ++- 2 files changed, 112 insertions(+), 39

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica Added new port type - IPv6 Fragmentation port Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_frag.c | 61 +-- lib/librte_port/rte_port_frag.h |9 +- 2 files changed, 54

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

2015-04-30 Thread Michal Jastrzebski
From: Maciej Gajdzica p->mtu field should be used instead. Signed-off-by: Maciej Gajdzica --- 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

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

2015-04-30 Thread Michal Jastrzebski
From: 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

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

2015-04-30 Thread Michal Jastrzebski
From: 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. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ring.c | 226

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

2015-04-30 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH] testpmd: bond port creation did not enable bond port

2015-03-06 Thread Michal Jastrzebski
fixed it. Signed-off-by: Michal Jastrzebski --- app/test-pmd/cmdline.c |1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index c8312be..8b0ac85 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -4050,6 +4050,7 @@ static void

[dpdk-dev] [PATCH v4 6/6] bond: add unit tests for link bonding mode 6.

2015-02-20 Thread Michal Jastrzebski
From: Maciej Gajdzica Added 4 unit tests checking link bonding mode 6 behavior. Also modified virtual_pmd so it is possible to provide packets, that should be received with rx_burst and to inspect packets transmitted by tx_burst. In packet_burst_generator.c

[dpdk-dev] [PATCH v4 5/6] bond: modify TLB unit tests

2015-02-20 Thread Michal Jastrzebski
From: Daniel Mrzyglod This patch modify mode older name from BONDING_MODE_ADAPTIVE_TRANSMIT_LOAD_BALANCING to BONDING_MODE_TLB This patch also changes order of TEST_ASSERT macro in test_tlb_verify_slave_link_status_change_failover. Signed-off-by: Daniel Mrzyglod

[dpdk-dev] [PATCH v4 4/6] bond: add example application for link bonding mode 6

2015-02-20 Thread Michal Jastrzebski
: arping -c 1 bond_ip or generate IPv4 traffic to bond_ip (IPv4 traffic from different clients should be then balanced on slaves in round robin manner). Signed-off-by: Michal Jastrzebski Signed-off-by: Maciej Gajdzica --- examples/bond/Makefile | 57 examples/bond/main.c | 796

  1   2   >