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

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

2017-10-24 Thread Kirill Rybalchenko
For complex packets use raw flow type with pre-constructed packet buffer instead of creating a packet internally in PMD. v2: Fix documentation according to doxygen style comments. Fix compilation warnings for clang target. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.h

[dpdk-dev] [PATCH] app/testpmd: fix potential memory leak

2017-11-02 Thread Kirill Rybalchenko
Fix potential memory leak in cmd_ddp_info_parsed() function. Fixes: a8e005696c7b ("app/testpmd: get ddp profile protocol info") Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/cmdli

[dpdk-dev] [PATCH 0/2] add raw flowtype mode for flow director filter

2017-11-23 Thread Kirill Rybalchenko
Add possibility to load file with raw packet and set it as a template for flow director filter setup. Kirill Rybalchenko (2): app/testpmd: add raw flowtype mode for flow director filter doc: add description of raw mode in flow director in testpmd app/test-pmd/cmdline.c

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

2017-11-23 Thread Kirill Rybalchenko
Add description of raw flow type mode for flow_director_filter command in testpmd. Modify description of flow type parameter for functions set_hash_global_config, set_hash_input_set and set_fdir_input_set Signed-off-by: Kirill Rybalchenko --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 24

[dpdk-dev] [PATCH 1/2] app/testpmd: add raw flowtype mode for flow director filter

2017-11-23 Thread Kirill Rybalchenko
Add possibility to load file with raw packet and set it as a template for flow director filter setup. Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 116 - app/test-pmd/config.c | 8 ++-- app/test-pmd/testpmd.h | 6 +-- 3

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

2017-11-27 Thread Kirill Rybalchenko
affects the following components: net/i40e net/enic net/mlx5 net/ixgbe app/testpmd Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 22 +++--- drivers/net/enic/enic_clsf.c| 6 +- drivers/net/i40e/i40e_ethdev.c | 38

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

2017-11-29 Thread Kirill Rybalchenko
outer IP Destination address for RSS/FDIR for tunnelled packets, as flexible payload overwrites outer IP destination address on the field vector. Now flexible payload turned on only when flow director is enabled and configured. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c

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

2017-12-01 Thread Kirill Rybalchenko
be reset if payload is disabled or on port reset (uninit). Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_ethdev.c | 32 +--- drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 1 + 3 files changed, 23 insertions(+), 11 deletions

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

2018-01-04 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. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e

[dpdk-dev] [PATCH] net/i40e: multiple DDP packages should not be allowed

2018-01-30 Thread Kirill Rybalchenko
together; Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c index 5436db4..be37912 100644 --- a/drivers/net/i40e

[dpdk-dev] [PATCH v2] net/i40e: fix multiple DDP packages should not be allowed

2018-01-30 Thread Kirill Rybalchenko
together; Fixes: b319712f53c8 ("net/i40e: extended list of operations for DDP processing") Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/d

[dpdk-dev] [PATCH] doc: fix documentation for testpmd ddp add del function

2018-01-31 Thread Kirill Rybalchenko
Documentation and help string more clear describe meaning of arguments for ddp add del function. Fixes: 856ceb331b0a ("app/testpmd: enable DDP remove profile feature") Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 8 doc/guides/nic

[dpdk-dev] [PATCH v3] net/i40e: fix multiple DDP packages should not be allowed

2018-02-01 Thread Kirill Rybalchenko
together; Fixes: b319712f53c8 ("net/i40e: extended list of operations for DDP processing") v3: prevent registration of read-only profiles with profile list Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 40 1 file c

[dpdk-dev] [PATCH] net/i40e: fix support DDP packages group 0xff

2018-02-22 Thread Kirill Rybalchenko
Group ID 0xFF indicates that packages does not change parser graph so compatible with any other packages. Fixes: b1ec717bfff5 ("net/i40e: fix multiple DDP packages conflict") Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/rte_pmd_i40e.c | 7 +++ 1 file changed, 7

[dpdk-dev] [PATCH] ethdev: remove versioning of ethdev filter control function

2018-02-27 Thread Kirill Rybalchenko
versions. Remove the versioning of rte_eth_dev_filter_ctrl function. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_ethdev.c | 155 +- 1 file changed, 2 insertions(+), 153 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether

[dpdk-dev] [PATCH v2] ethdev: remove versioning of ethdev filter control function

2018-02-27 Thread Kirill Rybalchenko
versions. Remove the versioning of rte_eth_dev_filter_ctrl function. v2: Modify map file, increment library version, remove deprecation notice Signed-off-by: Kirill Rybalchenko --- doc/guides/rel_notes/deprecation.rst| 6 -- doc/guides/rel_notes/release_18_05.rst | 2 +- lib/librte_ether

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

  1   2   >