[dpdk-dev] [PATCH RFC 6/7] ethdev: unification of RSS offload types

2014-12-19 Thread Helin Zhang
specific hardwares. Signed-off-by: Helin Zhang --- app/test-pipeline/init.c| 2 +- app/test-pmd/config.c | 55 +--- examples/distributor/main.c | 9 +- examples/ip_pipeline/init.c | 2 +- examples/l3fwd-acl/main.c

[dpdk-dev] [PATCH RFC 7/7] app/testpmd: support new rss offloads

2014-12-19 Thread Helin Zhang
RSS offloads supported 'ip' and 'udp' only, which did not demonstrate all of the hardware capabilities. The modifications adds support of new RSS offloads of 'tcp', 'sctp' and 'all'. Signed-off-by: Helin Zhang --- app/test-pmd/cmdline.c | 16 +++

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

2014-12-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

[dpdk-dev] [PATCH RFC 3/7] i40e: code style fix

2014-12-19 Thread Helin Zhang
Added code style fixes. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_fdir.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/librte_pmd_i40e/i40e_fdir.c b/lib/librte_pmd_i40e/i40e_fdir.c index 68511c8..c9e535b 100644 --- a/lib/librte_pmd_i40e/i40e_fdir.c

[dpdk-dev] [PATCH] i40e: workaround for XL710 performance

2014-12-24 Thread Helin Zhang
. So the workaround in software driver is needed. It needs to modify the initial values of 2 internal only registers which is the same 2 of 3 registers of it did for X710. Note that the workaround can be removed when it is fixed in firmware in the future. Signed-off-by: Helin Zhang --- lib

[dpdk-dev] [PATCH v2] i40e: workaround for XL710 performance

2014-12-29 Thread Helin Zhang
future. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_ethdev.c | 44 ++- 1 file changed, 30 insertions(+), 14 deletions(-) v2 changes: * Supported modifying the address of 0x269FBC of XL710 during initialization, to fix the minor performance gap to

[dpdk-dev] [PATCH 0/2] i40e improvements

2014-07-02 Thread Helin Zhang
recently which requries additional steps. Without the steps, DPDK might be not able to transmit packets after standard Linux i40e driver loaded. Helin Zhang (2): i40e: use i40e_clear_hw() to clear hardware before PF reset i40e: add required steps in TX queue enable, disable lib

[dpdk-dev] [PATCH 1/2] i40e: use i40e_clear_hw() to clear hardware before PF reset

2014-07-02 Thread Helin Zhang
i40e_clear_hw() was provided recently in shared code to clear hardware, which can cover disabling all queues. The code changes are to remove i40e_pf_disable_all_queues() and use i40e_clear_hw() instead. Signed-off-by: Helin Zhang Acked-by: Jijiang Liu Acked-by: Jing Chen --- lib

[dpdk-dev] [PATCH 2/2] i40e: add required steps in TX queue enable, disable

2014-07-02 Thread Helin Zhang
Hardware specification changed recently which requires to set or clear TX queue disable flags before actually enabling or disabling a specific TX queue. 'QTX_HEAD' register needs to be cleared before setting the QENA_REQ flag. Signed-off-by: Helin Zhang Acked-by: Jijiang Liu Acked-by:

[dpdk-dev] [PATCH] bond: fix for compile issue on 32 bits Oracle Linux 6.4

2014-07-02 Thread Helin Zhang
was here /usr/include/sys/types.h:81: error: conflicting types for uid_t /usr/include/linux/types.h:51: note: previous declaration of uid_t was here *** Signed-off-by: Helin Zhang Acked-by: Cunming Liang --- lib/librte_pmd_bond/rte_eth_bond_api.c | 14 ++ lib/librte_pmd_bond

[dpdk-dev] [PATCH] i40e: warnings should include i40e in some example applications

2014-07-03 Thread Helin Zhang
As i40e introduced recently in DPDK, the warnings should include i40e when no supported NIC port found during initialization at least in below example applications. * app/testpmd * exception_path * kni Signed-off-by: Helin Zhang --- app/test-pmd/testpmd.c | 3 ++- examples

[dpdk-dev] [PATCH 0/3] add i40e RSS support in VF

2014-07-18 Thread Helin Zhang
As RSS in i40e VF is supported by hardware, these patches enable it in i40e PMD, and also enable its testing in testpmd. Helin Zhang (3): i40evf: add RSS support in VF app/testpmd: enable RSS support for i40e ethdev: improvements for some macro definition in head file app/test-pmd

[dpdk-dev] [PATCH 1/3] i40evf: add RSS support in VF

2014-07-18 Thread Helin Zhang
Add VF RSS support in Poll Mode Driver, as it is supported by hardware. Signed-off-by: Helin Zhang Acked-by: Cunming Liang Acked-by: Jijiang Liu --- lib/librte_pmd_i40e/i40e_ethdev.c| 4 +- lib/librte_pmd_i40e/i40e_ethdev.h| 40 ++- lib/librte_pmd_i40e/i40e_ethdev_vf.c | 208

[dpdk-dev] [PATCH 2/3] app/testpmd: enable RSS support for i40e

2014-07-18 Thread Helin Zhang
i40e can support RSS no matter if SR-IOV is enabled or not, while ixgbe/igb can not support RSS if it is SR-IOV. Code changes are needed to support i40e RSS if SR-IOV is enabled. Signed-off-by: Helin Zhang Acked-by: Jijiang Liu Acked-by: Cunming Liang --- app/test-pmd/testpmd.c | 13

[dpdk-dev] [PATCH 3/3] ethdev: improvements for some macro definition in head file

2014-07-18 Thread Helin Zhang
improvements for some macro definition about RSS packet classification types in rte_ethdev.h. Signed-off-by: Helin Zhang Acked-by: Cunming Liang Acked-by: Jijiang Liu --- lib/librte_ether/rte_ethdev.h | 47 ++- 1 file changed, 24 insertions(+), 23

[dpdk-dev] [PATCH 1/5] ethdev: Rename macros of packet classification type

2014-07-24 Thread Helin Zhang
For better understanding, 'PCTYPE' was added to the name of i40e RSS shift macros. Signed-off-by: Helin Zhang --- lib/librte_ether/rte_ethdev.h | 74 +-- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/lib/librte_ether/rte_ethd

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

2014-07-24 Thread Helin Zhang
f specific capability (command) is supported on a port. Helin Zhang (5): ethdev: Rename macros of packet classification type ethdev: add new ops of 'check_command_supported' and 'rx_classification_filter_ctl' i40e: support selecting hash functions i40e: supp

[dpdk-dev] [PATCH 3/5] i40e: support selecting hash functions

2014-07-24 Thread Helin Zhang
Toeplitz and simple XOR hash functions are supported by hardware, code changes are to tell the hardware which hash function is selected according to the configuration. Signed-off-by: Helin Zhang --- config/common_bsdapp | 1 + config/common_linuxapp| 1 + lib

[dpdk-dev] [PATCH 4/5] i40e: support configuring symmetric hash function

2014-07-24 Thread Helin Zhang
called in applications. Also 'check_command_supported' is also implemented to check if a specific capability(command) is supported or not. Signed-off-by: Helin Zhang --- lib/librte_ether/Makefile | 1 + lib/librte_ether/rte_eth_features.h | 65 ++ lib/librte_pmd_i40e/Makefile

[dpdk-dev] [PATCH 2/5] ethdev: add new ops of 'check_command_supported' and 'rx_classification_filter_ctl'

2014-07-24 Thread Helin Zhang
fication_filter_ctl' is for receive classifcation filter configuring. e.g. hash function configuration, flow director configuration. It is a common API where a lot of commands can be implemented for different sub features. Signed-off-by: Helin Zhang --- lib/librte_ether/rte_ethdev.c | 31

[dpdk-dev] [PATCH 5/5] app/testpmd: new commands for configuring hash functions

2014-07-24 Thread Helin Zhang
Six commands are added in testpmd to support configuring hash functions. They are, * i40e_get_sym_hash_ena_per_port * i40e_set_sym_hash_ena_per_port * i40e_get_sym_hash_ena_per_pctype * i40e_set_sym_hash_ena_per_pctype * i40e_get_filter_swap * i40e_set_filter_swap Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v2 1/6] ethdev: rename macros of packet classification type

2014-07-28 Thread Helin Zhang
For better understanding, 'PCTYPE' which represents 'Packet Classification Type' is used to replace 'RSS' in the name of shift macros. Signed-off-by: Helin Zhang --- lib/librte_ether/rte_ethdev.h | 76 +-- 1 file changed,

[dpdk-dev] [PATCH v2 4/6] i40e: support of 'is_command_supported'

2014-07-28 Thread Helin Zhang
PER_PCTYPE - RTE_CMD_SET_SYM_HASH_ENABLE_PER_PCTYPE - RTE_CMD_GET_SYM_HASH_ENABLE_PER_PORT - RTE_CMD_SET_SYM_HASH_ENABLE_PER_PORT - RTE_CMD_GET_FILTER_SWAP - RTE_CMD_SET_FILTER_SWAP - RTE_CMD_GET_HASH_FUNCTION - RTE_CMD_SET_HASH_FUNCTION Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_eth

[dpdk-dev] [PATCH v2 5/6] i40e: Initialize hash function during port initialization.

2014-07-28 Thread Helin Zhang
initialization to make sure all those registers are in an expected state. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_ethdev.c | 71 +++ 1 file changed, 71 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c index

[dpdk-dev] [PATCH v2 2/6] ethdev: add new ops of 'is_command_supported' and 'rx_classification_filter_ctl'

2014-07-28 Thread Helin Zhang
quite a lot of ops for device specific features. * 'rte_eth_features.h': It includes all the feature commands which can be checked and processed in above two ops. Also it may include other commands for future implementations. Signed-off-by: Helin Zhang --- lib/librte_ether/Makefil

[dpdk-dev] [PATCH v2 3/6] i40e: support of 'rx_classification_filter_ctl'

2014-07-28 Thread Helin Zhang
function of 'Toeplitz' or 'Simple XOR'. Note that 'PCTYPE' means 'Packet Classification Type'. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 6 + lib/librte_pmd_i40e/i40e_ethdev.c | 385 ++ lib/lib

[dpdk-dev] [PATCH v2 6/6] app/testpmd: add commands for configuring hash functions

2014-07-28 Thread Helin Zhang
. - i40e_set_hash_function Set hash function to 'Toeplitz' or 'Simple XOR' Signed-off-by: Helin Zhang --- app/test-pmd/cmdline.c | 579 + 1 file changed, 579 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmd

[dpdk-dev] [PATCH v2 0/6] Support configuring hash functions

2014-07-28 Thread Helin Zhang
ds are implemented in testpmd to support testing above. Note that 'PCTYPE' means 'Packet Classification Type'. Helin Zhang (6): ethdev: rename macros of packet classification type ethdev: add new ops of 'is_command_supported' and 'rx_classification_filte

[dpdk-dev] [PATCH v2 03/27] pci: add macros and pci device IDs to support i40e

2014-06-05 Thread Helin Zhang
The pci device IDs of i40e have been added. The new macros have been added in rte_pci_dev_ids.h to support i40e. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- lib/librte_eal/common/include

[dpdk-dev] [PATCH v2 00/27] Add i40e PMD support

2014-06-05 Thread Helin Zhang
el 3.11.10-301 * GCC 4.8.2 * Intel Xeon CPU E5-2680 v2 @ 2.80GHz We verified this patch with two NICs (i40e 4x10 SFP+, i40e 2x40G), and performed basic function test on PF and VF. All cases are passed. Total cases Passed Failed 138 138 0 Signed-off-by: Helin Zhang Sign

[dpdk-dev] [PATCH v2 05/27] mbuf: add new packet flags for i40e

2014-06-05 Thread Helin Zhang
New packet flags of both RX and TX have been added to support i40e. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- lib/librte_mbuf/rte_mbuf.h | 8 1 file changed, 8 insertions

[dpdk-dev] [PATCH v2 06/27] ethdev: add i40e support

2014-06-05 Thread Helin Zhang
nt8_t rss_key_len' has been added in 'struct rte_eth_rss_conf' to support different length of RSS keys. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- lib/librte_ether/rte_ethd

[dpdk-dev] [PATCH v2 04/27] igb_uio: add i40e support

2014-06-05 Thread Helin Zhang
The definitions have been added to support i40e devices. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 2 ++ 1 file changed, 2 insertions

[dpdk-dev] [PATCH v2 07/27] ethdev: support setting maximum packet length to less than 1518

2014-06-05 Thread Helin Zhang
In ethdev, it ignores setting maximum packet length to less than 1518. The changes is to remove this limitation and let less than 1518 can be set for 'maximum packet length'. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by

[dpdk-dev] [PATCH v2 02/27] i40e: add PMD source files

2014-06-05 Thread Helin Zhang
Add PMD source files to support Intel(R) 40G Ethernet Controllers. The new files are, i40e_osdep.h i40e_ethdev.c i40e_ethdev.h i40e_ethdev_vf.c i40e_logs.h i40e_pf.c i40e_pf.h i40e_rxtx.c i40e_rxtx.h Makefile Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by

[dpdk-dev] [PATCH v2 08/27] vmxnet3: enlarge the hash flags of RSS to 64 bits

2014-06-05 Thread Helin Zhang
As the hash flags of RSS has been enlarged from 16 bits to 64 bits in 'struct rte_eth_rss_conf' in rte_ethdev.h, the size of it in vmxnet3 has to be enlarged as well. In addition, the flags for vmxnet3 only are masked, as there are flags for others in that 64 bits. Signed-off-by: H

[dpdk-dev] [PATCH v2 11/27] mk: add i40e support

2014-06-05 Thread Helin Zhang
i40e support has been added in lib/Makefile and mk/rte.app.mk. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- lib/Makefile | 1 + mk/rte.app.mk | 4 2 files changed, 5 insertions

[dpdk-dev] [PATCH v2 13/27] app/test-pmd: support displaying 32 bytes RX descriptors

2014-06-05 Thread Helin Zhang
i40e supports both 16 and 32 bytes RX descriptors, while ixgbe and igb support 16 bytes size only. Code changes have been made in test-pmd to support both 16 and 32 bytes RX descriptors according to the configuration in config files. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by

[dpdk-dev] [PATCH v2 10/27] igb: enlarge the hash flags of RSS to 64 bits

2014-06-05 Thread Helin Zhang
As the hash flags of RSS has been enlarged from 16 bits to 64 bits in 'struct rte_eth_rss_conf' in rte_ethdev.h, the size of it in igb has to be enlarged as well. In addition, the flags for igb only are masked, as there are flags for others in those 64 bits. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v2 09/27] ixgbe: enlarge the hash flags of RSS to 64 bits

2014-06-05 Thread Helin Zhang
As the hash flags of RSS has been enlarged from 16 bits to 64 bits in 'struct rte_eth_rss_conf' in rte_ethdev.h, the size of it in ixgbe has to be enlarged as well. In addition, the flags for ixgbe only are masked, as there are flags for others in those 64 bits. Signed-off-by: Helin Zha

[dpdk-dev] [PATCH v2 12/27] config: add configurations for i40e

2014-06-05 Thread Helin Zhang
configurations for i40e have been added in both common_bsdapp and common_linuxapp. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- config/common_bsdapp | 20 config

[dpdk-dev] [PATCH v2 18/27] examples/ip_reassembly: use ETH_RSS_IP to replace IP hash flags of RSS

2014-06-05 Thread Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to support more possible types in all PMDs, and new macro of ETH_RSS_IP has been defined to cover all IP hash flags of RSS. That macro should be used in ip_reassembly example application to support all PMDs. Signed-off-by: Helin

[dpdk-dev] [PATCH v2 19/27] examples/l3fwd-power: use ETH_RSS_IP to replace IP hash flags of RSS

2014-06-05 Thread Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to support more possible types in all PMDs, and new macro of ETH_RSS_IP has been defined to cover all IP hash flags of RSS. That macro should be used in l3fwd-power example application to support all PMDs. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v2 20/27] examples/l3fwd-vf: use ETH_RSS_IP to replace IP hash flags of RSS

2014-06-05 Thread Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to support more possible types in all PMDs, and new macro of ETH_RSS_IP has been defined to cover all IP hash flags of RSS. That macro should be used in l3fwd-vf example application to support all PMDs. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v2 21/27] examples/l3fwd: use ETH_RSS_IP to replace IP hash flags of RSS

2014-06-05 Thread Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to support more possible types in all PMDs, and new macro of ETH_RSS_IP has been defined to cover all IP hash flags of RSS. That macro should be used in l3fwd example application to support all PMDs. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v2 22/27] examples/load_balancer: use ETH_RSS_IP to replace IP hash flags of RSS

2014-06-05 Thread Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to support more possible types in all PMDs, and new macro of ETH_RSS_IP has been defined to cover all IP hash flags of RSS. That macro should be used in load_balancer example application to support all PMDs. Signed-off-by: Helin

[dpdk-dev] [PATCH v2 15/27] app/testpmd: enlarge the hash flags of RSS to 64 bits

2014-06-05 Thread Helin Zhang
As the hash flags of RSS has been enlarged from 16 bits to 64 bits in 'struct rte_eth_rss_conf' in rte_ethdev.h, the size of it in testpmd should be enlarged as well. In addition, macro of ETH_RSS_IP is used to replace all IP hash flags of RSS. Signed-off-by: Helin Zhang Signed-off-by:

[dpdk-dev] [PATCH v2 14/27] app/test-pmd: add command of 'tx_vlan set pvid port_id vlan_id (on|off)'

2014-06-05 Thread Helin Zhang
New command of 'tx_vlan set pvid port_id vlan_id (on|off)' has been added in test-pmd to configure port based vlan insertion. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- ap

[dpdk-dev] [PATCH v2 25/27] igb_uio: add sys files to read/write specific bits in pci config space

2014-06-05 Thread Helin Zhang
added to support changing them by 'echo' in user space. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 105 +

[dpdk-dev] [PATCH v2 16/27] app/test-pmd: add L3 packet type in offload flags

2014-06-05 Thread Helin Zhang
As i40e PMD need to know the L3 packet type for TX checksum offloading, the packet type has been added in rte_mbuf offload flags. Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- app/test-pmd

[dpdk-dev] [PATCH v2 23/27] examples/multi_process: use ETH_RSS_IP to replace IP hash flags of RSS

2014-06-05 Thread Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to support more possible types in all PMDs, and new macro of ETH_RSS_IP has been defined to cover all IP hash flags of RSS. That macro should be used in multi_process example application to support all PMDs. Signed-off-by: Helin

[dpdk-dev] [PATCH v2 17/27] examples/dpdk_qat: use ETH_RSS_IP to replace IP hash flags of RSS

2014-06-05 Thread Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to support more possible types in all PMDs, and new macro of ETH_RSS_IP has been defined to cover all IP hash flags of RSS. That macro should be used in dpdk_qat example application to support all PMDs. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v2 24/27] examples/qos_meter: use ETH_RSS_IP to replace IP hash flags of RSS

2014-06-05 Thread Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to support more possible types in all PMDs, and new macro of ETH_RSS_IP has been defined to cover all IP hash flags of RSS. That macro should be used in qos_meter example application to support all PMDs. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v2 26/27] pci: support reading/writing sys files of 'extended_tag' and 'max_read_request_size'

2014-06-05 Thread Helin Zhang
Sys files of 'extended_tag' and 'max_read_request_size' are supported by igb_uio. Reading or writing them to enable/disable 'Extended Tag' or reset 'Max Read Request Size' automatically according to the configurations are added. Signed-off-by: Helin Z

[dpdk-dev] [PATCH v2 27/27] config: add configurations for enabling 'Extended Tag' or resetting 'Max Read Request Size'

2014-06-05 Thread Helin Zhang
RTE_PCI_EXTENDED_TAG - CONFIG_RTE_PCI_MAX_READ_REQUEST_SIZE Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman Cao --- config/common_linuxapp | 10 ++ 1 file changed, 10 insertions(+) diff --git a/conf

[dpdk-dev] [PATCH v2 01/27] i40e: add basic shared code

2014-06-05 Thread Helin Zhang
- i40e_lan_hmc.c - i40e_lan_hmc.h - i40e_nvm.c - i40e_prototype.h - i40e_register.h - i40e_register_x710_int.h - i40e_status.h - i40e_type.h - i40e_virtchnl.h Signed-off-by: Helin Zhang Signed-off-by: Jing Chen Acked-by: Cunming Liang Acked-by: Jijiang Liu Acked-by: Jingjing Wu Tested-by: Waterman

[dpdk-dev] [PATCH] kni: fix compile errors on Oracle Linux6.4 and RHEL6.5

2014-06-09 Thread Helin Zhang
From: HELIN ZHANG The compile errors are as follows. The fixes came from standard Linux drivers of ixgbe-3.21.2 and igb-5.1.2. * Oracle Linux6.4 lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h:3111: error: redefinition of 'ether_addr_equal' include/linux/etherdevice.h:180: note

[dpdk-dev] [PATCH v2] kni: fix compile errors on Oracle Linux6.4 and RHEL6.5

2014-06-11 Thread Helin Zhang
From: HELIN ZHANG The compile errors are copied as follows. The fixes came from Linux drivers of ixgbe-3.21.2 and igb-5.1.2 with modifications. The idea is to use self-defined functions no matter they have already been defined somewhere or not. * Oracle Linux6.4 lib/librte_eal/linuxapp/kni

[dpdk-dev] [PATCH] i40e: compile fix on ICC 13.0.0

2015-05-18 Thread Helin Zhang
tus; ^ Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 22f0716..911e4f5 100644 --- a/lib/librte_pmd_i40e/Makefile +++ b/lib/librte_pmd_i40e/Makef

[dpdk-dev] [PATCH v2 2/2] i40e/base: compile fix on clang 3.3

2015-05-18 Thread Helin Zhang
const char *i40e_nvm_update_state_str[] = { ^ Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 911e4f5..4a5635b 100644 --- a/lib/librte_pmd_i40e/Makefile

[dpdk-dev] [PATCH v2 0/2] compile fixes on ICC and clang

2015-05-18 Thread Helin Zhang
Compile warnings on ICC and clang can be found, and treated as errors. Disabling those warnings forcedly can fix them. v2 changes: Added the fix for the compile error on clang. Helin Zhang (2): i40e: compile fix on ICC 13.0.0 i40e: compile fix on clang 3.3 lib/librte_pmd_i40e/Makefile | 3

[dpdk-dev] [PATCH v2 1/2] i40e/base: compile fix on ICC 13.0.0

2015-05-18 Thread Helin Zhang
tus; ^ Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 22f0716..911e4f5 100644 --- a/lib/librte_pmd_i40e/Makefile +++ b/lib/librte_pmd_i40e/Makef

[dpdk-dev] [PATCH v3 1/2] i40e/base: fix compile with ICC 13.0.0

2015-05-18 Thread Helin Zhang
tus; ^ Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v3 changes: Reworded the commit title. diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 22f0716..911e4f5 100644 --- a/lib/librte_pmd_i40e/Makef

[dpdk-dev] [PATCH v3 0/2] fix compile with ICC and clang

2015-05-18 Thread Helin Zhang
Compile warnings on ICC and clang can be found, and treated as errors. Disabling those warnings forcedly can fix them. v2 changes: Added the fix for the compile error on clang. v3 changes: Reworded the commit titles. Helin Zhang (2): i40e: compile fix on ICC 13.0.0 i40e: compile fix on

[dpdk-dev] [PATCH v3 2/2] i40e/base: fix compile with clang 3.3

2015-05-18 Thread Helin Zhang
const char *i40e_nvm_update_state_str[] = { ^ Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 1 + 1 file changed, 1 insertion(+) v3 changes: Reworded the commit title. diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 911e4f5..4a5635b 100644

[dpdk-dev] [PATCH 00/15] i40e base driver udpate

2014-09-09 Thread Helin Zhang
Here is the update of i40e base driver. Also it involves a few relevant necessary code changes in i40e PMD. Helin Zhang (15): i40e: make the indentation more consistent in share code i40e: support nvmupdate by default i40e: remove useless code which was written for Solaris i40e: remove

[dpdk-dev] [PATCH 01/15] i40e: make the indentation more consistent in share code

2014-09-09 Thread Helin Zhang
In share code, 'tab' is used to align values rather than 'space'. The changes in i40e_adminq_cmd.h is to make the indentation more consistent in share code. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 2132 +++

[dpdk-dev] [PATCH 02/15] i40e: support nvmupdate by default

2014-09-09 Thread Helin Zhang
'nvmupdate' is intended to support the userland NVMUpdate tool for Fortville eeprom. These code changes is to remove the conditional compile macro, and support those by default. In addition, renaming all 'errno' to avoid any compile warning or error. Signed-off-by: Helin Zhan

[dpdk-dev] [PATCH 03/15] i40e: remove useless code which was written for Solaris

2014-09-09 Thread Helin Zhang
The code wrapped in '#ifdef DMA_SYNC_SUPPORT' was written specially for Solaris, it is not needed anymore for others including DPDK. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 19 --- 1 file changed, 19 deletion

[dpdk-dev] [PATCH 04/15] i40e: remove test code for 'ethtool'

2014-09-09 Thread Helin Zhang
The code wrapped in '#ifdef ETHTOOL_TEST' in i40e_diag.c is for ethtool testing only, it is not needed anymore and can be removed. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_diag.c | 10 -- 1 file changed, 10 deletions(-) diff -

[dpdk-dev] [PATCH 07/15] i40e: Get rid of sparse warnings, and remove unreachable code

2014-09-09 Thread Helin Zhang
There are variables that represent values in little endian. Adding prefix of '__Le' can remove warnings during sparse checks. In addition, remove some unreachable 'break' statements, and add 'UL' on a couple of constants. Signed-off-by: Helin Zhang Re

[dpdk-dev] [PATCH 08/15] i40e: remove code which is for software validation only

2014-09-09 Thread Helin Zhang
The code wrapped in '#ifdef I40E_DCB_SW' is currently for software validation only, it should be removed at all. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_common.c| 27 -- lib/librte_pmd_i40e/i40e/i40e_dcb.c

[dpdk-dev] [PATCH 11/15] i40e: expose debug_write_register request

2014-09-09 Thread Helin Zhang
The firware api request of writes to hardware registers should be exposed to driver. The new API of 'i40e_aq_debug_write_register' is introduced for that. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_common.c| 29

[dpdk-dev] [PATCH 12/15] i40e: workaround of get_firmware_version, and enhancements

2014-09-09 Thread Helin Zhang
The workaround helps fix the API if the FW is 4.2 or later. In addition, an unreachable 'break' statement has been removed. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 5 ++--- lib/librte_pmd_i40e/i40e/i40e_common.c | 12 ++-

[dpdk-dev] [PATCH 15/15] i40e: support redefined struct of 'i40e_arq_event_info'

2014-09-09 Thread Helin Zhang
As struct of 'i40e_arq_event_info' in share code has been redefined, relevant changes in PMD are needed to support that. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e_ethdev.c| 8 +++- lib/librte_pmd_i40e/i40e_ethdev_vf.c | 10 +

[dpdk-dev] [PATCH 13/15] i40e: Use get_link_status to report FC settings

2014-09-09 Thread Helin Zhang
The fix is to use get_link_status but not get_phy_capabilities for reporting FC settings. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_common.c | 38 -- lib/librte_pmd_i40e/i40e/i40e_type.h | 8 --- 2 files changed

[dpdk-dev] [PATCH 05/15] i40e: force a shifted '1' to be 'unsigned'

2014-09-09 Thread Helin Zhang
Force a shifted '1' to be 'unsiged' to avoid shifting a signed int. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_hmc.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_i40e/i40e/i40e_hmc.h b/lib/

[dpdk-dev] [PATCH 06/15] i40e: remove useless code for pre-boot support

2014-09-09 Thread Helin Zhang
not needed anymore and can be removed. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_common.c | 3 - lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c | 203 lib/librte_pmd_i40e/i40e/i40e_lan_hmc.h | 13 -- 3 files changed, 219

[dpdk-dev] [PATCH 09/15] i40e: remove code for TPH (TLP Processing Hints)

2014-09-09 Thread Helin Zhang
The code wrapped in '#ifdef I40E_TPH_SUPPORT' was added to check if 'TPH' is supported, and enable it. It is not used currently and can be removed. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_common.c | 55 --

[dpdk-dev] [PATCH 10/15] i40e: support of 10G base T

2014-09-09 Thread Helin Zhang
10G base T type support is added. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_common.c | 3 +++ lib/librte_pmd_i40e/i40e/i40e_type.h | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e/i40e_common.c b/lib/librte_pmd_i40e

[dpdk-dev] [PATCH 14/15] i40e: fix and enhancement in arq_event_info struct

2014-09-09 Thread Helin Zhang
_len' for the buffer size, and renames the field of 'msg_size' to 'msg_len' for the real message size. Signed-off-by: Helin Zhang Reviewed-by: Chen Jing --- lib/librte_pmd_i40e/i40e/i40e_adminq.c| 33 --- lib/librte_pmd_i40e/i40e/i

[dpdk-dev] [PATCH v2 0/5] support of configurable CRC stripping in VF

2014-09-14 Thread Helin Zhang
patch. * Put setting the crc stripping into a single patch. * Put the configuring crc stripping in VF into a single patch. * Added several more code style fixes reported by checkpatch.pl. Helin Zhang (5): config: remove useless i40e items in config files i40e: renaming and code style fix i40e

[dpdk-dev] [PATCH v2 2/5] i40e: renaming and code style fix

2014-09-14 Thread Helin Zhang
need any line wrapping actually. v2 changes: * Put all the renaming and code style fixes into a patch. * Add several more code style fixes for i40e_pf.c. Signed-off-by: Helin Zhang Reviewed-by: Jingjing Wu Reviewed-by: Jing Chen --- lib/librte_pmd_i40e/i40e_ethdev_vf.c | 75

[dpdk-dev] [PATCH v2 3/5] i40e: support of processing crc stripping config in PF host

2014-09-14 Thread Helin Zhang
g VSI queues with or without crc stripping configuration. v2 changes: * Put processing crc stripping configuration in PF host into a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jingjing Wu Reviewed-by: Jing Chen --- lib/librte_pmd_i40e/i40e_pf.c | 38 +++

[dpdk-dev] [PATCH v2 5/5] i40evf: support of configurable crc stripping in VF

2014-09-14 Thread Helin Zhang
Configurable crc stripping is supported in DPDK PF host, while not in Linux PF host. Two functions have been defined to talk with the those PF hosts respectively. v2 changes: * Put configuring crc stripping in VF into a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jingjing Wu Reviewed

[dpdk-dev] [PATCH v2 1/5] config: remove useless i40e items in config files

2014-09-14 Thread Helin Zhang
Remove 'CONFIG_RTE_LIBRTE_I40E_PF_DISABLE_STRIP_CRC' from config files of 'common_bsdapp' and 'common_linuxapp', as nowhere uses it. Signed-off-by: Helin Zhang Reviewed-by: Jingjing Wu Reviewed-by: Jing Chen --- config/common_bsdapp | 1 - config/common_linu

[dpdk-dev] [PATCH v2 4/5] i40e: set crc stripping in rx queue configuration

2014-09-14 Thread Helin Zhang
It enables/disables the crc stripping in the rx queue contexts, according to the extra configuration carried from VF. v2 changes: * Put setting the crc stripping into a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jingjing Wu Reviewed-by: Jing Chen --- lib/librte_pmd_i40e/i40e_pf.c

[dpdk-dev] [PATCH 0/3] fix of lsc interrupt in i40e PF

2014-09-17 Thread Helin Zhang
The patches include the fix for link status change interrupt in i40e PF, and code style fixes. Helin Zhang (3): i40e: renaming some local variables i40e: rework of PF interrupt cause enable flags processing i40e: fix of interrupt based link status change lib/librte_pmd_i40e/i40e_ethdev.c

[dpdk-dev] [PATCH 2/3] i40e: rework of PF interrupt cause enable flags processing

2014-09-17 Thread Helin Zhang
To get the code cleaner and more straightforward, a macro is defined for all interrupt cause enable flags. Two more causes are enabled, and all the interrupt causes for reporting any errors are compiled conditionally, as they are for debug only. Signed-off-by: Helin Zhang Reviewed-by: Jing Chen

[dpdk-dev] [PATCH 1/3] i40e: renaming some local variables

2014-09-17 Thread Helin Zhang
To be more straightforward, two local variables in interrupt handler are renamed. Signed-off-by: Helin Zhang Reviewed-by: Jing Chen Reviewed-by: Jijiang Liu --- lib/librte_pmd_i40e/i40e_ethdev.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a

[dpdk-dev] [PATCH 3/3] i40e: fix of interrupt based link status change

2014-09-17 Thread Helin Zhang
k function registered by application. Signed-off-by: Helin Zhang Reviewed-by: Jing Chen Reviewed-by: Jijiang Liu --- lib/librte_pmd_i40e/i40e_ethdev.c | 88 +++ 1 file changed, 80 insertions(+), 8 deletions(-) diff --git a/lib/librte_pmd_i40e/i40e_ethde

[dpdk-dev] [PATCH v2 0/3] add i40e RSS support in VF

2014-09-19 Thread Helin Zhang
testpmd, as it is not needed at all for supporting RSS in VF. Helin Zhang (3): ethdev: improvement for constant usage i40e: extern two functions and relevant macros i40evf: support of RSS in VF lib/librte_ether/rte_ethdev.h| 47 ++-- lib/librte_pmd_i40e/i40e_ethdev.c| 4

[dpdk-dev] [PATCH v2 1/3] ethdev: improvement for constant usage

2014-09-19 Thread Helin Zhang
Forced type conversion is not needed to define a macro with constant. The alternate is to let compiler use the default width, or specify the width with suffix of 'U', 'UL', 'ULL', etc. Signed-off-by: Helin Zhang Reviewed-by: Cunming Liang Reviewed-by: Jiji

[dpdk-dev] [PATCH v2 2/3] i40e: extern two functions and relevant macros

2014-09-19 Thread Helin Zhang
To reuse code, 'i40e_config_hena()' and 'i40e_parse_hena()' and their relevant macros need to be extern, and then can be used for both PF and VF parts. Signed-off-by: Helin Zhang Reviewed-by: Cunming Liang Reviewed-by: Jijiang Liu --- lib/librte_pmd_i40e/i40e_eth

[dpdk-dev] [PATCH v2 3/3] i40evf: support of RSS in VF

2014-09-19 Thread Helin Zhang
i40e hardware supports RSS in VF, the code changes are to add this support. v2 changes: Updating/querying redirection table has been removed, as it will be in another patches of supporting different redirection table sizes soon later. Signed-off-by: Helin Zhang Reviewed-by: Cunming Liang

[dpdk-dev] [PATCH v2 01/13] app/testpmd: code style fix

2014-09-25 Thread Helin Zhang
Fix several code style issues. v2 changes: * Put all code style fixes for testpmd in a single patch. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed-by: Jingjing Wu --- app/test-pmd/cmdline.c | 28 +++- app/test-pmd/config.c

[dpdk-dev] [PATCH v2 02/13] i40evf: code style fix

2014-09-25 Thread Helin Zhang
Fix several code style issues. v2 changes: * Put code style fixes of i40e 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_vf.c | 13 + 1 file changed, 9 insertions

[dpdk-dev] [PATCH v2 00/13] support of multiple sizes of redirection table

2014-09-25 Thread Helin Zhang
style fixes. * Add support of reta updating/querying in i40e VF. Helin Zhang (13): app/testpmd: code style fix i40evf: code style fix ethdev: add more annotation ethdev: support of multiple sizes of redirection table igb: add new function for VF ops of 'dev_infos_get' igb:

[dpdk-dev] [PATCH v2 03/13] ethdev: add more annotation

2014-09-25 Thread Helin Zhang
Add more annotation, to clearly tell the 'rte_eth_dev_info_get()' users that the buffer should be cleared first. v2 changes: Add more annotation for 'rte_eth_dev_info_get()'. Signed-off-by: Helin Zhang Reviewed-by: Jijiang Liu Reviewed-by: Cunming Liang Reviewed-by: J

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

2014-09-25 Thread Helin Zhang
New function of 'eth_igbvf_infos_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 igb VF. Signed-off-by: Helin Zhang Reviewe

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