[dpdk-dev] [PATCH v3] crypto/scheduler: add multicore scheduling mode

2017-07-05 Thread Kirill Rybalchenko
Multi-core scheduling mode is a mode where scheduler distributes crypto operations in a round-robin base, between several core assigned as workers. Signed-off-by: Kirill Rybalchenko --- Changes in v3: - Rebased against dpdk-next-crypto - Fixed op status check in the reordering ring dequeuing

[dpdk-dev] [PATCH] cryptodev: remove crypto operation status value

2017-07-17 Thread Kirill Rybalchenko
Crypto operation status RTE_CRYPTO_OP_STATUS_ENQUEUED is removed from rte_crypto.h as it is not needed for crypto operation processing. This status value is redundant to RTE_CRYPTO_OP_STATUS_NOT_PROCESSED value and it was not intended to be part of public API. Signed-off-by: Kirill Rybalchenko

[dpdk-dev] [PATCH v1] crypto/scheduler: fix multicore scheduler reordering

2017-07-18 Thread Kirill Rybalchenko
buffer, scheduler clears this bit, so the application gets unmodified status from crypto pmd. Fixes: 4c07e0552f0a ("crypto/scheduler: add multicore scheduling mode") Signed-off-by: Kirill Rybalchenko --- drivers/crypto/scheduler/scheduler_multicore.c | 94 ++--

[dpdk-dev] [PATCH] crypto/scheduler: update documenation for multicore scheduler

2017-07-18 Thread Kirill Rybalchenko
Done more clear explanation of usage of corelist parameter. Signed-off-by: Kirill Rybalchenko --- doc/guides/cryptodevs/scheduler.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/cryptodevs/scheduler.rst b/doc/guides/cryptodevs/scheduler.rst index f3ee88a..3ba0188 100644

[dpdk-dev] [PATCH] cryptodev: fix device stop function

2017-06-14 Thread Kirill Rybalchenko
Flag dev_started should be cleared after dev_stop() function call because the flag is checked inside the dev_stop() function. Fixes: d11b0f30df88 ("cryptodev: introduce API and framework for crypto devices") Cc: sta...@dpdk.org Signed-off-by: Kirill Rybalchenko --- lib/librte

[dpdk-dev] [PATCH] app/crypto-perf: fix wait for lcores

2017-06-14 Thread Kirill Rybalchenko
ned-off-by: Kirill Rybalchenko --- app/test-crypto-perf/main.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 9ec2a4b..d4bbbef 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -395

[dpdk-dev] [PATCH] app/crypto-perf: stop crypto devices after test is finished

2017-06-14 Thread Kirill Rybalchenko
Call of rte_cryptodev_stop() function from test destructors is added. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Cc: sta...@dpdk.org Signed-off-by: Kirill Rybalchenko --- app/test-crypto-perf/cperf_test_latency.c| 3 ++- app/test-c

[dpdk-dev] [PATCH] net/i40e/base: add new TR bits used for cloud filters

2018-09-06 Thread Kirill Rybalchenko
for cloud filter") Cc: sta...@dpdk.org Signed-off-by: Paul M Stillwell Jr Signed-off-by: Andrey Chilikin Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/base/i40e_adminq_cmd.h | 3 ++- drivers/net/i40e/base/i40e_common.c | 9 + 2 files changed, 11 insertions(+), 1 de

[dpdk-dev] [PATCH] crypto/scheduler: fix multicore rings re-use

2018-05-13 Thread Kirill Rybalchenko
mode") Signed-off-by: Kirill Rybalchenko --- drivers/crypto/scheduler/scheduler_multicore.c | 28 ++ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/scheduler/scheduler_multicore.c b/drivers/crypto/scheduler/scheduler_multicore.c index b2ce44

[dpdk-dev] [PATCH] examples/ipsec-secgw: fix ip address parsing

2018-05-14 Thread Kirill Rybalchenko
In strlcpy function parameters there was no allowance for null terminator, so ip address was copied without last character. Fixes: ae943ebe1ed3 ("examples/ipsec-secgw: replace strncpy with strlcpy") Signed-off-by: Kirill Rybalchenko --- examples/ipsec-secgw/parser.c | 9 +--

[dpdk-dev] [PATCH v2] crypto/scheduler: fix multicore rings re-use

2018-05-16 Thread Kirill Rybalchenko
") Cc: sta...@dpdk.org v2: Rebase to head of dpdk-dev master branch Signed-off-by: Kirill Rybalchenko --- drivers/crypto/scheduler/scheduler_multicore.c | 28 ++ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/scheduler/scheduler_mult

[dpdk-dev] [PATCH] crypto/scheduler: fix 64-bit mask of workers cores

2018-05-21 Thread Kirill Rybalchenko
uling mode") Cc: sta...@dpdk.org Signed-off-by: Kirill Rybalchenko --- drivers/crypto/scheduler/rte_cryptodev_scheduler.h | 2 +- drivers/crypto/scheduler/scheduler_multicore.c | 4 +- drivers/crypto/scheduler/scheduler_pmd.c | 68 +- drivers/c

[dpdk-dev] [PATCH] doc: remove old deprecation notice

2018-05-25 Thread Kirill Rybalchenko
New default configuration without flexible payload is implemented now. Fixes: 09dd01ad9a68 ("doc: announce behaviour change to i40e RSS") Cc: sta...@dpdk.org Signed-off-by: Kirill Rybalchenko --- doc/guides/rel_notes/deprecation.rst | 6 -- 1 file changed, 6 deletions(-) diff -

[dpdk-dev] [PATCH v3] net/i40e: do not turn on flexible payload on driver init

2018-01-09 Thread Kirill Rybalchenko
be reset if payload is disabled or on port reset (uninit). v2: dev_init and dev_close disable flexible payload by default. Flexible payload enabled selectively, only if appropriate PIT is set up. The same done for FDIR and for rte_flow API. v3: Minor fix in comments. Signed-off-by: Kirill

[dpdk-dev] [PATCH] doc: ethdev ABI change deprecation notice

2018-01-11 Thread Kirill Rybalchenko
Signed-off-by: Kirill Rybalchenko --- doc/guides/rel_notes/deprecation.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 13e8543..f0589ea 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc

[dpdk-dev] [PATCH v2] doc: ethdev ABI change deprecation notice

2018-01-12 Thread Kirill Rybalchenko
Signed-off-by: Kirill Rybalchenko Acked-by: Marko Kovacevic --- doc/guides/rel_notes/deprecation.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 13e8543..f0589ea 100644 --- a/doc/guides/rel_notes

[dpdk-dev] [PATCH v3] doc: ethdev ABI change deprecation notice

2018-01-12 Thread Kirill Rybalchenko
Signed-off-by: Kirill Rybalchenko Acked-by: Marko Kovacevic --- doc/guides/rel_notes/deprecation.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 13e8543..aaf306a 100644 --- a/doc/guides/rel_notes

[dpdk-dev] [PATCH v2] ethdev: increase flow type limit from 32 to 64

2018-01-15 Thread Kirill Rybalchenko
affects the following components: net/i40e net/ixgbe app/testpmd v2: implement versioning of rte_eth_dev_filter_ctrl function for ABI backward compatibility with version 17.11 and older Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 22 ++--- drivers/net/i40e

[dpdk-dev] [PATCH v3] ethdev: increase flow type limit from 32 to 64

2018-01-15 Thread Kirill Rybalchenko
affects the following components: net/i40e net/ixgbe app/testpmd v2: implement versioning of rte_eth_dev_filter_ctrl function for ABI backward compatibility with version 17.11 and older v3: fix code style warnings Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 22

[dpdk-dev] [PATCH 0/5] net/i40e: implement dynamic mapping of flow types to pctypes

2017-08-24 Thread Kirill Rybalchenko
Implement dynamic mapping of software flow types to hardware pctypes. This allows to map new flow types to pctypes without changing API of the driver. Kirill Rybalchenko (5): app/testpmd: add new commands to manipulate with pctype mapping net/i40e: add function to initialize pctype mapping

[dpdk-dev] [PATCH 2/5] net/i40e: add function to initialize pctype mapping table

2017-08-24 Thread Kirill Rybalchenko
Add new function i40e_set_default_pctype_table() to initialize flow type to pctype dynamic mapping table with default values. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_rxtx.c | 57 drivers/net/i40e/i40e_rxtx.h | 1 + 2 files

[dpdk-dev] [PATCH 3/5] net/i40e: add new functions to manipulate with pctype mapping table

2017-08-24 Thread Kirill Rybalchenko
Add new functions which allow modify, return or reset to default the contents of flow type to pctype dynamic mapping table. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 98 + drivers/net/i40e/rte_pmd_i40e.h | 60

[dpdk-dev] [PATCH 1/5] app/testpmd: add new commands to manipulate with pctype mapping

2017-08-24 Thread Kirill Rybalchenko
Add new commands to manipulate with dynamic flow type to pctype mapping table in i40e PMD. Commands allow to print table, modify it and reset to default value. Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 263 + 1 file changed

[dpdk-dev] [PATCH 4/5] net/i40e: change list of parameters for functions mapping flow type to pctype and back

2017-08-24 Thread Kirill Rybalchenko
-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_fdir.c | 10 +- drivers/net/i40e/i40e_flow.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c index 8013add..7515941 100644 --- a/drivers/net/i40e/i40e_fdir.c

[dpdk-dev] [PATCH 5/5] net/i40e: implement dynamic mapping of sw flow types to hw pctypes

2017-08-24 Thread Kirill Rybalchenko
functions. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c| 313 +- drivers/net/i40e/i40e_ethdev.h| 16 +- drivers/net/i40e/i40e_ethdev_vf.c | 36 ++--- 3 files changed, 98 insertions(+), 267 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH 0/2] ethdev: add support for raw flow type for flow director

2017-08-24 Thread Kirill Rybalchenko
For complex packets use raw flow type with pre-constructed packet buffer instead of creating a packet internally in PMD. Kirill Rybalchenko (2): ethdev: add support for raw flow type for flow director net/i40e: add support for raw flow type for flow director drivers/net/i40e/i40e_fdir.c

[dpdk-dev] [PATCH 2/2] net/i40e: add support for raw flow type for flow director

2017-08-24 Thread Kirill Rybalchenko
When addidng flow director filter for raw flow type, instead of constructing packet use buffer with pre-constructed packet. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_fdir.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH 1/2] ethdev: add support for raw flow type for flow director

2017-08-24 Thread Kirill Rybalchenko
Add new structure rte_eth_raw_flow to the union rte_eth_fdir_flow to support filter for raw flow type Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_eth_ctrl.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether

[dpdk-dev] [PATCH 1/2] net/i40e: get information about protocols defined in ddp profile

2017-08-29 Thread Kirill Rybalchenko
This patch adds new package info types to get list of protocols, pctypes and ptypes defined in a profile Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 155 drivers/net/i40e/rte_pmd_i40e.h | 25 +++ 2 files changed, 180

[dpdk-dev] [PATCH 0/2] net/i40e: get information about protocols defined in ddp profile

2017-08-29 Thread Kirill Rybalchenko
This patch adds ability to request information about protocols defined in dynamic device personalization profile Kirill Rybalchenko (2): net/i40e: get information about protocols defined in ddp profile app/testpmd: get information about protocols defined in ddp profile app/test-pmd

[dpdk-dev] [PATCH 2/2] app/testpmd: get information about protocols defined in ddp profile

2017-08-29 Thread Kirill Rybalchenko
Update 'ddp get info' command to display protocols defined in a profile Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 94 +- 1 file changed, 93 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/ap

[dpdk-dev] [PATCH v2 0/4] net/i40e: implement dynamic mapping of flow types to pctypes

2017-09-01 Thread Kirill Rybalchenko
flow types and pctypes. Kirill Rybalchenko (4): net/i40e: implement dynamic mapping of sw flow types to hw pctypes net/i40e: add new functions to manipulate with pctype mapping table app/testpmd: add new commands to manipulate with pctype mapping ethdev: remove unnecessary check for new

[dpdk-dev] [PATCH v2 1/4] net/i40e: implement dynamic mapping of sw flow types to hw pctypes

2017-09-01 Thread Kirill Rybalchenko
functions. Signed-off-by: Kirill Rybalchenko --- v2 Re-arrange patchset to avoid compillation errors. Remove usage of statically defined flow types and pctypes. --- drivers/net/i40e/i40e_ethdev.c| 347 ++ drivers/net/i40e/i40e_ethdev.h| 16 +- drivers

[dpdk-dev] [PATCH v2 2/4] net/i40e: add new functions to manipulate with pctype mapping table

2017-09-01 Thread Kirill Rybalchenko
Add new functions which allow modify, return or reset to default the contents of flow type to pctype dynamic mapping table. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 98 + drivers/net/i40e/rte_pmd_i40e.h | 61

[dpdk-dev] [PATCH v2 3/4] app/testpmd: add new commands to manipulate with pctype mapping

2017-09-01 Thread Kirill Rybalchenko
Add new commands to manipulate with dynamic flow type to pctype mapping table in i40e PMD. Commands allow to print table, modify it and reset to default value. Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 311 +++- doc/guides

[dpdk-dev] [PATCH v2 4/4] ethdev: remove unnecessary check for new flow type

2017-09-01 Thread Kirill Rybalchenko
Remove unnecessary check for new flow type for rss hash filter update. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_ethdev.c | 8 1 file changed, 8 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 0597641..c470997 100644 --- a

[dpdk-dev] [PATCH v2 0/2] net/i40e: get information about protocols defined in ddp profile

2017-09-01 Thread Kirill Rybalchenko
This patch adds ability to request information about protocols defined in dynamic device personalization profile v2: Some code style warnings were removed Kirill Rybalchenko (2): net/i40e: get information about protocols defined in ddp profile app/testpmd: get information about protocols

[dpdk-dev] [PATCH v2 1/2] net/i40e: get information about protocols defined in ddp profile

2017-09-01 Thread Kirill Rybalchenko
This patch adds new package info types to get list of protocols, pctypes and ptypes defined in a profile Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 167 drivers/net/i40e/rte_pmd_i40e.h | 25 ++ 2 files changed, 192

[dpdk-dev] [PATCH v2 2/2] app/testpmd: get information about protocols defined in ddp profile

2017-09-01 Thread Kirill Rybalchenko
Update 'ddp get info' command to display protocols defined in a profile Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 98 +- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/ap

[dpdk-dev] [PATCH] app/testpmd: port info prints dynamically mapped flow types

2017-09-01 Thread Kirill Rybalchenko
Port info command prints information about all supported flow types, including dynamically mapped ones. Signed-off-by: Kirill Rybalchenko --- app/test-pmd/config.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index

[dpdk-dev] [PATCH v3 0/2] net/i40e: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
This patch adds ability to request information about protocols defined in dynamic device personalization profile v2: Some code style warnings were removed v3: info_size parameter always represents size of the info buffer in bytes; fix code style; Kirill Rybalchenko (2): net/i40e: get

[dpdk-dev] [PATCH v3 1/2] net/i40e: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
This patch adds new package info types to get list of protocols, pctypes and ptypes defined in a profile --- v3 info_size parameter always represents size of the info buffer in bytes --- Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 171

[dpdk-dev] [PATCH v3 2/2] app/testpmd: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
Update 'ddp get info' command to display protocols defined in a profile --- v3 Fix code style Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 107 - 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/ap

[dpdk-dev] [PATCH v4 0/2] net/i40e: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
This patch adds ability to request information about protocols defined in dynamic device personalization profile v2: Some code style warnings were removed v3: info_size parameter always represents size of the info buffer in bytes; fix code style; v4: anothe code style fixes Kirill Rybalchenko

[dpdk-dev] [PATCH v4 1/2] net/i40e: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
This patch adds new package info types to get list of protocols, pctypes and ptypes defined in a profile --- v3 info_size parameter always represents size of the info buffer in bytes Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 171

[dpdk-dev] [PATCH v4 2/2] app/testpmd: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
Update 'ddp get info' command to display protocols defined in a profile Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 111 - 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/ap

[dpdk-dev] [PATCH v5 0/2] net/i40e: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
buff_size parameter in rte_pmd_i40e_get_ddp_info function call always represents buffer size in bytes Kirill Rybalchenko (2): net/i40e: get information about protocols defined in ddp profile app/testpmd: get information about protocols defined in ddp profile app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v5 1/2] net/i40e: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
This patch adds new package info types to get list of protocols, pctypes and ptypes defined in a profile --- v3 info_size parameter always represents size of the info buffer in bytes Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 171

[dpdk-dev] [PATCH v5 2/2] app/testpmd: get information about protocols defined in ddp profile

2017-09-19 Thread Kirill Rybalchenko
Update 'ddp get info' command to display protocols defined in a profile v5: buff_size parameter in rte_pmd_i40e_get_ddp_info function call always represents buffer size in bytes Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdli

[dpdk-dev] [PATCH v2 2/2] net/i40e: add support for raw flow type for flow director

2017-09-20 Thread Kirill Rybalchenko
When addidng flow director filter for raw flow type, instead of constructing packet use buffer with pre-constructed packet. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_fdir.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a

[dpdk-dev] [PATCH v2 1/2] ethdev: add support for raw flow type for flow director

2017-09-20 Thread Kirill Rybalchenko
Add new structure rte_eth_raw_flow to the union rte_eth_fdir_flow to support filter for raw flow type Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_eth_ctrl.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether

[dpdk-dev] [PATCH v2 0/2] ethdev: add support for raw flow type for flow director

2017-09-20 Thread Kirill Rybalchenko
For complex packets use raw flow type with pre-constructed packet buffer instead of creating a packet internally in PMD. v2: Fixed code style, comment added Kirill Rybalchenko (2): ethdev: add support for raw flow type for flow director net/i40e: add support for raw flow type for flow

[dpdk-dev] [PATCH v3 0/6] net/i40e: implement dynamic mapping of flow types to pctypes

2017-09-20 Thread Kirill Rybalchenko
rte_pmd_i40e_flow_type_mapping_get returns now full mapping table. testpmd: changed command syntax from 'pctype mapping...' to 'port config pctype mapping...' and 'show port pctype mapping' Various small modifications in code style after reviewing. Kirill Rybalchenko (6): net/i40e: remove unneces

[dpdk-dev] [PATCH v3 2/6] net/i40e: add definition for invalid pctype

2017-09-20 Thread Kirill Rybalchenko
Add new definition in enum i40e_filter_pctype for for invalid pctype Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/base/i40e_type.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index

[dpdk-dev] [PATCH v3 1/6] net/i40e: remove unnecessary bit operations

2017-09-20 Thread Kirill Rybalchenko
Remove unnecessary bit operations in I40E_PFQF_HENA and I40E_VFQF_HENA registers Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c| 21 +++-- drivers/net/i40e/i40e_ethdev_vf.c | 22 -- 2 files changed, 7 insertions(+), 36 deletions

[dpdk-dev] [PATCH v3 4/6] net/i40e: add new functions to manipulate with pctype mapping table

2017-09-20 Thread Kirill Rybalchenko
Add new functions which allow modify, return or reset to default the contents of flow type to pctype dynamic mapping table. v3: function rte_pmd_i40e_flow_type_mapping_get returns now full mapping table. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 90

[dpdk-dev] [PATCH v3 3/6] net/i40e: implement dynamic mapping of sw flow types to hw pctypes

2017-09-20 Thread Kirill Rybalchenko
. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c| 343 -- drivers/net/i40e/i40e_ethdev.h| 17 +- drivers/net/i40e/i40e_ethdev_vf.c | 16 +- drivers/net/i40e/i40e_fdir.c | 54 +++--- drivers/net/i40e/i40e_flow.c | 5

[dpdk-dev] [PATCH v3 5/6] app/testpmd: add new commands to manipulate with pctype mapping

2017-09-20 Thread Kirill Rybalchenko
e mapping' Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 335 +++- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 46 drivers/net/i40e/rte_pmd_i40e_version.map | 2 +- 3 files changed, 372 insertions(+), 11 deletions(-) diff

[dpdk-dev] [PATCH v3 6/6] ethdev: remove unnecessary check for new flow type

2017-09-20 Thread Kirill Rybalchenko
Remove unnecessary check for new flow type for rss hash filter update. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_ethdev.c | 8 1 file changed, 8 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index a88916f..d2279b7 100644 --- a

[dpdk-dev] [PATCH v2] app/testpmd: port info prints dynamically mapped flow types

2017-09-20 Thread Kirill Rybalchenko
Port info command prints information about all supported flow types, including dynamically mapped ones. Signed-off-by: Kirill Rybalchenko Reviewed-by: Jingjing Wu --- app/test-pmd/config.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/config.c b/app

[dpdk-dev] [PATCH v6 0/2] net/i40e: get information about protocols defined in ddp profile

2017-09-28 Thread Kirill Rybalchenko
buff_size parameter in rte_pmd_i40e_get_ddp_info function call always represents buffer size in bytes v6: fix bug with wrong usage of buff_size parameter Kirill Rybalchenko (2): net/i40e: get information about protocols defined in ddp profile app/testpmd: get information about protocols defined

[dpdk-dev] [PATCH v6 1/2] net/i40e: get information about protocols defined in ddp profile

2017-09-28 Thread Kirill Rybalchenko
This patch adds new package info types to get list of protocols, pctypes and ptypes defined in a profile --- v3 info_size parameter always represents size of the info buffer in bytes v6 fix bug with wrong usage of info_size parameter Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e

[dpdk-dev] [PATCH v6 2/2] app/testpmd: get information about protocols defined in ddp profile

2017-09-28 Thread Kirill Rybalchenko
Update 'ddp get info' command to display protocols defined in a profile v5 buff_size parameter in rte_pmd_i40e_get_ddp_info function call always represents buffer size in bytes v6 fix bug with wrong usage of buff_size parameter Signed-off-by: Kirill Rybalchenko --- app/test-pmd

[dpdk-dev] [PATCH v7 1/2] net/i40e: get information about protocols defined in ddp profile

2017-10-02 Thread Kirill Rybalchenko
variable for zero value Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 172 drivers/net/i40e/rte_pmd_i40e.h | 25 ++ 2 files changed, 197 insertions(+) diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e

[dpdk-dev] [PATCH v7 0/2] net/i40e: get information about protocols defined in ddp profile

2017-10-02 Thread Kirill Rybalchenko
buff_size parameter in rte_pmd_i40e_get_ddp_info function call always represents buffer size in bytes v6: fix bug with wrong usage of buff_size parameter v7: change misleading variable names, change order of checking variable for zero value Kirill Rybalchenko (2): net/i40e: get information about

[dpdk-dev] [PATCH v7 2/2] app/testpmd: get information about protocols defined in ddp profile

2017-10-02 Thread Kirill Rybalchenko
Update 'ddp get info' command to display protocols defined in a profile v5 buff_size parameter in rte_pmd_i40e_get_ddp_info function call always represents buffer size in bytes v6 fix bug with wrong usage of buff_size parameter Signed-off-by: Kirill Rybalchenko --- app/test-pmd

[dpdk-dev] [PATCH v4 1/5] net/i40e: remove unnecessary bit operations

2017-10-02 Thread Kirill Rybalchenko
Remove unnecessary bit operations in I40E_PFQF_HENA and I40E_VFQF_HENA registers Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c| 21 +++-- drivers/net/i40e/i40e_ethdev_vf.c | 22 -- 2 files changed, 7 insertions(+), 36 deletions

[dpdk-dev] [PATCH v4 0/5] net/i40e: implement dynamic mapping of flow types to pctypes

2017-10-02 Thread Kirill Rybalchenko
Move declaration of automatic variables to beginning of function. Move declaration of I40E_FILTER_PCTYPE_INVALID to i40e_ethdev.h Fix some typos in source filea and documentation. Kirill Rybalchenko (5): net/i40e: remove unnecessary bit operations net/i40e: implement dynamic mapping of sw flow

[dpdk-dev] [PATCH v4 2/5] net/i40e: implement dynamic mapping of sw flow types to hw pctypes

2017-10-02 Thread Kirill Rybalchenko
: Change prototypes of some static functions. Move declaration of automatic variables to beginning of function. Move declaration of I40E_FILTER_PCTYPE_INVALID to i40e_ethdev.h Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c| 344

[dpdk-dev] [PATCH v4 4/5] app/testpmd: add new commands to manipulate with pctype mapping

2017-10-02 Thread Kirill Rybalchenko
apping' v4: Fix typos in cmdline.c and documentation. Move variable declaration to the beginning of function. Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 336 +++- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 46 2 files

[dpdk-dev] [PATCH v4 5/5] ethdev: remove unnecessary check for new flow type

2017-10-02 Thread Kirill Rybalchenko
Remove unnecessary check for new flow type for rss hash filter update. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_ethdev.c | 8 1 file changed, 8 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 1849a3b..f3bf3e5 100644 --- a

[dpdk-dev] [PATCH v4 3/5] net/i40e: add new functions to manipulate with pctype mapping table

2017-10-02 Thread Kirill Rybalchenko
Add new functions which allow modify, return or reset to default the contents of flow type to pctype dynamic mapping table. v3: Function rte_pmd_i40e_flow_type_mapping_get returns now full mapping table. v4: Fix typo in rte_pmd_i40e_version.map file. Signed-off-by: Kirill Rybalchenko

[dpdk-dev] [PATCH v5 0/5] net/i40e: implement dynamic mapping of flow types to pctypes

2017-10-04 Thread Kirill Rybalchenko
Move declaration of automatic variables to beginning of function. Move declaration of I40E_FILTER_PCTYPE_INVALID to i40e_ethdev.h Fix some typos in source filea and documentation. v5: Fix code style warnings and documentation. No functional changes. Reviewed-by: Ferruh Yigit Kirill Rybalchenko (5):

[dpdk-dev] [PATCH v5 1/5] net/i40e: remove unnecessary bit operations

2017-10-04 Thread Kirill Rybalchenko
Remove unnecessary bit operations in I40E_PFQF_HENA and I40E_VFQF_HENA registers. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c| 21 +++-- drivers/net/i40e/i40e_ethdev_vf.c | 22 -- 2 files changed, 7 insertions(+), 36 deletions

[dpdk-dev] [PATCH v5 2/5] net/i40e: implement dynamic mapping of sw flow types to hw pctypes

2017-10-04 Thread Kirill Rybalchenko
: Change prototypes of some static functions. Move declaration of automatic variables to beginning of function. Move declaration of I40E_FILTER_PCTYPE_INVALID to i40e_ethdev.h v5: Fix code style warnings. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c| 347

[dpdk-dev] [PATCH v5 3/5] net/i40e: add new functions to manipulate with pctype mapping table

2017-10-04 Thread Kirill Rybalchenko
: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 94 +++ drivers/net/i40e/rte_pmd_i40e.h | 55 ++ drivers/net/i40e/rte_pmd_i40e_version.map | 3 + 3 files changed, 152 insertions(+) diff --git a/drivers/net/i40e

[dpdk-dev] [PATCH v5 4/5] app/testpmd: add new commands to manipulate with pctype mapping

2017-10-04 Thread Kirill Rybalchenko
apping' v4: Fix typos in cmdline.c and documentation. Move variable declaration to the beginning of function. v5: Fix code style warnings and documentation. Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 338 +++- doc/guides/te

[dpdk-dev] [PATCH v5 5/5] ethdev: remove unnecessary check for new flow type

2017-10-04 Thread Kirill Rybalchenko
Remove unnecessary check for new flow type for rss hash filter update. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_ethdev.c | 8 1 file changed, 8 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 1849a3b..f3bf3e5 100644 --- a

[dpdk-dev] [PATCH v8 1/2] net/i40e: get information about protocols defined in ddp profile

2017-10-04 Thread Kirill Rybalchenko
variable for zero value v8 Fix code style warnings. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 171 drivers/net/i40e/rte_pmd_i40e.h | 25 ++ 2 files changed, 196 insertions(+) diff --git a/drivers/net/i40e

[dpdk-dev] [PATCH v8 2/2] app/testpmd: get information about protocols defined in ddp profile

2017-10-04 Thread Kirill Rybalchenko
Update 'ddp get info' command to display protocols defined in a profile v5 buff_size parameter in rte_pmd_i40e_get_ddp_info function call always represents buffer size in bytes v6 fix bug with wrong usage of buff_size parameter v8 Fix code style warnings. Signed-off-by: Kirill R

[dpdk-dev] [PATCH v8 0/2] et/i40e: get information about protocols defined in ddp profile

2017-10-04 Thread Kirill Rybalchenko
buff_size parameter in rte_pmd_i40e_get_ddp_info function call always represents buffer size in bytes v6: fix bug with wrong usage of buff_size parameter v7: change misleading variable names, change order of checking variable for zero value v8: Fix code style warnings. Kirill Rybalchenko (2

[dpdk-dev] [PATCH v3 1/4] ethdev: add support for raw flow type for flow director

2017-10-05 Thread Kirill Rybalchenko
Add new structure rte_eth_raw_flow to the union rte_eth_fdir_flow to support filter for raw flow type. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_eth_ctrl.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether

[dpdk-dev] [PATCH v3 0/4] ethdev: add support for raw flow type for flow director

2017-10-05 Thread Kirill Rybalchenko
For complex packets use raw flow type with pre-constructed packet buffer instead of creating a packet internally in PMD. v2: Fixed code style, comment added v3: Merged with dunamic pctype to flow type mapping patch. Added raw fode to flow_director_filter command in testpmd. Kirill Rybalchenko

[dpdk-dev] [PATCH v3 3/4] app/testpmd: add raw flow type to flow director

2017-10-05 Thread Kirill Rybalchenko
v3: Add raw flow type support to flow_director_filter command Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 69 +++--- 1 file changed, 66 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v3 2/4] net/i40e: add support for raw flow type for flow director

2017-10-05 Thread Kirill Rybalchenko
When addidng flow director filter for raw flow type, instead of constructing packet use buffer with pre-constructed packet. v3: Merge with dynamic pctype to flow type mapping patch. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_fdir.c | 25 - 1 file

[dpdk-dev] [PATCH v3 4/4] doc: add description of raw flow type in flow director in testpmd

2017-10-05 Thread Kirill Rybalchenko
v3: Add description of raw flow type mode for flow_director_filter command in testpmd. Signed-off-by: Kirill Rybalchenko --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides

[dpdk-dev] [PATCH] app/testpmd: fix compilation with I40E disabled

2017-10-09 Thread Kirill Rybalchenko
Precompiler instructions #ifdef RTE_LIBRTE_I40E_PMD ... #endif were not placed correctly, which caused number of compilation errors if I40E PMD is disabled. Fixes: 5a4806d304e0 ("app/testpmd: support updating pctype mapping") Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmd

[dpdk-dev] [PATCH v4 0/4] add support for raw flow type for flow director

2017-10-10 Thread Kirill Rybalchenko
unnecessary parameters from flow_director_filter command in testpmd for raw flow type mode. Modify testpmd documentation accordingly. Kirill Rybalchenko (4): ethdev: add support for raw flow type for flow director net/i40e: add support for raw flow type for flow director app/testpmd: add raw flow

[dpdk-dev] [PATCH v4 2/4] net/i40e: add support for raw flow type for flow director

2017-10-10 Thread Kirill Rybalchenko
When addidng flow director filter for raw flow type, instead of constructing packet use buffer with pre-constructed packet. v3: Merge with dynamic pctype to flow type mapping patch. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_fdir.c | 25 - 1 file

[dpdk-dev] [PATCH v4 3/4] app/testpmd: add raw flow type to flow director

2017-10-10 Thread Kirill Rybalchenko
v3: Add raw flow type support to flow_director_filter command v4: Remove unnecessary flexbytes parameter for raw flow type flow director. Add possibility for arbitrary flow type for set_fdir_input_set and set_hash_global_config commands. Signed-off-by: Kirill Rybalchenko --- app/test-pmd

[dpdk-dev] [PATCH v4 4/4] doc: add description of raw mode in flow director in testpmd

2017-10-10 Thread Kirill Rybalchenko
v3: Add description of raw flow type mode for flow_director_filter command in testpmd. v4: Fix documentation of flow_director_filter command in testpmd according to modified parameters. Signed-off-by: Kirill Rybalchenko --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 18 +- 1

[dpdk-dev] [PATCH v4 1/4] ethdev: add support for raw flow type for flow director

2017-10-10 Thread Kirill Rybalchenko
Add new structure rte_eth_raw_flow to the union rte_eth_fdir_flow to support filter for raw flow type. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_eth_ctrl.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether

[dpdk-dev] [PATCH v5 3/4] app/testpmd: add raw flow type to flow director

2017-10-10 Thread Kirill Rybalchenko
v3: Add raw flow type support to flow_director_filter command v4: Remove unnecessary flexbytes parameter for raw flow type flow director. Add possibility for arbitrary flow type for set_fdir_input_set and set_hash_global_config commands. Signed-off-by: Kirill Rybalchenko --- app/test-pmd

[dpdk-dev] [PATCH v5 2/4] net/i40e: add support for raw flow type for flow director

2017-10-10 Thread Kirill Rybalchenko
When addidng flow director filter for raw flow type, instead of constructing packet use buffer with pre-constructed packet. v3: Merge with dynamic pctype to flow type mapping patch. v5: Fix code style warning. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_fdir.c | 26

[dpdk-dev] [PATCH v5 1/4] ethdev: add support for raw flow type for flow director

2017-10-10 Thread Kirill Rybalchenko
Add new structure rte_eth_raw_flow to the union rte_eth_fdir_flow to support filter for raw flow type. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_eth_ctrl.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether

[dpdk-dev] [PATCH v5 0/4] add support for raw flow type for flow director

2017-10-10 Thread Kirill Rybalchenko
unnecessary parameters from flow_director_filter command in testpmd for raw flow type mode. Modify testpmd documentation accordingly. v5: Fix code style warning. Kirill Rybalchenko (4): ethdev: add support for raw flow type for flow director net/i40e: add support for raw flow type for flow

[dpdk-dev] [PATCH v5 4/4] doc: add description of raw mode in flow director in testpmd

2017-10-10 Thread Kirill Rybalchenko
v3: Add description of raw flow type mode for flow_director_filter command in testpmd. v4: Fix documentation of flow_director_filter command in testpmd according to modified parameters. Signed-off-by: Kirill Rybalchenko --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 18 +- 1

[dpdk-dev] [PATCH] net/i40e: add support for packet template to flow director

2017-10-19 Thread Kirill Rybalchenko
For complex packets use raw flow type with pre-constructed packet buffer instead of creating a packet internally in PMD. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.h| 9 + drivers/net/i40e/i40e_fdir.c | 56

[dpdk-dev] [PATCH] net/i40e: fix value of num parameter for strncpy function

2017-10-23 Thread Kirill Rybalchenko
num parameter for strncpy() function should be smaller than actual destination buffer size to allow null termination. Fixes: 40d1324423a4 ("net/i40e: get ddp profile protocol info") Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 2 +- 1 file changed, 1 inser

[dpdk-dev] [PATCH] net/i40e: fix unsecure usage of strncpy function

2017-10-24 Thread Kirill Rybalchenko
Use more secure snprintf function instead of strncpy to prevent memory access violation. Fixes: 40d1324423a4 ("net/i40e: get ddp profile protocol info") Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

  1   2   >