[dpdk-dev] [PATCH v2 07/13] ixgbe: add new function for VF ops of 'dev_infos_get'

2014-09-25 Thread Helin Zhang
New function of 'ixgbevf_dev_info_get' has been added for VF ops of 'dev_infos_get', as more and more information are different between PF and VF. v2 changes: * Added new function for ops of 'dev_infos_get' specifically for ixgbe VF. Signed-off-by: Helin Z

[dpdk-dev] [PATCH v2 09/13] i40e: support of setting hash lookup table size

2014-09-25 Thread Helin Zhang
Add support of setting hash lookup table size according to the hardawre capability. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed-by: Jingjing Wu --- lib/librte_pmd_i40e/i40e_ethdev.c | 14 +- lib/librte_pmd_i40e/i40e_ethdev.h | 1 + 2

[dpdk-dev] [PATCH v2 10/13] i40e: support of getting redirection table size

2014-09-25 Thread Helin Zhang
Add support of getting redirection table size in both PF and VF. v2 changes: * Put getting reta size of both i40e PF and VF into a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed-by: Jingjing Wu --- lib/librte_pmd_i40e/i40e_ethdev.c

[dpdk-dev] [PATCH v2 12/13] i40evf: support of updating/querying redirection table

2014-09-25 Thread Helin Zhang
Add support of updating/querying redirection table in VF. v2 changes: * Add support of updating/querying i40e reta of VF. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed-by: Jingjing Wu --- lib/librte_pmd_i40e/i40e_ethdev_vf.c | 89

[dpdk-dev] [PATCH v2 13/13] app/testpmd: rework of commands for updating/querying reta

2014-09-25 Thread Helin Zhang
As multiple sizes of redirection table have been supported, the commands of updating/querying reta need to be reworked as well. In addition, the reta size can be queried by the existing command of 'show port info <>'. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Revi

[dpdk-dev] [PATCH v2 06/13] igb: rework of updating/querying reta

2014-09-25 Thread Helin Zhang
As ethdev has been changed to support multiple sizes of reta, updating/querying reta should be reworked to support that change. v2 changes: * Put rework of updating/querying igb reta to a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed-by

[dpdk-dev] [PATCH v2 08/13] ixgbe: rework of updating/querying reta

2014-09-25 Thread Helin Zhang
As ethdev has been changed to support multiple sizes of reta, updating/querying reta should be reworked to support that change. v2 changes: * Put rework of updating/querying ixgbe reta to a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed

[dpdk-dev] [PATCH v2 04/13] ethdev: support of multiple sizes of redirection table

2014-09-25 Thread Helin Zhang
ve been reimplemented with one more parameter of redirection table size. v2 changes: * Put changes for supporting multiple sizes of reta in ethdev into a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed-by: Jingjing Wu --- lib/l

[dpdk-dev] [PATCH v2 11/13] i40e: rework of updating/querying reta

2014-09-25 Thread Helin Zhang
As ethdev has been changed to support multiple sizes of reta, updating/querying reta should be reworked to support that change. v2 changes: * Put rework of updating/querying i40e reta to a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed-by

[dpdk-dev] [PATCH v3 1/7] ethdev: add more annotations

2014-09-30 Thread Helin Zhang
Add more annotations about packet classification type. v3 changes: * Remove renamings of RSS 'SHIFT's. * Add more annotations for RSS 'SHIFT's. Signed-off-by: Helin Zhang Acked-by: Jingjing Wu --- lib/librte_ether/rte_ethdev.h | 5 - 1 file changed, 4 insertions(+),

[dpdk-dev] [PATCH v3 2/7] ethdev: add interfaces and relevant for filter control

2014-09-30 Thread Helin Zhang
een renamed. Signed-off-by: Helin Zhang Acked-by: Jingjing Wu --- lib/librte_ether/Makefile | 1 + lib/librte_ether/rte_eth_ctrl.h | 80 + lib/librte_ether/rte_ethdev.c | 32 + lib/librte_ether/rte_ethdev.h | 48 ++

[dpdk-dev] [PATCH v3 4/7] i40e: add hash filter control implementation

2014-09-30 Thread Helin Zhang
-designed filter control API, filter types, and operations. Signed-off-by: Helin Zhang Acked-by: Jingjing Wu --- lib/librte_pmd_i40e/i40e_ethdev.c | 402 ++ 1 file changed, 402 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib

[dpdk-dev] [PATCH v3 5/7] i40e: add hardware initialization

2014-09-30 Thread Helin Zhang
function. * Added initialization of register 'PFQF_CTL_0'. Signed-off-by: Helin Zhang Acked-by: Jingjing Wu --- lib/librte_pmd_i40e/i40e_ethdev.c | 78 +++ 1 file changed, 78 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librt

[dpdk-dev] [PATCH v3 0/7] Support configuring hash functions

2014-09-30 Thread Helin Zhang
nction during port init. * Used constant random hash keys in i40e PF. * renamed the commands in testpmd based on the redesigned filter control API. Helin Zhang (7): ethdev: add more annotations ethdev: add interfaces and relevant for filter control ethdev: add structures and enum for hash f

[dpdk-dev] [PATCH v3 7/7] app/testpmd: add commands to support hash filter control

2014-09-30 Thread Helin Zhang
names. * Used the re-designed filter control APIs and structures. Signed-off-by: Helin Zhang Acked-by: Jingjing Wu --- app/test-pmd/cmdline.c | 565 + 1 file changed, 565 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v3 3/7] ethdev: add structures and enum for hash filter control

2014-09-30 Thread Helin Zhang
: Helin Zhang Acked-by: Jingjing Wu --- lib/librte_ether/rte_eth_ctrl.h | 74 + 1 file changed, 74 insertions(+) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h index aaea075..10197fc 100644 --- a/lib/librte_ether/rte_eth_ctrl.h

[dpdk-dev] [PATCH v3 6/7] i40e: Use constant random hash keys

2014-09-30 Thread Helin Zhang
To be simpler, and remove the race condition, it uses prepared constant random hash keys to replace runtime generating the hash keys. v3 changes: * Use prepared random hash keys. Signed-off-by: Helin Zhang Acked-by: Jingjing Wu --- lib/librte_pmd_i40e/i40e_ethdev.c | 12 ++-- 1 file

[dpdk-dev] [PULL REQUEST] i40e: bug fixes of flow director and link update

2015-04-01 Thread Helin Zhang
The following changes since commit f14db469be8e6ac625353f577ad8fa0eec489e54: version: 2.0.0-rc3 (2015-03-31 03:34:24 +0200) are available in the git repository at: helin at dpdk.org:dpdk-i40e-next.git master for you to fetch changes up to 6e278442b8669fc442c4a9b4b7d14b61cd579e39: i40e: f

[dpdk-dev] [PATCH] doc: add notes for i40e firmware version

2015-04-03 Thread Helin Zhang
Added notes for i40e firmware version. As base driver to suppor the latest version of firmware (FVL3E) hasn't been integrated, currently the validated version of firmware is 4.2.6. Signed-off-by: Helin Zhang --- doc/guides/linux_gsg/enable_func.rst | 1 + 1 file changed, 1 insertion(+)

[dpdk-dev] [PATCH 00/18] i40e base driver update

2015-04-20 Thread Helin Zhang
as follows. Helin Zhang (18): i40e: copyright update i40e: disable setting phy configuration i40e: adjustment of register definitions and relevant i40e: support of CEE DCBX on recent firmware versions i40e: rework of 'i40e_hmc_get_object_va' i40e: support of Fortpark device IDs

[dpdk-dev] [PATCH 01/18] i40e: copyright update

2015-04-20 Thread Helin Zhang
Copyright is updated. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq.h | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 2 +- lib/librte_pmd_i40e/i40e/i40e_alloc.h

[dpdk-dev] [PATCH 02/18] i40e: disable setting phy configuration

2015-04-20 Thread Helin Zhang
moved when a formal fix is ready later. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c index df8686f..9fc2ee7 100644 --- a/lib/librte_pmd_i40e/i40e_eth

[dpdk-dev] [PATCH 05/18] i40e: rework of 'i40e_hmc_get_object_va'

2015-04-20 Thread Helin Zhang
To simplify the usage of invoking 'i40e_hmc_get_object_va', input parameters of it were reworked. In addition, minor code style fixes were added as well. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c | 32 +--- lib/librte_pmd

[dpdk-dev] [PATCH 07/18] i40e: rename 'err' to 'perrno'

2015-04-20 Thread Helin Zhang
To be consistent with original base driver, the variable name of 'err' should be renamed to 'perrno'. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 118 ++-- 1 file changed, 59 insertions(+), 59 deletions(

[dpdk-dev] [PATCH 08/18] i40e: support NVM read on Fortpark, with minor enhancements

2015-04-20 Thread Helin Zhang
NVM read on Fortpark should be done via AQ command, while others via SRCTL register. So it should check the MAC type first, and then use different functions to do NVM read. Other minor changes were also added for the enhancements of NVM write, checksum calculation. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH 09/18] i40e: adminq enhancements

2015-04-20 Thread Helin Zhang
To be more extendable, 'i40e_is_vf()' was introduced to check if the MAC type is VF. Also other minor enhancements were added for 'i40e_init_adminq()'. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 31 ++- lib/

[dpdk-dev] [PATCH 10/18] i40e: support of firmware build number

2015-04-20 Thread Helin Zhang
Getting and checking firmware build number were added, as firmware supports that. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c| 1 + lib/librte_pmd_i40e/i40e/i40e_adminq.h| 5 +++-- lib/librte_pmd_i40e/i40e/i40e_common.c| 4 lib/librte_pmd_i40e/i40e

[dpdk-dev] [PATCH 11/18] i40e: support of building both PF and VF driver together

2015-04-20 Thread Helin Zhang
. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq.c| 14 +++--- lib/librte_pmd_i40e/i40e/i40e_common.c| 6 -- lib/librte_pmd_i40e/i40e/i40e_prototype.h | 4 ++-- 4 files changed, 14 insertions(+), 12 deletions

[dpdk-dev] [PATCH 12/18] i40e: enhancements of AQ commands and common interfaces

2015-04-20 Thread Helin Zhang
7;i40e_led_get()' and 'i40e_led_set()'. 'i40e_update_link_info()' was removed and replaced by 'i40e_aq_get_link_info()' directly. 'i40e_aq_debug_read_register()' was added for reading internal registers for debug purpose. Signed-off-by: Helin Zhang --- lib

[dpdk-dev] [PATCH 13/18] i40e: replacement of 'i40e_debug_read_register()'

2015-04-20 Thread Helin Zhang
As base driver provides 'i40e_aq_debug_read_register()', the same functional interface of 'i40e_debug_read_register()' can be replaced. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_ethdev.c | 22 ++ 1 file changed, 2 insertions(+), 20 deleti

[dpdk-dev] [PATCH 04/18] i40e: support of CEE DCBX on recent firmware versions

2015-04-20 Thread Helin Zhang
nted. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 75 - lib/librte_pmd_i40e/i40e/i40e_common.c | 58 +++ lib/librte_pmd_i40e/i40e/i40e_dcb.c| 261 - lib/librte_pmd_i40e/i40e/i40e_dcb.h| 20 +++ lib/

[dpdk-dev] [PATCH 06/18] i40e: support of Fortpark device IDs and mac types

2015-04-20 Thread Helin Zhang
Support of Fortpark device IDs and mac types which includes FPGA were added. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 17 + lib/librte_pmd_i40e/i40e/i40e_type.h | 16 2 files changed, 33 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH 03/18] i40e: adjustment of register definitions and relevant

2015-04-20 Thread Helin Zhang
More register definitions and their relevant masks are added publically. Also few useless macros are deleted. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_register.h | 1981 +- lib/librte_pmd_i40e/i40e_ethdev.c|3 - 2 files changed, 1955

[dpdk-dev] [PATCH 14/18] i40e: add new interfaces of AQ commands and relevant

2015-04-20 Thread Helin Zhang
New interfaces were added for AQ commands. They are as follows. - i40e_aq_get_rss_lut() - i40e_aq_set_rss_lut() - i40e_aq_get_rss_key() - i40e_aq_set_rss_key() - i40e_aq_read_nvm_config() - i40e_aq_write_nvm_config() - i40e_aq_set_lldp_mib() - i40e_read_pba_string() Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH 15/18] i40e: support of Fortpark FPGA

2015-04-20 Thread Helin Zhang
To support Fortpark FPGA devices, all device IDs and MAC types of FPGA were added. Also, special configurations and processings for FPGA were added. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c| 11 +++ lib/librte_pmd_i40e/i40e/i40e_common.c| 123

[dpdk-dev] [PATCH 16/18] i40e: add more virtual channel operations

2015-04-20 Thread Helin Zhang
Added three virtual channel operations, and assigned values to each of them. To be consistent with base driver releases, virtual channel operation of 'I40E_VIRTCHNL_OP_GET_ADDNL_SOL_CONFIG' and its relevant structure were added. Signed-off-by: Helin Zhang --- lib/librte_pmd

[dpdk-dev] [PATCH 17/18] i40e: support of structure and command length check

2015-04-20 Thread Helin Zhang
'I40E_CHECK_STRUCT_LEN' and 'I40E_CHECK_CMD_LENGTH' can be used to check the length validity of structures and commands at compile time. Those checks were added in i40e_adminq_cmd.h which can report issues as early as possible. Signed-off-by: Helin Zhang --- lib/

[dpdk-dev] [PATCH 18/18] i40e: Minor enhancements in i40e_type.h

2015-04-20 Thread Helin Zhang
. - 'hw_semaphore_wait' was removed from 'struct i40e_nvm_info', as it was useless. - 'enum i40e_rx_desc_status_bits' was reworked for future use. - 'struct i40e_veb_tc_stats' was newly defined for future use. - More macros were added for future

[dpdk-dev] [PATCH] i40evf: fix of supporting jumbo frame

2015-04-22 Thread Helin Zhang
It wouldn't check the configured maximum packet length, and then the scattered receiving function wouldn't be selected at all even if it wants to receive a jumbo frame. The fix is to select the correct RX function according to the configurations. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v2 03/33] i40e: adjustment of register definitions and relevant

2015-04-30 Thread Helin Zhang
Also reading the register of I40E_GLPRT_TDPC is deleted as its definition is deleted. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_register.h | 52 lib/librte_pmd_i40e/i40e_ethdev.c| 3 -- 2 files changed, 26 insertions(+), 29 deletions

[dpdk-dev] [PATCH v2 00/33] i40e base driver update

2015-04-30 Thread Helin Zhang
llows. v2 changes: Removed anything about Fortpark or FPGA as they shouldn't be there. Removed anything specifically for Solaris as they are not needed. Split patches into smaller per fixes as suggested. Helin Zhang (33): i40e: copyright update i40e: disable setting of phy confi

[dpdk-dev] [PATCH v2 05/33] i40e/base: support of building both PF and VF driver together

2015-04-30 Thread Helin Zhang
. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq.c| 20 ++-- lib/librte_pmd_i40e/i40e/i40e_common.c| 6 -- lib/librte_pmd_i40e/i40e/i40e_prototype.h | 4 ++-- 4 files changed, 17 insertions(+), 15

[dpdk-dev] [PATCH v2 09/33] i40e/base: update of shadow RAM read/write functions

2015-04-30 Thread Helin Zhang
To support different hardware, shadow RAM read should be done via SRCTL register or AQ command, and shadow RAM write should be done via AQ command only. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 196 ++-- 1 file changed, 190 insertions

[dpdk-dev] [PATCH v2 12/33] i40e/base: fix up NVM update sm error handling

2015-04-30 Thread Helin Zhang
The state transitions after an error were not managed well, so these changes get us back to the INIT state or don't transit out of the INIT state after most errors. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 32 ++-- 1 file change

[dpdk-dev] [PATCH v2 17/33] i40e/base: define and use i40e_is_vf()

2015-04-30 Thread Helin Zhang
This patch is useful for future expansion when new VF MAC types get added. It also helps with cleaning up VF driver flow. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 7 ++- lib/librte_pmd_i40e/i40e/i40e_type.h | 5 + 2 files changed, 11 insertions(+), 1

[dpdk-dev] [PATCH v2 19/33] i40e/base: enhancements on adminq init and sending asq command

2015-04-30 Thread Helin Zhang
The timeout of ASQ command is enlarged from 100 ms to 250 ms to wait longer time for the response. nvm_busy is not needed anymore. Also nvm_release_on_done and nvmupd_state will be set during adminq init. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 21

[dpdk-dev] [PATCH v2 02/33] i40e: disable setting of phy configuration

2015-04-30 Thread Helin Zhang
moved when a formal fix is ready later. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c index 40c90d7..49d1067 100644 --- a/lib/librte_pmd_i40e/i40e_eth

[dpdk-dev] [PATCH v2 04/33] i40e/base: rename 'err' to 'perrno'

2015-04-30 Thread Helin Zhang
To be consistent with the original base driver, the variable name of 'err' should be renamed to 'perrno'. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 118 ++-- 1 file changed, 59 insertions(+), 59 deletions(

[dpdk-dev] [PATCH v2 06/33] i40e/base: support of CEE DCBX on recent firmware versions

2015-04-30 Thread Helin Zhang
nted. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 75 - lib/librte_pmd_i40e/i40e/i40e_common.c | 58 +++ lib/librte_pmd_i40e/i40e/i40e_dcb.c| 261 - lib/librte_pmd_i40e/i40e/i40e_dcb.h| 20 +++ lib/

[dpdk-dev] [PATCH v2 01/33] i40e: copyright update

2015-04-30 Thread Helin Zhang
Copyright is updated. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq.h | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 2 +- lib/librte_pmd_i40e/i40e/i40e_alloc.h

[dpdk-dev] [PATCH v2 11/33] i40e/base: check for AQ timeout in aq_rc decode

2015-04-30 Thread Helin Zhang
Decoding the AQ return code is great except when the AQ send timed out and there's no return code set. This changes the handy decoder interface to help catch and properly report the condition as an useful error number rather than returning a misleading '0'. Signed-off-by: Helin

[dpdk-dev] [PATCH v2 07/33] i40e: replacement of 'i40e_debug_read_register()'

2015-04-30 Thread Helin Zhang
As base driver provides 'i40e_aq_debug_read_register()', the same functional interface of 'i40e_debug_read_register()' can be replaced. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c| 35 +++ lib/librte_pmd_i40e/i40e/i

[dpdk-dev] [PATCH v2 08/33] i40e/base: rework of 'i40e_hmc_get_object_va'

2015-04-30 Thread Helin Zhang
To simplify the usage of invoking 'i40e_hmc_get_object_va', input parameters of it were reworked. In addition, minor code style fixes were added as well. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c | 31 +-- 1 file changed, 13

[dpdk-dev] [PATCH v2 32/33] i40e/base: rework of structures and macros for future use

2015-04-30 Thread Helin Zhang
Several structures as follows were modified for future use. - struct i40e_link_status - struct i40e_nvm_info - struct i40e_veb_tc_stats In addition, shadow RAM macros and enum were modified for future use as well. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_type.h | 28

[dpdk-dev] [PATCH v2 16/33] i40e/base: add fw build info to AQ data

2015-04-30 Thread Helin Zhang
Since the FW build number is available in the AQ response, save it off for future use. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c| 1 + lib/librte_pmd_i40e/i40e/i40e_adminq.h| 1 + lib/librte_pmd_i40e/i40e/i40e_common.c| 4 lib/librte_pmd_i40e/i40e

[dpdk-dev] [PATCH v2 22/33] i40e/base: update of get/set LED functions

2015-04-30 Thread Helin Zhang
As it is requried to blink the LEDs only, it should ignore the activity LEDs. Also a fix is added to clear the GPIO blink field specifically. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 37 +++--- 1 file changed, 34 insertions(+), 3

[dpdk-dev] [PATCH v2 21/33] i40e/base: add new interfaces for future use

2015-04-30 Thread Helin Zhang
: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 17 ++- lib/librte_pmd_i40e/i40e/i40e_common.c | 193 +++-- lib/librte_pmd_i40e/i40e/i40e_prototype.h | 17 ++- lib/librte_pmd_i40e/i40e/i40e_type.h | 1 + 4 files changed, 208 insertions(+), 20

[dpdk-dev] [PATCH v2 25/33] i40e/base: find partition_id in npar mode, and disable FCOE by default

2015-04-30 Thread Helin Zhang
he current partition_id. In addition, FCOE is disabled by default, as it was pushed out from the firmware. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 34 ++ lib/librte_pmd_i40e/i40e/i40e_type.h | 5 + 2 files changed, 39 insertion

[dpdk-dev] [PATCH v2 18/33] i40e/base: grab NVM devstarter version not image version

2015-04-30 Thread Helin Zhang
The NVM image version has useful data but it is a per image version, and every image can have a different one. While for the dev starter version, all the images for release will have the same version. So it would be better to use dev starter version number. Signed-off-by: Helin Zhang --- lib

[dpdk-dev] [PATCH v2 23/33] i40e/base: clean up sparse complaint in i40e_debug_aq

2015-04-30 Thread Helin Zhang
A sparse complaint in i40e_debug_aq in a funky buffer write goes away by straightening out the code out to something less convoluted. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 56 ++ 1 file changed, 30 insertions(+), 26 deletions

[dpdk-dev] [PATCH v2 28/33] i40e/base: support for iSCSI capability

2015-04-30 Thread Helin Zhang
Add parsing and reporting of iSCSI capability for a given device or function. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 5 + lib/librte_pmd_i40e/i40e/i40e_type.h | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e/i40e_common.c b

[dpdk-dev] [PATCH v2 10/33] i40e/base: catch NVM write semaphore timeout and retry

2015-04-30 Thread Helin Zhang
In some circumstances, a multi-write transaction takes longer than the default 3 minutes timeout on the write semaphore. If the write failed with an EBUSY status, this is likely the problem. So here it tries to reacquire the semaphore and then retry the write. Signed-off-by: Helin Zhang --- lib

[dpdk-dev] [PATCH v2 31/33] i40e/base: add more virtual channel operations for future use

2015-04-30 Thread Helin Zhang
Virtual channel operations of I40E_VIRTCHNL_OP_EVENT and I40E_VIRTCHNL_OP_CONFIG_RSS are added for future use. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_virtchnl.h | 41 1 file changed, 20 insertions(+), 21 deletions(-) v2 changes: Removed

[dpdk-dev] [PATCH v2 13/33] i40e/base: enhancement of polling NVM semaphore

2015-04-30 Thread Helin Zhang
Only poll on the NVM semaphore if there's time left on a previous reservation. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/lib/librte_pmd_i40e/i40e/i40e_nvm.c

[dpdk-dev] [PATCH v2 14/33] i40e/base: enhancements of NVM checksum calculation

2015-04-30 Thread Helin Zhang
The data buffer for i40e_calc_nvm_checksum() is too big, so move it off and allocate separately. In addition, use i40e_read_nvm_buffer() to get the whole shadow RAM, together with minor enhancements. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 49

[dpdk-dev] [PATCH v2 15/33] i40e/base: replacement of DEBUGOUT() with i40e_debug()

2015-04-30 Thread Helin Zhang
To support better debug information printing, all DEBUGOUT() are replaced by i40e_debug(). In addition, the NVM update state strings are added in debug information. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile| 1 + lib/librte_pmd_i40e/i40e/i40e_nvm.c | 77

[dpdk-dev] [PATCH v2 33/33] i40e/base: modifications for future use

2015-04-30 Thread Helin Zhang
i40e_aqc_opc_oem_ocbb_initialize In addition, sturcture and command length check at compile time are added for each admin queue opcodes in order to report any potential issues as early as possible. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 89

[dpdk-dev] [PATCH v2 20/33] i40e/base: i40e_aq_get_link_info() should be used directly

2015-04-30 Thread Helin Zhang
As i40e_update_link_info() is just a simple wrapper of AQ command interface of i40e_aq_get_link_info(), the AQ command interface should be used directly. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c| 34 ++- lib/librte_pmd_i40e/i40e

[dpdk-dev] [PATCH v2 27/33] i40e/base: add AOC phy types to case statement in get_media_type

2015-04-30 Thread Helin Zhang
Add the 10G and 40G AOC phy types to the case statement in get_media_type so that the correct information gets reported back to the user. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e

[dpdk-dev] [PATCH v2 24/33] i40e/base: get pf_id from HW rather than PCI function

2015-04-30 Thread Helin Zhang
to set up the HMC and other structures. The PF_FUNC_RID register has the real bus/device/function information as configured by the BIOS, so use that for a better number. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 23 +++ 1 file changed, 11

[dpdk-dev] [PATCH v2 26/33] i40e/base: Reassign incorrect PHY type as a workaround for a FW issue

2015-04-30 Thread Helin Zhang
it to I40E_PHY_TYPE_10GBASE_SFPP_CU. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e/i40e_common.c b/lib/librte_pmd_i40e/i40e/i40e_common.c index e728e8e..d6cfde8 100644 --- a/lib/librte_pmd_i40e/i40e/i40e_co

[dpdk-dev] [PATCH v2 29/33] i40e/base: set FLAG_RD when sending driver version to FW

2015-04-30 Thread Helin Zhang
When sending driver version to FW, FLAG_SI is not needed as it is done as part of i40e_fill_default_descriptor function call, and it should be replaced by FLAG_BUF and FLAG_RD. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH v2 30/33] i40e/base: future proof some sizeof calls

2015-04-30 Thread Helin Zhang
Make sure the sizeof() calls are taking the size of the actual struct that we care about. By using the pointer variable, it will always get the right struct size, even if the variable type changes sometime in the future. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 44

[dpdk-dev] [PATCH] app/test: fix of returning wrong value

2015-12-03 Thread Helin Zhang
In the KNI unit test, if all test cases passed, it should return with 0. This patch fixes the issue of returning wrong value. Fixes: fc27caaafd4b ("kni: remove deprecated functions") Signed-off-by: Helin Zhang --- app/test/test_kni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[dpdk-dev] [PATCH] i40e: fix issue of setting input set for (double) vlan

2015-12-10 Thread Helin Zhang
It corrects the input set values to be set for vlan or double vlan. Fixes: 98f055707685 ("i40e: configure input fields for RSS or flow director") Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[dpdk-dev] [PATCH] doc: add knwon issue of PF reset event handling

2015-12-14 Thread Helin Zhang
Add a known issue to warn that PF reset event/request is not handled by any VF drivers till 2.2, and which should be fixed in the future. Signed-off-by: Helin Zhang --- doc/guides/rel_notes/release_2_2.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2

[dpdk-dev] [PATCH 0/3] i40e: enable extended tag

2015-12-21 Thread Helin Zhang
t operations are removed as they are not neccessary for all devices. In addition, documentations are updated at the same time. Helin Zhang (3): i40e: enable extended tag eal: remove pci config of extended tag igb_uio: remove sys files for setting pci config space config/common_linuxapp

[dpdk-dev] [PATCH 2/3] eal: remove pci config of extended tag

2015-12-21 Thread Helin Zhang
Remove pci configuration of 'extended tag' and 'max read request size', as they are not required by all devices and it lets PMD to configure them if neccessary. In addition, 'pci_config_space_set()' is deprecated. Signed-off-by: Helin Zhang --- config/common_

[dpdk-dev] [PATCH 1/3] i40e: enable extended tag

2015-12-21 Thread Helin Zhang
PCIe feature of 'Extended Tag' is important for 40G performance. It adds its enabling during each port initialization, to ensure the high performance. Signed-off-by: Helin Zhang --- doc/guides/rel_notes/release_2_3.rst | 5 +++ drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH 3/3] igb_uio: remove sys files for setting pci config space

2015-12-21 Thread Helin Zhang
Sys files of 'extended_tag' and 'max_read_request_size' are useless, as nobody will use them for setting pci config space. Signed-off-by: Helin Zhang --- doc/guides/linux_gsg/enable_func.rst | 22 -- doc/guides/rel_notes/deprecation.rst | 3 + doc/guides/r

[dpdk-dev] [PATCH] i40e: fix the issue of port initialization failure

2015-12-23 Thread Helin Zhang
exposed registers. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index bf6220d..149a31e 100644 --- a/drivers/net/i40e

[dpdk-dev] [RFC 00/17] unified packet type

2015-01-19 Thread Helin Zhang
types and L4 types. All PMDs should translate the offloaded packet types into this 4 fields of information, for user applications. As the changes affect all PMDs, mbuf and ethdev library, comments and ideas are welcome! Helin Zhang (17): mbuf: add definitions of unified packet types e1000

[dpdk-dev] [RFC 01/17] mbuf: add definitions of unified packet types

2015-01-19 Thread Helin Zhang
inner L3 type fields, and can be stored in 16 bits mbuf field of 'packet_type'. Signed-off-by: Helin Zhang Signed-off-by: Cunming Liang Signed-off-by: Jijiang Liu --- lib/librte_mbuf/rte_mbuf.h | 68 ++ 1 file changed, 68 insertions(+) diff -

[dpdk-dev] [RFC 02/17] e1000: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for ol_flags are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_e1000/igb_rxtx.c | 95 ++--- 1 file changed, 80 insertions(+), 15 deletions(-) diff --git a/lib

[dpdk-dev] [RFC 03/17] ixgbe: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for ol_flags are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 141 +- 1 file changed, 107 insertions(+), 34 deletions(-) diff --git a/lib

[dpdk-dev] [RFC 04/17] ixgbe: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for ol_flags are replaced by unified packet type for Vector PMD. Signed-off-by: Cunming Liang Signed-off-by: Helin Zhang --- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 39 +++ 1 file changed, 21

[dpdk-dev] [RFC 05/17] i40e: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for ol_flags are replaced by unified packet type. Signed-off-by: Helin Zhang Signed-off-by: Jijiang Liu --- lib/librte_pmd_i40e/i40e_rxtx.c | 778 ++-- 1 file changed, 504 insertions(+), 274

[dpdk-dev] [RFC 07/17] enic: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for ol_flags are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_enic/enic_main.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/librte_pmd_enic/enic_main.c b

[dpdk-dev] [RFC 06/17] bond: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for ol_flags are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_bond/rte_eth_bond_pmd.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/librte_pmd_bond

[dpdk-dev] [RFC 10/17] app/test-pmd: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- app/test-pmd/csumonly.c | 6 +++--- app/test-pmd/rxonly.c | 9 +++-- 2 files changed, 6 insertions(+), 9

[dpdk-dev] [RFC 08/17] vmxnet3: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for ol_flags are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c b

[dpdk-dev] [RFC 09/17] app/test-pipeline: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- app/test-pipeline/pipeline_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app

[dpdk-dev] [RFC 12/17] examples/ip_fragmentation: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- examples/ip_fragmentation/main.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a

[dpdk-dev] [RFC 11/17] app/test: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- app/test/packet_burst_generator.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git

[dpdk-dev] [RFC 13/17] examples/ip_reassembly: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- examples/ip_reassembly/main.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a

[dpdk-dev] [RFC 14/17] examples/l3fwd-acl: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- examples/l3fwd-acl/main.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff

[dpdk-dev] [RFC 15/17] examples/l3fwd-power: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- examples/l3fwd-power/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples

[dpdk-dev] [RFC 16/17] examples/l3fwd: support of unified packet type

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- examples/l3fwd/main.c | 64 +-- 1 file changed, 37 insertions

[dpdk-dev] [RFC 17/17] mbuf: remove old packet type bit masks for ol_flags

2015-01-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks and relevant macros of packet type for ol_flags are replaced by unified packet type and relevant macros. Signed-off-by: Helin Zhang --- lib/librte_mbuf/rte_mbuf.c | 6 -- lib/librte_mbuf/rte_mbuf.h | 10 ++ 2 files changed, 2

[dpdk-dev] [PATCH 0/7] unification of flow types and RSS offload types

2015-01-19 Thread Helin Zhang
enables new RSS offloads of 'tcp' and 'all' in testpmd. Helin Zhang (7): app/test-pmd: code style fix ethdev: code style fix i40e: code style fix ethdev: fix of calculating the size of flow type mask array ethdev: unification of flow types ethdev: unification of RSS

<    1   2   3   4   5   6   7   8   9   10   >