[dpdk-dev] [PATCH v7 5/9] null: virtual dynamic rss configuration

2015-10-30 Thread Tomasz Kulasek
6 changes: - reordered with patch 4/9 - recreated due to the changes in patch 4/9 v5 changes: - replaced memcpy with rte_memcpy Signed-off-by: Tomasz Kulasek Acked-by: Tetsuya Mukawa --- drivers/net/null/rte_eth_null.c | 115 +++ 1 file

[dpdk-dev] [PATCH v7 6/9] test: dynamic rss configuration

2015-10-30 Thread Tomasz Kulasek
ek at intel.com> <1446213364-11856-1-git-send-email-tomaszx.kulasek at intel.com> v7 changes: - Makefile for test app changed to not break compilation when CONFIG_RTE_LIBRTE_PMD_NULL=n (now module is silently omitted when requirements not met) Signed-off-by: Tomasz Kulasek

[dpdk-dev] [PATCH v7 7/9] bonding: per queue stats

2015-10-30 Thread Tomasz Kulasek
t from eth_dev_ops of bonding device Signed-off-by: Tomasz Kulasek Acked-by: Declan Doherty --- drivers/net/bonding/rte_eth_bond_pmd.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_

[dpdk-dev] [PATCH v7 8/9] doc: fixed spellings and typos

2015-10-30 Thread Tomasz Kulasek
ek at intel.com> <1446213364-11856-1-git-send-email-tomaszx.kulasek at intel.com> Signed-off-by: Tomasz Kulasek Acked-by: Declan Doherty --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[dpdk-dev] [PATCH v7 9/9] doc: dynamic rss configuration for bonding

2015-10-30 Thread Tomasz Kulasek
aszx.kulasek at intel.com> <1446213364-11856-1-git-send-email-tomaszx.kulasek at intel.com> Documentation update about implementation details and requirements for Dynamic RSS Configuration for Bonding. Signed-off-by: Tomasz Kulasek Acked-by: Declan Doherty --- .../prog_guide/link_bondi

[dpdk-dev] [PATCH v7 0/9] Dynamic RSS Configuration for Bonding

2015-10-30 Thread Tomasz Kulasek
s' drivers not supporting dynamic RSS configuration in bonding), - some code cleanups, - updated documentation, Tomasz Kulasek (9): bonding: rss dynamic configuration null: fix segfault when null_pmd added to bonding null: extend number of virtual queues null: export eth_dev_null_

[dpdk-dev] [PATCH v7 1/9] bonding: rss dynamic configuration

2015-10-30 Thread Tomasz Kulasek
ly used as a pattern providing expected behavior, even if slaves RETA sizes are different. Signed-off-by: Tomasz Kulasek Acked-by: Declan Doherty --- drivers/net/bonding/rte_eth_bond_api.c | 28 drivers/net/bonding/rte_eth_bond_pmd.c | 205 ++-- drivers/n

[dpdk-dev] [PATCH v7 2/9] null: fix segfault when null_pmd added to bonding

2015-10-30 Thread Tomasz Kulasek
This patch initializes eth_dev->link_intr_cbs queue used when null pmd is added to the bonding. v5 changes: - removed unnecessary malloc for eth_driver (rte_null_pmd) Signed-off-by: Tomasz Kulasek Acked-by: Tetsuya Mukawa --- drivers/net/null/rte_eth_null.c |2 ++ 1 file changed

[dpdk-dev] [PATCH v7 3/9] null: extend number of virtual queues

2015-10-30 Thread Tomasz Kulasek
This patch adds a possibility to configure more than one queue on null device. v5 changes: - fixed queues number configuration (using internals->nb_*_queues instead of dev->data->nb_*_queues) Signed-off-by: Tomasz Kulasek Acked-by: Tetsuya Mukawa --- drivers/net/null/rte_eth_null

[dpdk-dev] [PATCH v7 4/9] null: export eth_dev_null_create

2015-10-30 Thread Tomasz Kulasek
v6 changes: - reordered with patch 5/9 - fixed forward dependency to patch patch 5/9 Signed-off-by: Tomasz Kulasek Acked-by: Tetsuya Mukawa --- drivers/net/null/Makefile |2 +- drivers/net/null/rte_eth_null.c |4 ++- drivers/net/null/rte_eth_null.h

[dpdk-dev] [PATCH v7 5/9] null: virtual dynamic rss configuration

2015-10-30 Thread Tomasz Kulasek
: - replaced memcpy with rte_memcpy Signed-off-by: Tomasz Kulasek Acked-by: Tetsuya Mukawa --- drivers/net/null/rte_eth_null.c | 115 +++ 1 file changed, 115 insertions(+) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index

[dpdk-dev] [PATCH v7 6/9] test: dynamic rss configuration

2015-10-30 Thread Tomasz Kulasek
v7 changes: - Makefile for test app changed to not break compilation when CONFIG_RTE_LIBRTE_PMD_NULL=n (now module is silently omitted when requirements not met) Signed-off-by: Tomasz Kulasek Acked-by: Declan Doherty --- app/test/Makefile|7 + app/test

[dpdk-dev] [PATCH v7 7/9] bonding: per queue stats

2015-10-30 Thread Tomasz Kulasek
This patch adds fills bonding port's stats with a sum of corresponding values taken from bonded slaves, when stats are requested for bonding port. v5 changes: - removed queue_stats_mapping_set from eth_dev_ops of bonding device Signed-off-by: Tomasz Kulasek Acked-by: Declan Do

[dpdk-dev] [PATCH v7 8/9] doc: fixed spellings and typos

2015-10-30 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek Acked-by: Declan Doherty --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst b/doc/guides/prog_guide

[dpdk-dev] [PATCH v7 9/9] doc: dynamic rss configuration for bonding

2015-10-30 Thread Tomasz Kulasek
Documentation update about implementation details and requirements for Dynamic RSS Configuration for Bonding. Signed-off-by: Tomasz Kulasek Acked-by: Declan Doherty --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst | 34 ++-- 1 file changed, 32 insertions(+), 2 deletions

[dpdk-dev] [PATCH] examples: l3fwd exact-match path rework

2016-01-29 Thread Tomasz Kulasek
okup, used before, it is used by default. Old implementation is moved to the file l3fwd_em_hlm_sse.h and can be enabled with HASH_LOOKUP_MULTI global define in compilation time. This patch depends of Ravi Kerur's "Modify and modularize l3fwd code" and should be applied after i

[dpdk-dev] [PATCH] doc: announce ABI change for rte_eth_dev structure

2016-07-20 Thread Tomasz Kulasek
SO packets acceptable by device. Signed-off-by: Tomasz Kulasek --- doc/guides/rel_notes/deprecation.rst |7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index f502f86..485aacb 100644 --- a/doc/guides

[dpdk-dev] [PATCH v2] doc: announce ABI change for rte_eth_dev structure

2016-07-21 Thread Tomasz Kulasek
_pkts); if (nb_prep < nb_pkts) { printf("tx_prep failed\n"); /* drop or restore invalid packets */ } /* Send burst of TX packets */ nb_tx = rte_eth_tx_burst(port, 0, bufs, nb_prep); /* Free any unsent packets. */ Signe

[dpdk-dev] [PATCH] app/test: fix array overflow warning with gcc 4.5

2016-06-09 Thread Tomasz Kulasek
emcpy code for length bigger than 255, causing the problem. The root of this issue and solution is the same as for commit 2c007ea10616 ("app/test: fix array overflow warning with gcc 4.5") Fixes: 9727af14b032 ("app/test: add out-of-place symmetric crypto operations

[dpdk-dev] [PATCH] bonding: fix enumerated type mixed with another type

2015-11-05 Thread Tomasz Kulasek
ICC complains about enumerated types being mixed in link bonding driver, as ETH_MQ_RX_RSS is an enum type of mq_mode and not a bitmask as it was being treated. Fixes: 734ce47f71e0 ("bonding: support RSS dynamic configuration") Signed-off-by: Tomasz Kulasek --- drivers/n

[dpdk-dev] [PATCHv4 0/9] Dynamic RSS Configuration for Bonding

2015-07-15 Thread Tomasz Kulasek
ation as too complex and introducing a new dependency, - addapted null pmd to be used as testing device for dynamic RSS configuration, - addapted test units to use null pmd instead of ring pmd, - ring pmd is not used and changed in this patchset, Tomasz Kulasek (9): bonding: rss dynamic

[dpdk-dev] [PATCHv4 1/9] bonding: rss dynamic configuration

2015-07-15 Thread Tomasz Kulasek
ly used as a pattern providing expected behavior, even if slaves RETA sizes are different. Signed-off-by: Tomasz Kulasek --- drivers/net/bonding/rte_eth_bond_api.c | 28 drivers/net/bonding/rte_eth_bond_pmd.c | 205 ++-- drivers/net/bonding/rte_eth_bond

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-07-15 Thread Tomasz Kulasek
When device is added to the bonding, the link status callback is added to the slave's eth_dev->link_intr_cbs list. This list is not initialized for null pmd and adding it to the bonding segfaults application. This patch allocates and sets up required structures. Signed-off-by: Tomasz

[dpdk-dev] [PATCHv4 3/9] null: extend number of virtual queues

2015-07-15 Thread Tomasz Kulasek
This patch adds a possibility to configure more than one queue on null device. Signed-off-by: Tomasz Kulasek --- drivers/net/null/rte_eth_null.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c

[dpdk-dev] [PATCHv4 4/9] null: virtual dynamic rss configuration

2015-07-15 Thread Tomasz Kulasek
This implementation allows to set and read RSS configuration for null device, and is used to validate right values propagation over the slaves, in test units for dynamic RSS configuration for bonding. Signed-off-by: Tomasz Kulasek --- drivers/net/null/rte_eth_null.c | 116

[dpdk-dev] [PATCHv4 5/9] null: export eth_dev_null_create

2015-07-15 Thread Tomasz Kulasek
To use eth_dev_null_create in application this method needs to be exported. Signed-off-by: Tomasz Kulasek --- drivers/net/null/Makefile |2 +- drivers/net/null/rte_eth_null.c |3 ++- drivers/net/null/rte_eth_null.h | 40

[dpdk-dev] [PATCHv4 6/9] test: dynamic rss configuration

2015-07-15 Thread Tomasz Kulasek
: - adapted to use null pmd driver in place of ring pmd Signed-off-by: Tomasz Kulasek --- app/test/Makefile|8 + app/test/test_link_bonding_rssconf.c | 679 ++ 2 files changed, 687 insertions(+) create mode 100644 app/test

[dpdk-dev] [PATCHv4 7/9] bonding: queue stats mapping

2015-07-15 Thread Tomasz Kulasek
This patch adds propagation of mapping over the slaves, and fills bonding port's stats with a sum of corresponding values taken from bonded slaves, when stats are requested for bonding port. Signed-off-by: Tomasz Kulasek --- drivers/net/bonding/rte_eth_bond_pmd.c |

[dpdk-dev] [PATCHv4 8/9] doc: fixed spellings and typos

2015-07-15 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst b/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst index 96e554f

[dpdk-dev] [PATCHv4 9/9] doc: dynamic rss configuration for bonding

2015-07-15 Thread Tomasz Kulasek
Documentation update about implementation details and requirements for Dynamic RSS Configuration for Bonding. Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst | 34 ++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH 0/8] Dynamic RSS Configuration for Bonding

2015-06-03 Thread Tomasz Kulasek
consistency of RSS configuration for slaves isn't required. Turning on/off RSS mode for slaves when bonding is started is not possible. Other RSS configuration is propagated over slaves, when bonding device API is used to do it. Tomasz Kulasek (8): bond: dynamic rss configuration

[dpdk-dev] [PATCH 1/8] bond: dynamic rss configuration

2015-06-03 Thread Tomasz Kulasek
RETA sizes, so it can be easily used as a pattern providing expected behavior, even if slaves RETA sizes are different. Signed-off-by: Tomasz Kulasek --- drivers/net/bonding/rte_eth_bond_api.c | 22 drivers/net/bonding/rte_eth_bond_pmd.c | 192 ++-- d

[dpdk-dev] [PATCH 2/8] ring: dynamic rss configuration

2015-06-03 Thread Tomasz Kulasek
This implementation allows to set and read RSS configuration for ring device, and is used to validate right values propagation over the slaves, in test units for dynamic RSS configuration for bonding. It have no impact on packet processing by ring device. Signed-off-by: Tomasz Kulasek

[dpdk-dev] [PATCH 3/8] test: dynamic rss configuration

2015-06-03 Thread Tomasz Kulasek
bonding a) Remove slave from bonding. b) Change its configuration to other than bonding. c) Add slave to the started bonding device. d) Check if slaves configuration changed. 3) Repeat point 1) and 2) with RSS multi-queue mode enabled/disabled for bonding port. Signed-off-by: Tomasz

[dpdk-dev] [PATCH 4/8] bond: queue stats mapping

2015-06-03 Thread Tomasz Kulasek
Queue stats mapping is used in example application. This patch adds propagation of mapping over the slaves, and fills bonding port's stats with a sum of corresponding values taken from bonded slaves, when stats are requested for bonding port. Signed-off-by: Tomasz Kulasek --- driver

[dpdk-dev] [PATCH 5/8] ring: queue stats mapping set dummy implementation

2015-06-03 Thread Tomasz Kulasek
Per queue statistics are already implemented for ring device, but with static mapping (stat_idx == queue_id). This fix is required, if you want to use ring device in test application and is used only to point that per queue statistics are provided for this device. Signed-off-by: Tomasz Kulasek

[dpdk-dev] [PATCH 6/8] examples: dynamic rss configuration for bonding

2015-06-03 Thread Tomasz Kulasek
-off-by: Tomasz Kulasek --- examples/bond_rss/Makefile | 59 +++ examples/bond_rss/bondrss.c | 293 ++ examples/bond_rss/bondrss.h | 163 examples/bond_rss/config.c | 251 examples/bond_rss/ui.c | 915 +++ 5

[dpdk-dev] [PATCH 7/8] doc: fixed spellings and typos

2015-06-03 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst b/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst index 96e554f

[dpdk-dev] [PATCH 8/8] doc: dynamic rss configuration for bonding

2015-06-03 Thread Tomasz Kulasek
Documentation update about implementation details and requirements for Dynamic RSS Configuration for Bonding. Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst | 32 ++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH v3 0/2] add support for buffered tx to ethdev

2016-03-10 Thread Tomasz Kulasek
_init - buffers are not attached to the port-queue - buffers can be allocated dynamically during application work - size of buffer can be changed without port restart Tomasz Kulasek (2): ethdev: add buffered tx api examples: rework to use buffered tx examples/l2fwd-jobstats/main.c

[dpdk-dev] [PATCH v3 1/2] ethdev: add buffered tx api

2016-03-10 Thread Tomasz Kulasek
removed from tx buffer structure, now default behavior is silent drop of unsent packets - some names was changed in tx buffer structure to be more descriptive - two default calbacks are provided: rte_eth_tx_buffer_drop_callback and rte_eth_tx_buffer_count_callback Signed-off-by: Tomasz

[dpdk-dev] [PATCH v3 2/2] examples: rework to use buffered tx

2016-03-10 Thread Tomasz Kulasek
* packet_ordering * qos_meter v3 changes - updated due to the change of callback name v2 changes - rework synced with tx buffer API changes Signed-off-by: Tomasz Kulasek --- examples/l2fwd-jobstats/main.c | 104 +++-- examples/l2fwd-keepalive/main.c

[dpdk-dev] [PATCH v4 0/2] add support for buffered tx to ethdev

2016-03-10 Thread Tomasz Kulasek
/rte_eth_dev_data, so this patch doesn't brake an ABI anymore - introduced RTE_ETH_TX_BUFFER macro and rte_eth_tx_buffer_init - buffers are not attached to the port-queue - buffers can be allocated dynamically during application work - size of buffer can be changed without port restart Tomas

[dpdk-dev] [PATCH v4 1/2] ethdev: add buffered tx api

2016-03-10 Thread Tomasz Kulasek
default calbacks are provided: rte_eth_tx_buffer_drop_callback and rte_eth_tx_buffer_count_callback Signed-off-by: Tomasz Kulasek Acked-by: Konstantin Ananyev --- lib/librte_ether/rte_ethdev.c | 46 +++ lib/librte_ether/rte_ethdev.h | 206

[dpdk-dev] [PATCH v4 2/2] examples: rework to use buffered tx

2016-03-10 Thread Tomasz Kulasek
* packet_ordering * qos_meter v3 changes - updated due to the change of callback name v2 changes - rework synced with tx buffer API changes Signed-off-by: Tomasz Kulasek Acked-by: Konstantin Ananyev --- examples/l2fwd-jobstats/main.c | 104 +++-- examples/l2fwd

[dpdk-dev] [PATCH v3] examples/l3fwd: em path performance fix

2016-03-11 Thread Tomasz Kulasek
aste error causing that not all packets are classified right in hash_multi_lookup implementation when burst size is not divisible by 8 Fixes: 94c54b4158d5 ("examples/l3fwd: rework exact-match") Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Reported-by: Qian Xu

[dpdk-dev] [PATCH v4] examples/l3fwd: em path performance fix

2016-03-18 Thread Tomasz Kulasek
ified right in hash_multi_lookup implementation when burst size is not divisible by 8 Fixes: 94c54b4158d5 ("examples/l3fwd: rework exact-match") Reported-by: Qian Xu Signed-off-by: Tomasz Kulasek --- examples/l3fwd/l3fwd.h|8 examples/l3fwd/l3f

[dpdk-dev] [PATCH v5] examples/l3fwd: em path performance fix

2016-03-18 Thread Tomasz Kulasek
de ("examples/l3fwd: fix ARM build") Reported-by: Qian Xu Signed-off-by: Tomasz Kulasek --- examples/l3fwd/l3fwd.h|6 ++ examples/l3fwd/l3fwd_em.c |6 +++--- examples/l3fwd/l3fwd_em_hlm_sse.h | 28 ++-- examples/l3fw

[dpdk-dev] [PATCH v6] examples/l3fwd: em path performance fix

2016-03-18 Thread Tomasz Kulasek
atch") Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Fixes: 64d3955de1de ("examples/l3fwd: fix ARM build") Reported-by: Qian Xu Signed-off-by: Tomasz Kulasek --- examples/l3fwd/l3fwd.h|6 ++ examples/l3fwd/l3fwd_em.c

[dpdk-dev] [PATCH] testpmd: fix enumerated type mixed with another type

2016-03-22 Thread Tomasz Kulasek
This patch fixes error #188: enumerated type mixed with another type, when uint32_t is casted on enum type in icc. Fixes: 05f1b9c82ec2 ("app/testpmd: add commands for L2 tunnel config") Signed-off-by: Tomasz Kulasek --- app/test-pmd/cmdline.c | 4 ++-- 1 file changed, 2 insert

[dpdk-dev] [PATCH] examples/l3fwd: fix some packets lost when stops receiving

2016-03-31 Thread Tomasz Kulasek
Not all tx ports was included in tx_port_id array, used to periodically drain only available ports. This caused that some packets remain in buffer when application stops to receiving packets. Fixes: 52c97adc1f0f ("examples/l3fwd: fix exact match performance") Signed-off-by: Toma

[PATCH 2/4] null: extend number of virtual queues

2015-09-29 Thread Tomasz Kulasek
--- drivers/net/null/rte_eth_null.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index b498ef1..68cb723 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_e

[dpdk-dev] [PATCH v5 0/9] Dynamic RSS Configuration for Bonding

2015-09-30 Thread Tomasz Kulasek
arning when slave is synchronizing due to the bonding's initial configuration (to allow use slaves' drivers not supporting dynamic RSS configuration in bonding), - some code cleanups, - updated documentation, Tomasz Kulasek (9): bonding: rss dynamic configuration null: fix s

[dpdk-dev] [PATCH v5 1/9] bonding: rss dynamic configuration

2015-09-30 Thread Tomasz Kulasek
ly used as a pattern providing expected behavior, even if slaves RETA sizes are different. Signed-off-by: Tomasz Kulasek --- drivers/net/bonding/rte_eth_bond_api.c | 28 drivers/net/bonding/rte_eth_bond_pmd.c | 205 ++-- drivers/net/bonding/rte_eth_bond

[dpdk-dev] [PATCH v5 2/9] null: fix segfault when null_pmd added to bonding

2015-09-30 Thread Tomasz Kulasek
This patch initializes eth_dev->link_intr_cbs queue used when null pmd is added to the bonding. v5 changes: - removed unnecessary malloc for eth_driver (rte_null_pmd) Signed-off-by: Tomasz Kulasek --- drivers/net/null/rte_eth_null.c |2 ++ 1 file changed, 2 insertions(+) diff --gi

[dpdk-dev] [PATCH v5 3/9] null: extend number of virtual queues

2015-09-30 Thread Tomasz Kulasek
This patch adds a possibility to configure more than one queue on null device. v5 changes: - fixed queues number configuration (using internals->nb_*_queues instead of dev->data->nb_*_queues) Signed-off-by: Tomasz Kulasek --- drivers/net/null/rte_eth_null

[dpdk-dev] [PATCH v5 4/9] null: virtual dynamic rss configuration

2015-09-30 Thread Tomasz Kulasek
This implementation allows to set and read RSS configuration for null device, and is used to validate right values propagation over the slaves, in test units for dynamic RSS configuration for bonding. v5 changes: - replaced memcpy with rte_memcpy Signed-off-by: Tomasz Kulasek --- drivers/net

[dpdk-dev] [PATCH v5 5/9] null: export eth_dev_null_create

2015-09-30 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/null/Makefile |2 +- drivers/net/null/rte_eth_null.c |2 +- drivers/net/null/rte_eth_null.h | 40 + drivers/net/null/rte_pmd_null_version.map |7 + 4 files changed, 49

[dpdk-dev] [PATCH v5 6/9] test: dynamic rss configuration

2015-09-30 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- app/test/Makefile|8 + app/test/test_link_bonding_rssconf.c | 679 ++ 2 files changed, 687 insertions(+) create mode 100644 app/test/test_link_bonding_rssconf.c diff --git a/app/test/Makefile b/app/test

[dpdk-dev] [PATCH v5 7/9] bonding: per queue stats

2015-09-30 Thread Tomasz Kulasek
This patch fills bonding port's stats with a sum of corresponding values taken from bonded slaves, when stats are requested for bonding port. v5 changes: - removed queue_stats_mapping_set from eth_dev_ops of bonding device Signed-off-by: Tomasz Kulasek --- drivers/net/bo

[dpdk-dev] [PATCH v5 8/9] doc: fixed spellings and typos

2015-09-30 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst b/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst index 96e554f

[dpdk-dev] [PATCH v5 9/9] doc: dynamic rss configuration for bonding

2015-09-30 Thread Tomasz Kulasek
Documentation update about implementation details and requirements for Dynamic RSS Configuration for Bonding. Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst | 34 ++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH] examples/l3fwd: fix segfault with gcc 5.x

2016-04-04 Thread Tomasz Kulasek
ersection of assignment of initial group size (lp[0] = 1) and precalculated group sizes when gptbl[v].idx < 4. Fixes: 94c54b4158d5 ("examples/l3fwd: rework exact-match") Signed-off-by: Tomasz Kulasek --- examples/l3fwd/l3fwd_sse.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[dpdk-dev] [PATCH] app/test: fix array subscript is above array bounds for gcc 4.5

2016-04-07 Thread Tomasz Kulasek
" is 64 bytes long buffer and "iv + 128" point out of it, gcc 4.5. SOLUTION: - Using uint8_t as a size of copied block prevents to evaluate in rte_memcpy code for size bigger than 255, causing the problem. Signed-off-by: Tomasz Kulasek --- app/test/test_cryptodev.c |8

[dpdk-dev] [PATCH v2] app/test: fix array subscript is above array bounds for gcc 4.5

2016-04-07 Thread Tomasz Kulasek
" is 64 bytes long buffer and "iv + 128" point out of it, gcc 4.5. SOLUTION: - Using uint8_t as a size of copied block prevents to evaluate in rte_memcpy code for length bigger than 255, causing the problem. v2 changes: - added fixline Fixes: 8bdf665fe6c0 ("app/t

[dpdk-dev] [PATCH] examples: fix not all queues drained in l3fwd-*

2016-04-07 Thread Tomasz Kulasek
: use buffered Tx") Signed-off-by: Tomasz Kulasek --- examples/l3fwd-acl/main.c |6 +- examples/l3fwd-power/main.c |6 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/examples/l3fwd-acl/main.c b/examples/l3fwd-acl/main.c index 3a895b7..55ee337 100644 --- a/exam

[dpdk-dev] [PATCH] app/testpmd: fix strcat can overrun fixed-size string

2016-04-11 Thread Tomasz Kulasek
CID 13307 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW) fixed_size_dest: You might overrun the 128 byte fixed-size string fwd_modes by copying fwd_eng->fwd_mode_name without checking the length. Fixes: 769ce6b17835 ("app/testpmd: list forwarding engines") Signed-off-by: T

[dpdk-dev] [PATCH] ixgbe: fix bad shift operation in ixgbe_set_pool_rx

2016-04-15 Thread Tomasz Kulasek
1. Fixes: fe3a45fd4104 ("ixgbe: add VMDq support") Signed-off-by: Tomasz Kulasek --- drivers/net/ixgbe/ixgbe_ethdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 3f1ebc1..f676a64 100644 ---

[dpdk-dev] [PATCH] ixgbe: fix bad shift operation in ixgbe_set_pool_tx

2016-04-15 Thread Tomasz Kulasek
1. Fixes: fe3a45fd4104 ("ixgbe: add VMDq support") Signed-off-by: Tomasz Kulasek --- drivers/net/ixgbe/ixgbe_ethdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index f676a64..6ae82e7 100644 ---

[dpdk-dev] [PATCH] examples/performance-thread: fix size of destination port ids in l3fwd-thread

2016-04-20 Thread Tomasz Kulasek
ch. Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Signed-off-by: Tomasz Kulasek --- examples/performance-thread/l3fwd-thread/main.c | 45 --- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/examples/performance-thread/l3fwd-thread/main.c b/

[dpdk-dev] [PATCH v2] ixgbe: fix bad shift operation in ixgbe_set_pool_rx/tx

2016-04-22 Thread Tomasz Kulasek
d mask computation to made it more readable and avoid bit overflow when 32 bit value is shifted over its size for pool > 31. Fixes: fe3a45fd4104 ("ixgbe: add VMDq support") Signed-off-by: Tomasz Kulasek --- v2: - joined two patches for same issue in tx/rx - added pool parameter checkin

[dpdk-dev] [PATCH] examples/performance-thread: fix segfault with in gcc 5.x

2016-04-26 Thread Tomasz Kulasek
unted incorrectly causing segfault. This patch eliminates intersection of assignment of initial group size (lp[0] = 1) and precalculated group sizes when gptbl[v].idx < 4. Fixes: d48415e1fee3 ("examples/performance-thread: add l3fwd-thread app") Signed-off-by: Tomasz Kulasek ---

[dpdk-dev] [PATCH v2] examples/performance-thread: fix size of destination port ids in l3fwd-thread

2016-04-29 Thread Tomasz Kulasek
ze of destination port ids"), restoring 16 bit size for destination port ids and doing necessary conversion from 32 to 16 bit after lpm_lookupx4. Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Signed-off-by: Tomasz Kulasek --- v2: - split into two patches examples/performance

[dpdk-dev] [PATCH v2] examples/performance-thread: fix logic in get_dst_port of l3fwd-thread

2016-04-29 Thread Tomasz Kulasek
This fixes wrong logic in get_dst_port() on lpm path causing unpredictable return value when ipv4/ipv6 lookup success (return with no value). Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Signed-off-by: Tomasz Kulasek --- v2: - split into two patches examples/performa

[dpdk-dev] [PATCH 0/6] add Tx preparation

2016-08-26 Thread Tomasz Kulasek
ndicates here first invalid packet. rte_eth_tx_prep * can be used on remaining packets to find another ones. */ } /* Send burst of TX packets */ nb_tx = rte_eth_tx_burst(port, 0, bufs, nb_prep); /* Free any unsent packets. */ Tomasz Kulase

[dpdk-dev] [PATCH 0/6] add Tx preparation

2016-08-26 Thread Tomasz Kulasek
ndicates here first invalid packet. rte_eth_tx_prep * can be used on remaining packets to find another ones. */ } /* Send burst of TX packets */ nb_tx = rte_eth_tx_burst(port, 0, bufs, nb_prep); /* Free any unsent packets. */ Tomasz Kulase

[dpdk-dev] [PATCH 1/6] ethdev: add Tx preparation

2016-08-26 Thread Tomasz Kulasek
ackets full pseudo-header checksum is counted and set. - for TSO the IP payload length is not included. Signed-off-by: Tomasz Kulasek --- lib/librte_ether/rte_ethdev.h | 74 +++ lib/librte_mbuf/rte_mbuf.h|8 +++ lib/librte_net/Makefile

[dpdk-dev] [PATCH 2/6] e1000: add Tx preparation

2016-08-26 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/e1000/e1000_ethdev.h | 11 + drivers/net/e1000/em_ethdev.c|5 +++- drivers/net/e1000/em_rxtx.c | 46 ++- drivers/net/e1000/igb_ethdev.c |4 +++ drivers/net/e1000/igb_rxtx.c | 50

[dpdk-dev] [PATCH 3/6] fm10k: add Tx preparation

2016-08-26 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/fm10k/fm10k.h|9 drivers/net/fm10k/fm10k_ethdev.c |5 +++ drivers/net/fm10k/fm10k_rxtx.c | 87 +- 3 files changed, 100 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k.h b

[dpdk-dev] [PATCH 4/6] i40e: add Tx preparation

2016-08-26 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/i40e/i40e_ethdev.c |3 ++ drivers/net/i40e/i40e_rxtx.c | 98 +++- drivers/net/i40e/i40e_rxtx.h | 10 3 files changed, 110 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b

[dpdk-dev] [PATCH 6/6] testpmd: add txprep engine

2016-08-26 Thread Tomasz Kulasek
assed to the Tx preparation function before tx burst, - added "txsplit" and "tso" functionality for outgoing packets. Signed-off-by: Tomasz Kulasek --- app/test-pmd/Makefile |3 +- app/test-pmd/testpmd.c |1 + app/test-pmd/testpmd.h |

[dpdk-dev] [PATCH 5/6] ixgbe: add Tx preparation

2016-08-26 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/ixgbe/ixgbe_ethdev.c |3 ++ drivers/net/ixgbe/ixgbe_ethdev.h |8 +++- drivers/net/ixgbe/ixgbe_rxtx.c | 83 +- drivers/net/ixgbe/ixgbe_rxtx.h |2 + 4 files changed, 94 insertions(+), 2 deletions

[dpdk-dev] [PATCH v12 0/6] add Tx preparation

2016-11-23 Thread Tomasz Kulasek
intentionally available v3 changes: - reworked csum testpmd engine instead adding new one, - fixed checksum initialization procedure to include also outer checksum offloads, - some minor formattings and optimalizations v2 changes: - rte_eth_tx_prep() returns number of packets when device doesn&#x

[dpdk-dev] [PATCH v12 1/6] ethdev: add Tx preparation

2016-11-23 Thread Tomasz Kulasek
626628/14252168 (~2.62% drop), 3) Full support in ixgbe driver (point 2 + packet checksum initialization) is 14060924/13588094 (~3.48% drop) Signed-off-by: Tomasz Kulasek Acked-by: Konstantin Ananyev Acked-by: Olivier Matz --- config/common_base|1 + lib/librte_ether/rte_ethdev.h

[dpdk-dev] [PATCH v12 2/6] e1000: add Tx preparation

2016-11-23 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek Acked-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 11 drivers/net/e1000/em_ethdev.c|5 +++- drivers/net/e1000/em_rxtx.c | 48 ++- drivers/net/e1000/igb_ethdev.c |4 +++ drivers/net

[dpdk-dev] [PATCH v12 3/6] fm10k: add Tx preparation

2016-11-23 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek Acked-by: Konstantin Ananyev --- drivers/net/fm10k/fm10k.h|6 + drivers/net/fm10k/fm10k_ethdev.c |5 drivers/net/fm10k/fm10k_rxtx.c | 50 +- 3 files changed, 60 insertions(+), 1 deletion(-) diff

[dpdk-dev] [PATCH v12 4/6] i40e: add Tx preparation

2016-11-23 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek Acked-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c |3 ++ drivers/net/i40e/i40e_rxtx.c | 72 +++- drivers/net/i40e/i40e_rxtx.h |8 + 3 files changed, 82 insertions(+), 1 deletion(-) diff --git a

[dpdk-dev] [PATCH v12 5/6] ixgbe: add Tx preparation

2016-11-23 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek Acked-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c |3 ++ drivers/net/ixgbe/ixgbe_ethdev.h |5 +++- drivers/net/ixgbe/ixgbe_rxtx.c | 56 ++ drivers/net/ixgbe/ixgbe_rxtx.h |2 ++ 4 files changed

[dpdk-dev] [PATCH v12 6/6] testpmd: use Tx preparation in csum engine

2016-11-23 Thread Tomasz Kulasek
ration and verification. Adding additional step to the csum engine costs about 3-4% of performance drop, on my setup with ixgbe driver. It's caused mostly by the need of reaccessing and modification of packet data. Signed-off-by: Tomasz Kulasek Acked-by: Konstantin Ananyev --- app/tes

[dpdk-dev] [PATCH v5 0/6] add Tx preparation

2016-10-13 Thread Tomasz Kulasek
hen device doesn't support tx_prep functionality, - introduced CONFIG_RTE_ETHDEV_TX_PREP allowing to turn off tx_prep Tomasz Kulasek (6): ethdev: add Tx preparation e1000: add Tx preparation fm10k: add Tx preparation i40e: add Tx preparation ixgbe: add Tx preparation csum: fixup ap

[dpdk-dev] [PATCH v5 1/6] ethdev: add Tx preparation

2016-10-13 Thread Tomasz Kulasek
ackets full pseudo-header checksum is counted and set. - for TSO the IP payload length is not included. Signed-off-by: Tomasz Kulasek --- config/common_base|1 + lib/librte_ether/rte_ethdev.h | 85 + lib/librte_mbuf/rte_mbuf.h

[dpdk-dev] [PATCH v5 2/6] e1000: add Tx preparation

2016-10-13 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/e1000/e1000_ethdev.h | 11 drivers/net/e1000/em_ethdev.c|5 +++- drivers/net/e1000/em_rxtx.c | 48 ++- drivers/net/e1000/igb_ethdev.c |4 +++ drivers/net/e1000/igb_rxtx.c | 52

[dpdk-dev] [PATCH v5 4/6] i40e: add Tx preparation

2016-10-13 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/i40e/i40e_ethdev.c |3 ++ drivers/net/i40e/i40e_rxtx.c | 72 +++- drivers/net/i40e/i40e_rxtx.h |8 + 3 files changed, 82 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b

[dpdk-dev] [PATCH v5 3/6] fm10k: add Tx preparation

2016-10-13 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/fm10k/fm10k.h|6 + drivers/net/fm10k/fm10k_ethdev.c |5 drivers/net/fm10k/fm10k_rxtx.c | 50 +- 3 files changed, 60 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k.h

[dpdk-dev] [PATCH v5 5/6] ixgbe: add Tx preparation

2016-10-13 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/ixgbe/ixgbe_ethdev.c |3 ++ drivers/net/ixgbe/ixgbe_ethdev.h |5 +++- drivers/net/ixgbe/ixgbe_rxtx.c | 58 +- drivers/net/ixgbe/ixgbe_rxtx.h |2 ++ 4 files changed, 66 insertions(+), 2 deletions

[dpdk-dev] [PATCH v5 6/6] testpmd: use Tx preparation in csum engine

2016-10-13 Thread Tomasz Kulasek
ed of reaccessing and modification of packet data. Signed-off-by: Tomasz Kulasek --- app/test-pmd/csumonly.c | 36 +--- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index f9e65b6..3354b3d 100644 --- a/app

[dpdk-dev] [PATCH v6 0/6] add Tx preparation

2016-10-14 Thread Tomasz Kulasek
hen device doesn't support tx_prep functionality, - introduced CONFIG_RTE_ETHDEV_TX_PREP allowing to turn off tx_prep Tomasz Kulasek (6): ethdev: add Tx preparation e1000: add Tx preparation fm10k: add Tx preparation i40e: add Tx preparation ixgbe: add Tx preparation testpmd: use

[dpdk-dev] [PATCH v6 1/6] ethdev: add Tx preparation

2016-10-14 Thread Tomasz Kulasek
floads, etc.) is 14626628/14252168 (~2.62% drop), 3) Full support in ixgbe driver (point 2 + packet checksum initialization) is 14060924/13588094 (~3.48% drop) Signed-off-by: Tomasz Kulasek --- config/common_base|1 + lib/librte_ether/rte_ethdev.h | 85

[dpdk-dev] [PATCH v6 2/6] e1000: add Tx preparation

2016-10-14 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/e1000/e1000_ethdev.h | 11 drivers/net/e1000/em_ethdev.c|5 +++- drivers/net/e1000/em_rxtx.c | 48 ++- drivers/net/e1000/igb_ethdev.c |4 +++ drivers/net/e1000/igb_rxtx.c | 52

[dpdk-dev] [PATCH v6 3/6] fm10k: add Tx preparation

2016-10-14 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- drivers/net/fm10k/fm10k.h|6 + drivers/net/fm10k/fm10k_ethdev.c |5 drivers/net/fm10k/fm10k_rxtx.c | 50 +- 3 files changed, 60 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k.h

<    1   2   3   4   >